>>>>>>Try
>>>>>>
>>>>>>lcAlias = thisform.z_CN()
>>>>>>
>>>>>>replace ... IN (m.lcAlias)
>>>>>Yes, I know, but i want to do this in one line. ( for some reason ! )
>>>>
>>>>Does the above work? What is the reason - if two lines work, then let it be.
>>>
>>>because i have a form with a pageframe on it with 10 pages and i have at least 20 line in each page that have this command line in different shape :)
>>
>>If the code in 2 lines works and in 1 does not, then let it me extra lines - as long as it works.
>
>ok, i change my form method code to :
>
>RETURN (EVALUATE("CrsSel"+PADL(ALLTRIM(STR(thisform.PageFrame1.ActivePage)),2,"0")))
>
>and command line to :
>
>lcAlias = thisform.z_CN()
>replace ... IN (m.lcAlias)
>
What is the point of having evaluate there. What is crsSel1 or crsSel2
?
If it's not broken, fix it until it is.
My Blog