Valhalla Legends Forums Archive | Visual Basic Programming | HELP!

AuthorMessageTime
TriCk
is there a way to convert text from say a textbox, and impliment it as code, without having to write code to convert the text...

e.g. if i typed like text1.backcolor = vbblue
in a textbox... how would i get stuff like that 2 work?

is it possible?
without having to write
[code]
If InStr(text1.text, "text1.backcolor=") <> 0 Then
test1 = split(Text1.text, "text1.backcolor=")(1)
text1.backcolor = test1
End If
[/code]
or something like that...
because all that code will take alot of room and if theres an easier way id like to hear it, instead of rewriting the entire vb6 coding language
January 18, 2004, 8:11 AM
Adron
There's a control called Microsoft Script Control. Look for it in MSDN. It could probably be used to do what you want.
January 18, 2004, 11:43 AM

Search