Q: Checking if userinput is a valid time/date
Tadeusz Sienkiewicz; tsienkie@aft.sn.no wrote: Ok, so here's the deal. How do I make the program search for f.ex. the 37th word in my text box and display it in a MsgBox. Or something similar. The program reads the text box. If the first word is "add", the program adds the two following numbers (or three for that matter).If the first word is "multiply", it multiplies, a.s.o. A: Yes.. you must first get all the separate words in the textbox. How to do this? Get the example on the site below called String. There is a way to get all the separate words of a textbox into a array. Now you can go on... The first question you can simply anser to make get the appropiate array (in this case with the used example it will be with the code MsgBox vWords(36) The second question you have to make some checking first: Check the first value of vWords(0). If it is "add" then do MsgBox Val(VWords(1)) + Val(vWords(2)) If it is "multipli" then do MsgBox Val(VWords(1)) * Val(vWords(2)) Return