[thelist] Visual Basic [OT]

Anthony Johnston . Antix tech at antix.co.uk
Thu Dec 5 11:27:01 CST 2002


use callbyname([Form],"MaleDetails" & i,vbget).text="blaadib"

if the code is in the form then replace [form] with Me

or you can get into the controls collection on the form, but
this is more complicated

Ant.

>-----Original Message-----
>From: thelist-admin at lists.evolt.org
>[mailto:thelist-admin at lists.evolt.org]On Behalf Of Dave Stevens
>Sent: 05 December 2002 16:44
>To: thelist at lists.evolt.org
>Subject: [thelist] Visual Basic [OT]
>
>
>Hi all,
>
>I realise this is OT, but its urgent and I thought some of you
>guys might be
>able to help out! In microsoft visual basic 6, I'm reading the
>contents of a
>file in to some variables, and then displaying them in text boxes.
>
>Basically, what I've done is set up the text boxes on the form, 5 for male
>details, 5 for female... I've named them MaleDetails1, MaleDetails2 ...
>MaleDetails5 and FemaleDetails1, FemaleDetails2... FemaleDetails5.
>
>What I was hoping to do was then loop through the file so the first time
>round, the record details would be put in to MaleDetails1, the second time
>MaleDetails2 and so on.
>
>I've set a count variable, "i", that I increase at the end of the loop by
>one, and then tried to say MaleDetails[i].Text = VariableName (not exact
>syntax, I know not to put [i]) but basically I can't find a way to change
>the object name each time round the loop - Anyone got any ideas?
>
>Apologies if this is vague, and of course for the off topic post.
>
>Cheers,
>Dave Stevens,  www.stemfiction.com
>
><tip type="Preventing Spam (To A Certain Extent)" author="Dave Stevens">
>Rather than putting your email address up on your site for every little bot
>to come and harvest your address for mailing lists, create
>yourself a little
>contact form that allows the user to enter their email address so that the
>message is delivered to you as if it came from their address, without your
>address ever being displayed...
></tip>
>
>
>--
>* * Please support the community that supports you.  * *
>http://evolt.org/help_support_evolt/
>
>For unsubscribe and other options, including the Tip Harvester
>and archives of thelist go to: http://lists.evolt.org
>Workers of the Web, evolt !




More information about the thelist mailing list