shaminda
March 6th, 2001, 09:06 AM
I have a program that reads and writes data to and from a parallel port. I want to read three inputs (say inputA, inputB, inputC). But I don’t know which one I will be reading first. I can read one input using the following code.
Read inputA
Do While not inputA
Read inputA
'there is more code here
Loop
How can I read 3 inputs randomly? I am thinking of using 3 Timer controls but I don’t know how. Here is an example how the function should read.
Read InputA, Read InputB, Read InputC,
Read InputB, Read InputB, Read InputA,
Read InputC, Read InputB, Read InputA,
Read InputA, Read InputA, Read InputA,
Read inputA
Do While not inputA
Read inputA
'there is more code here
Loop
How can I read 3 inputs randomly? I am thinking of using 3 Timer controls but I don’t know how. Here is an example how the function should read.
Read InputA, Read InputB, Read InputC,
Read InputB, Read InputB, Read InputA,
Read InputC, Read InputB, Read InputA,
Read InputA, Read InputA, Read InputA,