| View previous topic :: View next topic |
| Author |
Message |
Elec0 Expert Cheater
Reputation: 0
Joined: 21 Nov 2007 Posts: 188 Location: Out of my mind, back in five minutes.
|
Posted: Sat Dec 29, 2007 7:13 am Post subject: [Question]Running Code With Code - VB6 |
|
|
I was wondering if it would be possible if you have, say, a message box that reads from a text file and displays what is in a variable; but then you changed what was in the variable, (in the text file) so something like this:
| Code: |
[GEN]
1= " & form1.text1.text & "
|
I know that is not correct, since I have tried it before. But, is that possible to do somehow?
~Elec0
_________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Sun Dec 30, 2007 7:19 pm Post subject: |
|
|
do you want to rephrase?
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sun Dec 30, 2007 7:24 pm Post subject: |
|
|
are you talking about writing an XML or INI File with setting variables
like so when u load ur form it loads that variable that was saved?
_________________
|
|
| Back to top |
|
 |
Elec0 Expert Cheater
Reputation: 0
Joined: 21 Nov 2007 Posts: 188 Location: Out of my mind, back in five minutes.
|
Posted: Sun Dec 30, 2007 7:31 pm Post subject: |
|
|
Not quite.
Example:
| Code: |
call msgbox(getvar(app.path & "/example.txt", "[EX]", "EXAMPLE"))
Example.txt text
EXAMPLE=form1.text1.text="blahblah"
|
But, if you do that, then you only get form1.text1.text="blahblah".
_________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Sun Dec 30, 2007 7:34 pm Post subject: |
|
|
so are you trying to execute vb code?
so say if I = "msgbox(""Hello"")", then if you have code like
then it shows a message box?
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
|