jeudi 28 juillet 2016

Load variable into an array

hello,
is it possible to load variable or values to an array in one line of code instead of using:


Code:
  Private Buffer(8) As Byte 
.....
......

Buffer(
0) = 0x5A
Buffer(
1) =0xA5
Buffer(
2) = 0x05
Buffer(
3) =0x82
Buffer(
4) =0x00
Buffer(
5) = 0x41
Buffer(
6) =0x00
Buffer(
7) = 0x01
Serial1.Stream.WriteBytes (Buffer,
0,8)
and how can I send it to stream with variable length(must be declared with length!), i.e. one time holds 3 bytes and next time holds...

Load variable into an array

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2aOzQvm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire