Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a number to a Function
Message
 
 
To
15/05/2000 12:30:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00369673
Message ID:
00369682
Views:
19
Hi Michael,

Is it possible, that you declare your long_type something else? In this case it would fail. Try LPARAMETERS and change your long_type to lnLong_Type. Does it help?

>Hi All,
>
>I am trying to pass a number to a function, do a process, and return a value. But I get no value in the function.
>
>MESSAGEBOX(STR(cntr1)) && Gives me the correct value for 'cntr1'
>total_spacers = detailspacer(cntr1)
>
>FUNCTION detailspacer
> PARAMETER long_type
>
>MESSAGEBOX(STR(long_type)) && This says 0
>
>I know it's Monday and I'm not quite awake. But, why can't I get a value in the function?
>
>TIA
>Mike
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform