Moises,
Sorry, I was busy - without checking all other responses I can tell you - you're missing TYPE in the test.
I was testing for
type('myLogicalProperty') = 'L'
>In a form I have 3 textboxes
>
>text1, text2, text3
>
>(but I may have many textboxs )
>
>the code below works fine, I used it to disable textboxes
>***********************************************************************************
>FOR myObj = 1 TO 3
>
>STORE .F. TO('thisform.text'+ transform(myObj) + '.enabled')
>
>
>NEXT
>*****************************************************************************************
>
>suppose I have two 2 textboxes
>
>***********************************************************************************
>FOR myObj = 1 TO 3
>
>IF ('thisform.text'+ transform(myObj) + '.enabled') = "L" && logical test condition
>
>STORE .F. TO('thisform.text'+ transform(myObj) + '.enabled')
>
>ENDIF
>
>NEXT
>*****************************************************************************************
>
>But the logical test above does not work
>It gives error messagen in the third for, because I only have 2 textboxes
If it's not broken, fix it until it is.
My Blog