Chat on IRC |
Help With Scripting Language, VB6
Posted by andymcnab [send private reply] at June 06, 2002, 11:09:06 AM
Hello there, I am making a scripting lanuage in VB 6. Nothing serious just a bit of an experiment really but this thing is realy bothering me!
it is when text2.text = "print " then (i want text1 to say whatever the text after "print " is) EXAMPLE: if text2.text = print "Hello my name is andy" then i want text1 to just say the Hello my name is andy (without the quotes and minus the space) I hope you understand, thanx help me if possible, appreciated! ANOTHER EXAMPLE:- they may type in text2: print hello im andy i want text1 to say: hello im andy -AndyMcnab
Posted by metamorphic [send private reply] at June 06, 2002, 11:17:18 AM
first divide the string in 2, seperated by the colon (:). call the first part the 'operand' second part the 'arrguments'Then put the first part in a select case statment.
eg: <% select case operand case "text2" text1.text = argument break end select %> somthing like that
Posted by andymcnab [send private reply] at June 06, 2002, 11:56:00 AM
Okay Thanx a lot, metamorphic.
Register as a new user | |||||