Code: Select all
dim c as string,t as integer
c=""
while loc(1)
c+=input(1,loc(1))
sleep 0
wend
print c
EDITED: I once added that feature of LOC to the wiki, and it looks like I was wrong...
Code: Select all
dim c as string,t as integer
c=""
while loc(1)
c+=input(1,loc(1))
sleep 0
wend
print c
Code: Select all
dim c as wstring*10
c="hello"
c=c+input(1)
print c
close
sleep
Code: Select all
open cons for input as #1
dim c as wstring*10
c="hello"
c=c+input(1,1)
print c
close
sleep
Code: Select all
......
dim as ubyte incombyte
OPEN COM "COM1:19200,N,8,1,CS,DS,BIN,DT" AS 1
.....
if LOC(1) then get #1, ,incombyte
......