Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Callbyname function question
Message
De
21/08/2003 23:11:09
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Callbyname function question
Divers
Thread ID:
00822468
Message ID:
00822468
Vues:
42
Hi,

If I had 03 forms with similar control

The first two forms had 03 text box.
The third form had a button that must retrieve
all the 03 text box value of the form that is active

As my form need may increase, I don't want
to hardcode it. How do I retrieve the textbox
value from which form. How do I pass the
first object as variable name in the callbyname
function

Example,

For lNo = 1 To lTotal
lValue = Callbyname("form" & lNo, "Text" & lNo,vbGet) <== "form" & lNo error, not a object
Next

Above is my code having problem with the object parameter.

Please kindly advise. Thank you
Best Regards
Virusim
Répondre
Fil
Voir

Click here to load this message in the networking platform