0
How can I increment the variable assigned to a byteArray than send it?
Hi I need help to create a for loop that sends the value of s1 to a textfile. than increment s1 to s2 and send the value of s2 to the same file. var s1 = new bytearray ("111111111"); var s2 = new bytearray ("112222122"); for (int i =0; i <2 ; i++){ specialsendcommand.send (s1); s1++; } I want a for loop because I have 9000 variables I need to send. its hard to copy paste same line 9000 times. is there an easy way to do this?
2 Answers
0
hie
bytearray should contain only 0 or 1
in s2 it contains 2, can you expain the problem clearly.
0
You are correct. I put in S2 1s and 2s just as a filler. lets say. var s2 = new bytearry("00001100"); how can i solve the problem?