Getting Dialog Button Results?

new topic     » topic index » view thread      » older message » newer message

I'm new at Euphoria (like 1 week), but I like how you can easily edit and
compile an .exe file, with fairly straightforward language.

To learn, I took on a project at work to store data in a database, using a
form in a DOS window.

I am trying to modify the mydata.ex program to do this, using David Cuny's
routines for dialog boxes.  I have been successful in creating different
modules  that work OK by themselves, and a "form", really a large dialog box
with SLE fields, default values passed into the function, labels, and a few
special buttons on the bottom.

My problem is, I can't figure out how to use the results of the button click
used to exit the dialog procedure.  David's examples end by printing out
"you exited with: New" where New is my button name. However, I want to use
this button click to decide what to do next.

I've tried assigning a variable to the result[1], and it prints with no
problems, but I have been unable to get a  "If result[1]="New" type of
statement to work.

Am I doing this correctly, or is the syntax wrong? Is it something to do
with the result being stored as ASCII? How do I use the results David's
button click routine to branch off where I want?

Any help would save my sanity!

Dave Owens

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu