Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accurately calculating a persons age
Message
 
To
25/10/2004 04:27:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00953701
Message ID:
00954191
Views:
18
1. Copy & Paste the function in Some PRG
2. In Your Main PRG, or Init Method of the from Put:
IF .NOT. UPPER(YourPrgName) $ UPPER(SET("PROCEDURE"))
   SET PROCEDURE TO YourPrgName ADDITIVE
ENDIF
3. In LostFocus (or InterActiveChange) event Of the Text1
IF .NOT. EMPTY(this.Value) .AND. .NOT. EMPTY(thisform.Text2.value)
   thisform.text3.value = CalcAge(this.Value, thisform.text2.value)
ENDIF

4. In LostFocus (or InterActiveChange) event Of the Text2
IF .NOT. EMPTY(this.Value) .AND. .NOT. EMPTY(thisform.Text1.value)
   thisform.text3.value = CalcAge(thisform.text1.value, this.Value)
ENDIF
>hi,
>thank you ,
>
>just how i can use your function at myform .
>i need the steps.
>
>i want to insert at (thisform.text1.value...DATE(1963, 3, 29))
> (thisform.text2.value...DATE(2004,10,25))
>
>result at thisform.text3.value as.. 39
>
>
>
>thanks.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform