How to execute a string using VB?
Posted on 2003-03-26
I'm making a program to build "ON-LINE" VB commands... all of these are saved in a DB.
When the program reads a record, the command is stored in a variable. for example:
dim comd as string
comd=rs("COMMAND") ' reading the DB COMMAND="FORMAT(CDATE(Text1.text),"MM/DD/YYYY")"
at last comd should have 02/12/1998
How to execute the command stored in comd and get the right date. I really appreciate your comments.
Thanks a lot