Teen Programmers Unite  


Return to forum top

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)
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!

they may type in text2: print hello im andy
i want text1 to say: hello im andy


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.

select case operand
case "text2"
text1.text = argument
end select

somthing like that

Posted by andymcnab [send private reply] at June 06, 2002, 11:56:00 AM

Okay Thanx a lot, metamorphic.

You must be logged in to post messages and see which you have already read.

Log on
Save for later automatic logon

Register as a new user
Copyright TPU 2002. See the Credits and About TPU for more information.