How can i execute code at run time ?
-
hey there ! pls save me now. i want to run this code below at run time : (after we load form already) 1. i have one text box that contain code below dim Str$ for i as integer=0 to 5 for j as integer=0 to 5 for k as integer=0 to 4 str=i+j+k listbox1.items.add str next next next 2. one listbox for get the result 3. one command button for click to execute code in the textbox i wait for all of ur reply 2me na . thanks in advance regard from spider anatha
-
hey there ! pls save me now. i want to run this code below at run time : (after we load form already) 1. i have one text box that contain code below dim Str$ for i as integer=0 to 5 for j as integer=0 to 5 for k as integer=0 to 4 str=i+j+k listbox1.items.add str next next next 2. one listbox for get the result 3. one command button for click to execute code in the textbox i wait for all of ur reply 2me na . thanks in advance regard from spider anatha
-
hey there ! pls save me now. i want to run this code below at run time : (after we load form already) 1. i have one text box that contain code below dim Str$ for i as integer=0 to 5 for j as integer=0 to 5 for k as integer=0 to 4 str=i+j+k listbox1.items.add str next next next 2. one listbox for get the result 3. one command button for click to execute code in the textbox i wait for all of ur reply 2me na . thanks in advance regard from spider anatha
It can be done in VB.NET, but not VB6. This is called "Dynamic code compilation[^]". Be warned, the concepts involved are not for beginners.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007