Hi, I am a relative VB novice trying to talk to a microcontroller devlopment kit from VB express.
I am using serialcommchat - a simple serial port RS232 program that works very well. It can be found on the Devx website should anyone else need such a program. I can send and received data just fine over the RS232 link.
Now what I want to do is send useful data. I can use ASCII as the target board can resolve this into HEX data to use. No problem there, but the format has to be: Address (2 charachters in HEX) Sub Address (2 charachters in HEX) followed by data also 2 Ascii chars but up to ten data blocks.
I have a simple text box input for the first two and if Sub Address is "" (null) then I ignore it as the target board may or may not use subaddresses.
What is the best way to offer the VB user a box to enter data that becomes tabulated or is this even possible in VB?
I hoped to use an empty combo box, but I cannot progress beyond the first line.
I have set its properties to drop down true and max five entries but the box remains one line only. At runtime I can change this data but the next entry just overwrites it.
I need to be able to implement a recursive send loop (for-next) until all data has been sent, so I think that I need some kind of indexed entry that can also tell me how many entries have been inserted. Sometimes there will only be 1 byte, sometimes as many as ten, depending on the target device.
Is there a better alternative to a combo box? Typically I want to limit the entries to no more than 10 as the uC has not much storage.
Any help would be appreciated