Posted: Thu Jun 12, 2014 8:24 am Post subject: Using Inkey (# var) and Input(# var)
Hello
I try to prepare function, where can I choise number of COM port like variable.
Example:
Code:
Function r_data(byval data_f asstring, byval Cl_port asbyte)asstring Local data_f asstring*100 Local data_read asstring*100 Local Cl_port asbyte Local Ikey asbyte
Ikey=Inkey(#Cl_port) if Ikey="+"then Input #Cl_port data_read Noecho endif
r_data=data_read
EndFunction
In help is described, that it is possible, but doesn't work. Why?
If local variable Cl_port I change with fix number (eg. 3) it works.
i do not know to which topic in the help you refer to? it is only possible for Xmega, and only when using variable that starts with name buart. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum