Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data input question

Status
Not open for further replies.

kodr

Programmer
Dec 4, 2003
368
I've got an application that requests user input (number of times to do an action), then prompts for a series of numbers (two numbers at a time, seperated by a space.)

The first number input drives the number of times the program prompts for the follow on numbers.

The problem is, with this way, it's easy to lose track of which numbers have been entered already.

Short of prompting for all the numbers at once, does anyone have any suggestions on how to handle this? I'm not looking for code, just an alternate to my process.

I'm thinking I need to either display the last set of numbers entered, when prompting for the follow on numbers, or display the list at the end, and give the option to re-enter all the numbers..

Can anyone think of a better way?
 
Thanks, what I ended up doing is just changing the prompt of a sdlgmsgbox, and displaying the last entry like you said.

Is there a way of having two dialog's showing, and constantly refresh one of them with the list, as items are added?
 
Yes, I believe this is possible, but it's been a while since I've done so. You'll just need to make sure that the dialog are created with different dialog IDs and the variables that need to be shared can be accessed by both dialogs (i.e. they can't be split between different procedures unless they are globals).


 
Thanks, I'll mess around with this. I'm only using one procedure, it's a realitivly simple program.
 
Better yet, I'm using statmsg, and I just build the list down in the status bar.

And once the program finishes, I clear the bar.

Works good.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top