a project or simple sample?

Beja

Expert
Licensed User
Longtime User
Hello friends,
Well I must be honest and in fact this is my age-old question coming arround.

back in vb it looks like this:
mscomm1.comport = "&H" & Text1 '(text1 now should hold BT 6-byte MAC address.. will parse later)
dim bytes (1 to 2) as byte
bytes(1) = "&H" & Text2
bytes(2) = "&H" & Text3
mscomm1.output = bytes
The b4a equivlnt of the above code that I couldn't do.
 
Last edited:

yttrium

Active Member
Licensed User
Longtime User
Hello friends,
Well I must be honest and in fact this is my age-old question coming around.

Back in VB it looks like this:
B4X:
mscomm1.comport = "&H" & Text1  '(text1 now should holds BT MAC address)
dim bytes (1 to 2) as byte
bytes(1) = "&H" & Text2
bytes(2) = "&H" & Text3
mscomm1.output = bytes
The b4a equivalent of the above code that I couldn't do.

I fixed your spelling and put it into code tags for you.

What exactly does this code do? (see my signature)
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Thanks Erel, this is very helpful.. will try it as soon as the Android config is solved.
 
Upvote 0
Top