cporter
October 17th, 2001, 02:37 PM
I am very new to VB and now have a project I am working on that has me scratching my head. This is some code I have from gwBasic and it works but I want to put it in VB to make a gui interface. The following code runs circuts that open and close in a switch. I want to know if someone can help me put this into VB.
10 OPEN "COM1:19200,N,B,1,DS,CS" as #1
20 CLS:print"PRESS KEY"
30 for X=32 to 62 step 2
40 print #1,CHR$(X);
50 next X
60 for X=33 to 63 step 2
70 K$=INKEY$:IF K$="" THE 70
80 print"RELAY";(X+1)/2
90 print #1,CHR$(X);
100 next X
110 GOTO 20
10 OPEN "COM1:19200,N,B,1,DS,CS" as #1
20 CLS:print"PRESS KEY"
30 for X=32 to 62 step 2
40 print #1,CHR$(X);
50 next X
60 for X=33 to 63 step 2
70 K$=INKEY$:IF K$="" THE 70
80 print"RELAY";(X+1)/2
90 print #1,CHR$(X);
100 next X
110 GOTO 20