• Welcome to Valhalla Legends Archive.
 

HELP!

Started by TriCk, January 18, 2004, 02:11 AM

Previous topic - Next topic

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

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

Adron

There's a control called Microsoft Script Control. Look for it in MSDN. It could probably be used to do what you want.