Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot use variable with Inlist()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009225
Message ID:
01009413
Views:
21
I am trying to do a "brow for inlist(field,&lcValue)"
I get "Function argument value, type, or count invalid"

>Is "fieldname" a table field? Is so, maybe this will work:
Inlist (ALLTRIM (fieldname), &lcValues)
>
>>Doesn't work, I tried and get a syntax error. Remember, using 6.0sp5, I hope that's not the issue.
>>
>>
>>>Try:
Inlist (fieldname, &lcValues)
HTH
>>>
>>>>Does anyone know why a variable cannot be used with Inlist(fieldname,lcValues)? Where lcValues = '"DEP 17052","DEP 0944","05232"'.
Extreme Programming = Plan -> Design -> Code -> Test
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform