Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Procedure parameter name with cursor field name
Message
From
23/02/2004 23:25:10
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
23/02/2004 20:08:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00880134
Message ID:
00880159
Views:
22
Hi Marc

In addition to what Jim says, please see http://fox.wikis.com/wc.dll?Wiki~EssentialMDot~VFP for more information.

>dear all,
>
>i just wondering whether when declaring a parameter name for a procedure should not use any of the opened table / cursor field?
>
>since using the code below it pop up a '0' value for the messagebox. but if i change the name to something else it will show '10' as expected.
>
>CREATE CURSOR example (;
> nperid i ;
>)
>SELECT example
>? lookingdata(10)
>
>
>PROCEDURE lookingdata(nperid AS INTEGER)
> LOCAL x
> MESSAGEBOX(nperid)
> x = ALLTRIM(STR(nperid))
> x = PADL(x,6,"0")
> RETURN x
>ENDPROC
>
>regards,
>Mark
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform