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--