Click here to Skip to main content
15,890,506 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralVBScript for automating USB installation Pin
Bri4hire24-Nov-04 8:03
Bri4hire24-Nov-04 8:03 
GeneralRe: VBScript for automating USB installation Pin
Dave Kreskowiak24-Nov-04 10:33
mveDave Kreskowiak24-Nov-04 10:33 
GeneralRe: VBScript for automating USB installation Pin
Anonymous24-Nov-04 13:22
Anonymous24-Nov-04 13:22 
GeneralRe: VBScript for automating USB installation Pin
Dave Kreskowiak24-Nov-04 15:29
mveDave Kreskowiak24-Nov-04 15:29 
GeneralUpdating dataadapter error Pin
ccotton33324-Nov-04 7:34
ccotton33324-Nov-04 7:34 
GeneralRemoting Problems ... Pin
Paebbels24-Nov-04 6:23
Paebbels24-Nov-04 6:23 
GeneralRe: Remoting Problems ... Pin
Paebbels25-Nov-04 9:08
Paebbels25-Nov-04 9:08 
QuestionExecute string command? Pin
sundayschool24-Nov-04 2:32
sundayschool24-Nov-04 2:32 
I have 39 buttons on a form (numbered 1-39) and I want to randomly assign text values to those buttons when it loads. So I have a sortedlist object with the values I want to assign. However, I want to use a single event (like the form load event) to assign the text string to the buttons. In this load event, I want to use a looping structure like "while" to assign the text from the sortedlist to each button. The only way I could find to do this was to generate the button identifier as a string. For example:

string = "button"&counter&".text=x.getbyindex(counter)"
x is my sortedlist instance.
Counter in this case is the counter on my loop. So as it loops the 1st time, it sets button1.text = the first instance in the sortedlist. The second loop sets button2 and so on. If there is a better way to do this, I am all ears. However, even if there is a better way, I would still like to know if VB has an execute string command. Any help is much appreciated.Smile | :)

scout12
AnswerRe: Execute string command? Pin
Pablo.ar24-Nov-04 2:50
Pablo.ar24-Nov-04 2:50 
GeneralRe: Execute string command? Pin
sundayschool24-Nov-04 6:40
sundayschool24-Nov-04 6:40 
GeneralRe: Execute string command? Pin
Dennis C. Dietrich24-Nov-04 7:03
Dennis C. Dietrich24-Nov-04 7:03 
GeneralRe: Execute string command? Pin
Dave Kreskowiak24-Nov-04 10:26
mveDave Kreskowiak24-Nov-04 10:26 
GeneralRe: Execute string command? Pin
Pablo.ar25-Nov-04 2:39
Pablo.ar25-Nov-04 2:39 
GeneralRe: Execute string command? Pin
Dave Kreskowiak25-Nov-04 5:14
mveDave Kreskowiak25-Nov-04 5:14 
GeneralRe: Execute string command? Pin
Dennis C. Dietrich25-Nov-04 5:56
Dennis C. Dietrich25-Nov-04 5:56 
QuestionQuery Parser in VB? Pin
.NetRams24-Nov-04 0:49
.NetRams24-Nov-04 0:49 
AnswerRe: Query Parser in VB? Pin
Steven Campbell24-Nov-04 14:46
Steven Campbell24-Nov-04 14:46 
GeneralRe: Query Parser in VB? Pin
J4amieC25-Nov-04 4:12
J4amieC25-Nov-04 4:12 
GeneralRe: Query Parser in VB? Pin
Steven Campbell25-Nov-04 4:54
Steven Campbell25-Nov-04 4:54 
QuestionSystem-wide CBT Hook in .NET? Pin
Hadi Fakhreddine23-Nov-04 23:01
Hadi Fakhreddine23-Nov-04 23:01 
GeneralNetware Purge command Pin
Ranoush23-Nov-04 21:13
Ranoush23-Nov-04 21:13 
GeneralRe: Netware Purge command Pin
Dave Kreskowiak24-Nov-04 1:37
mveDave Kreskowiak24-Nov-04 1:37 
GeneralRe: Netware Purge command Pin
Ranoush26-Nov-04 19:53
Ranoush26-Nov-04 19:53 
GeneralRe: Netware Purge command Pin
Dave Kreskowiak27-Nov-04 1:37
mveDave Kreskowiak27-Nov-04 1:37 
QuestionSilent installation? Pin
charleslau285523-Nov-04 20:44
charleslau285523-Nov-04 20:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.