Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a function in FOR... ??
Message
From
26/01/2000 22:19:33
 
 
To
26/01/2000 20:27:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00323304
Message ID:
00323350
Views:
26
>I have a function in the following code that Fox interprets as an array and throws the error "invalid subscript":
>
>Set Proc to Sysproc
>Append from table.dbf for ctod2k(paydate) > dPay
>
>Ctod2k is a function in sysproc.prg .
>
>adte = ctod2k(paydate) works OK.
>
>Is there a way to get Fox to recognize ctod2k as a function and not an array? Seems to only happen in a filter or a FOR... clause.
>TIA

Do you have a variable with the same name?

On another note- are you sure you know exactly what the FOR clause in APPEND FROM does? Read the help file very carefully, you might be surprised- most people are.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform