>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