Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why ????
Message
From
07/04/2000 03:12:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Why ????
Miscellaneous
Thread ID:
00356690
Message ID:
00356690
Views:
54
I have the following code. Why do I get an error when I call the Procedure MyProc ?

Sample code:
*-- MAIN
PUBLIC dDate_1

dDate_1 = DATE()

=MyFunc(dDate_1)
DO MyProc WITH dDate_1

RETURN
*-- End of main

*-- Function
FUNCTION MyFunc
LPARAMETERS dDate

*-- This works
? dDate_1,dDate
RETURN .T.
*-- End of Function


*-- Procedure
PROCEDURE MyProc
LPARAMETERS dDate

*-- This does'nt work. "Variable DDATE_1 is not found"
? dDate_1,dDate
RETURN
*-- End of Procedure
Benn Kjaer
MS Certified Professional - Visual Foxpro

"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"
Next
Reply
Map
View

Click here to load this message in the networking platform