Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: TriCk on January 18, 2004, 02:11 AM

Title: HELP!
Post by: TriCk on January 18, 2004, 02:11 AM
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

If InStr(text1.text, "text1.backcolor=") <> 0 Then
      test1 = split(Text1.text, "text1.backcolor=")(1)
      text1.backcolor = test1
End If

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
Title: Re:HELP!
Post by: Adron on January 18, 2004, 05:43 AM
There's a control called Microsoft Script Control. Look for it in MSDN. It could probably be used to do what you want.