Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Calendar to Populate Date Field.
Message
 
À
21/11/1999 23:03:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00293796
Message ID:
00293848
Vues:
30
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!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform