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
Printable View
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
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.
i want add code to code to the project so the add-in
is what i'm looking for
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:
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.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"
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 ;)