Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Calendar to Populate Date Field.
Message
 
To
21/11/1999 23:03:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00293796
Message ID:
00293848
Views:
31
PMFJI, this is what I use in the .change event of Date/Time picker. Seems to be working.
WITH THIS

	IF NOT EMPTY(.CONTROLSOURCE)
	
		LOCAL cDay, cMonth, cYear, dDate, cField, cTable, 
		cDay = ALLTRIM(STR(THIS.DAY))
		cMnth = ALLTRIM(STR(THIS.MONTH))
		cYear = ALLTRIM(STR(THIS.YEAR))
		cDate = cMnth + '/' + cDay + '/' + cYear
		dDate = CTOD(cDate)
		cField = JUSTEXT(.CONTROLSOURCE)
		cTable = JUSTSTEM(.CONTROLSOURCE)
		REPLACE (cField) WITH dDate IN (cTable)
		
	ENDIF

ENDWITH
hth

>There is a trick to get the control source updated. do you recall what that was? If you do would you provided the information.
>John
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Reply
Map
View

Click here to load this message in the networking platform