newtofoxpro
Programmer
oForm=CREATEOBJECT("myForm")
oForm.show()
READ EVENTS
RETURN
DEFINE CLASS myForm as Form
visible=.T.
ADD OBJECT mDate as textbox WITH top=10, Left=10
ADD OBJECT mCode as textbox WITH top=50, Left=10
PROCEDURE Init
this.mDate.StrictDateEntry=0
this.mDate.Value=DATE()
this.mDate.InputMask="99-99-9999"
PROCEDURE mDate.GotFocus
KEYBOARD '{CTRL+A}'
PROCEDURE mDate.interactivechange
WAIT WINDOW NOWAIT this.value
ENDDEFINE
With Above Code example.
1. If I enter [1] , wait wind shows empty mdate.
2. If I enter [1-8] , wait wind shows 01-08-2015
year = 2015 how vfp auto complete it ? why 2015 and why not 2014
And if year auto-feed by vfp, how to auto-feed month & year.
If I enter [2] vfp should auto-feed 02-08-2015 Is it possible ?
Thanks
oForm.show()
READ EVENTS
RETURN
DEFINE CLASS myForm as Form
visible=.T.
ADD OBJECT mDate as textbox WITH top=10, Left=10
ADD OBJECT mCode as textbox WITH top=50, Left=10
PROCEDURE Init
this.mDate.StrictDateEntry=0
this.mDate.Value=DATE()
this.mDate.InputMask="99-99-9999"
PROCEDURE mDate.GotFocus
KEYBOARD '{CTRL+A}'
PROCEDURE mDate.interactivechange
WAIT WINDOW NOWAIT this.value
ENDDEFINE
With Above Code example.
1. If I enter [1] , wait wind shows empty mdate.
2. If I enter [1-8] , wait wind shows 01-08-2015
year = 2015 how vfp auto complete it ? why 2015 and why not 2014
And if year auto-feed by vfp, how to auto-feed month & year.
If I enter [2] vfp should auto-feed 02-08-2015 Is it possible ?
Thanks