ok i understand. so if i write strBytes(1)=13 then that will work, but given that i have in the lines before put a longer string into strByes() how can I tell astreams.write where in the array to stop sending. How does it know how long the string is as i have dimensioned it to 99 elements ?
Indeed if I have
strBytes = conv.StringToBytes(DateTime.Now,"UTF8")
Astreams.Write(strBytes)
how is the end marked as I don't think all 99 bytes are being sent each time, unless the rest contains nulls which i can't see in the display label and all 99 are being sent. If thats the case can i dimension the array to size every pass ?
thanks