Results 1 to 5 of 5

Thread: A Fun Question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    69
    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

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    69
    i want add code to code to the project so the add-in
    is what i'm looking for

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    69
    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
  •  



Click Here to Expand Forum to Full Width