|
-
Nov 29th, 2000, 10:26 AM
#1
Thread Starter
Lively Member
Does anyone have any ideas on....
I would like to know where i could look
to get infomation on adding code to a program
at run time... something like a code generator
or something to that effect kinda like a wizard.
any ideas?
thanks
jb
-
Nov 29th, 2000, 11:01 AM
#2
transcendental analytic
Do you mean something like vbscript? you could use a scripting control to generate and execute code under runtime, or do you want to add code to your vb project? then you could make an add-in to do that.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 29th, 2000, 11:17 AM
#3
Thread Starter
Lively Member
i want add code to code to the project so the add-in
is what i'm looking for
-
Nov 29th, 2000, 11:39 AM
#4
transcendental analytic
Well there are a lot you need to know about coding add-ins but it's most fun when you don't, since you'll discover there's a lot you can do with it i'll give you something to start with:
Code:
Private VBInstance As VBIDE.VBE
'how to retrieve code
Debug.Print VBInstance.VBProjects("Project1").VBComponents("Form1").CodeModule.Lines(1)
'how to write code
VBInstance.VBProjects("Project1").VBComponents("Form1").CodeModule.InsertLines 1, "Yourcode"
it's best for you if you create a new add-in project then you have all that you need. just play around with the vbinstance object and you'll find out. Anywhere here's for adding and retrieving code.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 29th, 2000, 11:42 AM
#5
Thread Starter
Lively Member
well thanks i'll play around with this
any other ideas from anyone will be great 
but this is a start and thats what i needed
thanks again
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|