Hello friends
I need to send a list of products in Bytes to a thermal printer connected by bluetooth.
To make this possible, I send the data by line of bytes to the printer. For this I create a variable type Byte using this code:
The problem is that I do not know how many Byte variables I should create since the list of products can have from 1 product to N products.
I wrote this code but it gives me error:
In the end, I need to create the same number of Byte variables that are in the list of products
I need to know if in B4A it is possible to create these variables in a dynamic way.
I am very grateful with the solution that you can give me.
I need to send a list of products in Bytes to a thermal printer connected by bluetooth.
To make this possible, I send the data by line of bytes to the printer. For this I create a variable type Byte using this code:
B4X:
Dim Line1Byte () as Byte
The problem is that I do not know how many Byte variables I should create since the list of products can have from 1 product to N products.
I wrote this code but it gives me error:
B4X:
For m = 0 To ListProd.Size-1
Dim Line&m&Byte () As Byte
Next
In the end, I need to create the same number of Byte variables that are in the list of products
I need to know if in B4A it is possible to create these variables in a dynamic way.
I am very grateful with the solution that you can give me.