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
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer