>>I am a VFP developer and need to do something in VB. In VFP, doing the following is routine business:
>>
>>for i = 1 to 10
>> cBox = 'text' + alltrim(str(i))
>> thisform.&cBox..enabled = .t.
>>next
>>
>>The ampersand is Macro Substitution.
>>
>>How to do it in VB??
>>
>>I posted this in the VB Forum but got negative replies. Everybody said could not be done in VB.
>>
>>Any body in the Fox community know how to do this in VB????
>>
>>TIA,
>>Abdul Ahad
>
>
>VB does not support macro substitution. You'll have write each line of code for each of the 10 textboxes.
Could he not cycle through each object on the form, and set the property of those objects if they are text boxes? I know you can do this in Delphi, and I am sure it is the same in VB...
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement