Can you please help with a VB.NET syntax question? Say you had 50 controls on your form called txt1 to txt50 which you wanted to disable. In Visual Foxpro you can use something called macro substitution in your code to help with this as follows:-
FOR i = 1 TO 50
STORE LTRIM(STR(i,4)) TO n && convert numeric to string
.txt&n.enabled = .F. && disable txt1 to txt50
NEXT
Is there any equivalent in VB.NET?? (the setting of .enable isn't important, it's the reference to the control name I'm after).
Many thanks
FOR i = 1 TO 50
STORE LTRIM(STR(i,4)) TO n && convert numeric to string
.txt&n.enabled = .F. && disable txt1 to txt50
NEXT
Is there any equivalent in VB.NET?? (the setting of .enable isn't important, it's the reference to the control name I'm after).
Many thanks