You are currently viewing a search engine-friendly (archive) version of this page.
View Full Version : VB6 Data for all, data for all....
dawonn
April 22, 2002, 10:25 pm
how do i let al my forms use a variable, like an IP i want all my fourms to use the same IP but don't want to hard code it, how do i do that?
Lord Skeeve
April 22, 2002, 11:07 pm
for like textbox input?
whats are ya tryin to do, i might have a code snippet or 2 to help ya out
tweakthis
April 23, 2002, 08:49 pm
Dawon, hon, we have really got to get you to speak in longer sentences! <img border="0" title="" alt="[Wink]" src="wink.gif" /> <img border="0" alt="[Laughing]" title="" src="graemlins/lol.gif" />
Can you elucidate for Lord Skeeve, cause, heaven knows, I don't know how to help you out. <img border="0" title="" alt="[Wink]" src="wink.gif" /> <img border="0" alt="[Laughing]" title="" src="graemlins/lol.gif" /> <img border="0" alt="[Laughing]" title="" src="graemlins/lol.gif" /> <img border="0" alt="[Laughing]" title="" src="graemlins/lol.gif" />
<small>[ April 23, 2002, 05:50 PM: Message edited by: tweakthis ]</small>
dawonn
April 24, 2002, 04:30 pm
i.need. to. input. 1. varyable . to. a. text. box. then. let. all. my. forms. use. it.
<img border="0" alt="[Censored]" title="" src="graemlins/censored.gif" /> <img border="0" alt="[Laughing]" title="" src="graemlins/lol.gif" /> :D
Lord Skeeve
April 24, 2002, 04:35 pm
so what ur lookin for is text1.text = "whatever"
to access it from other forms you would use
whichever form the text is on like form1
form1.text1.text
or you could just define the variable on form load event
use something like dim ipaddress
under form_load() put
ipaddress = "whatever"
this method gets rid of the need for a textbox
Lord Skeeve
April 24, 2002, 08:07 pm
lemme know if that helped or not
im much better at visual basic than i am with hardware
dawonn
April 26, 2002, 06:55 pm
i will try it out, that is what i need thought
vBulletin Copyright © Jelsoft Enterprises Ltd., 2000-2009.