Self-modifying Code 
Author Message
 Self-modifying Code

I want to be able at runtime to execute a line of code that is

"Set x = New " & ObjTyp$

where ObjTyp$ contains a string such as "Collection" or "UserDefinedClass"

Any way to do this?

Ken



Sun, 11 Apr 2004 11:57:33 GMT  
 Self-modifying Code
Try something like

Eval("Set x = New " & ObjTyp$)

HTH,

Regards,

Matt Pickering
LUPO DATA CONCEPTS LTD
http://www.lupo.net.nz


Quote:
> I want to be able at runtime to execute a line of code that is

> "Set x = New " & ObjTyp$

> where ObjTyp$ contains a string such as "Collection" or "UserDefinedClass"

> Any way to do this?

> Ken



Sun, 11 Apr 2004 14:21:46 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Self modifying code

2. self-modifying code (qbasic)

3. Self-Modifying Code?

4. self-modifying Word document without macro

5. Are self modifying .exe's possible?

6. ??? self modifying EXE file - registration technique ???

7. self-modifying scaling

8. Self-modifying VBScipt example

9. Self Delete or modify

10. Self Modify EXE / Constants...

11. Self Modifing Code VB Code

12. fso.delete(self) - how to refer to self?

 

 
Powered by phpBB® Forum Software