471,887 Members | 1,143 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

Data entry - indexed

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
Jan 7 '07 #1
0 1142

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Meyer1228 | last post: by
6 posts views Thread by routeslip | last post: by
1 post views Thread by Dave | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.