Hi All,
There is a text file with content for example
now()
In vb i will read the content of this text file and then i want to execute this as a vb command. How to do that?
Below is flow...
Now writing the read value to output in a text box.
Now if we execute this program, i'm getting only now() in the Text1
control instead i want 10/3/2007 7:09:11 PM in the text1 control. How
to do this is my question..... Similiary any command can be written in
the file and if we execute then vb should read the content of the text file and find recognize as command and not text and execute it.... How to do this??? Any api or logic ....???
OS: Windows
Language: VB6
There is a text file with content for example
now()
In vb i will read the content of this text file and then i want to execute this as a vb command. How to do that?
Below is flow...
Code:
Dim handle As Integer Dim sInhalt As String handle = FreeFile Open strFilename For Binary As #handle sInhalt = Space$(LOF(handle)) Get #handle, , sInhalt Close #handle
Code:
Text1.Text = sInhalt
Now if we execute this program, i'm getting only now() in the Text1
control instead i want 10/3/2007 7:09:11 PM in the text1 control. How
to do this is my question..... Similiary any command can be written in
the file and if we execute then vb should read the content of the text file and find recognize as command and not text and execute it.... How to do this??? Any api or logic ....???
OS: Windows
Language: VB6
Comment