Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Error
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01165449
Message ID:
01165540
Views:
15
You cannot use SPT/view parameters like ?VP_Id outside of SQL statements. You have to drop '?' in such case
A = ICASE ( VP_Id  = 7  , .T. , .F. )
>
>i test a "where sql " condition with ? in a program ( .prg )
>
>bernhart
>
>
>
>>The ? is a command.. Print.. in VFP and can't be used inside an ICASE.
>>
>>But, why use ICASE at all? You can get the same result with
>>
>>a = (VP_Id = 7)
>>
>>
>>>Hi All,
>>>
>>>This code give me a error WHEN i save the code ( Compilation program )
>>>
>>>A = ICASE ( ?VP_Id  = 7  , .T. , .F. )
>>>
>>>
>>>But this one give me nothing error...
>>>
>>>
>>>A = ICASE ( 7  = 7  , .T. , .F. )
>>>
>>>
>>>Why ?
>>>
>>>
>>>bernhart
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform