Hello Susan,

> I think this might be a fairly easy one (I hope!)  I'm trying to build an
> array based off of user input.  In the custom dialog there will only be on
> Edit Text box for the user to input the data.  There will also be
> a Control Button titled "Next".  The gist of it being that after the user
inputs a
> string/value in the edit text box and clicks "next" the value
> will be stored and the edit text box cleared so that the next value can be
> inputted.  I've tried a few different things (readcontrolvalue etc. but to
no avail) Any
> suggestions (I'm limited to MB)?

You have a choice of re-using or re-starting your dialog. To re-use it, you
need to use the "alter control ..." statement to clear the text of the
message box. To restart it, just arrange your code so that the "Next>"
button is an "okbutton" which dismissed the dialog, and loop around to call
the "dialog ..." statement again.

One thing to think about is that most user use the mouse to press buttons
and not any keyboard shortcuts. So, your user will probably be switching
between typing, mouse click several times. I don't know how many entries
you're expecting from the user but I think a better solution would be to use
a larger dialog with a reasonably sized text box. Put a note on the dialog
asking the user to enter their value using a comma (or other) separator.
Then, when they hit "OK", it's quite straight forward to write an MB loop
which runs through the entered string and extracts the sub-strings/numbers
for your array.

Regards,
Warren Vick
Europa Technologies Ltd, U.K.
http://www.europa-tech.com

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to