Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Logical L
Message
De
28/07/2009 11:06:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01415063
Message ID:
01415064
Vues:
120
This message has been marked as the solution to the initial question of the thread.
IF Type('thisform.text'+ transform(myObj) + '.enabled') = "L"
  do something
Endif
However, many will argue that Pemstatus() is a better function in this case.

>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform