Addbuttons

This forum is for eXpress++ general support.
Post Reply
Message
Author
omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Addbuttons

#1 Post by omni »

Roger,

We use addbuttons on any program without additional buttons, just needing an ok/cancel or similar. On some we also use @say sayobject to let user know what is happening on multi-part processing, like 1 of 1000 records, things like that. Some users for whatever reason go back and start clicking the buttons again. Know how to handle that with pushbuttons by adding a WHEN or similar to stop them from causing an array index error.
Can that be done with addbuttons? We can change these to pushbutttons, but wondered if the other method is available.

Thanks

Fred
Omni

User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Addbuttons

#2 Post by Tom »

Hi, Fred.

Look at the DCGETOPTIONS BUTTONS <aButtons> clause. This accepts an array as the parameter (two-dim). At position 8 you can add a WHEN-codeblock for each button.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Addbuttons

#3 Post by rdonnay »

You need to use the BUTTONS <aButtons> clause of DCGETOPTIONS.

aButtons allows for a WHEN code block.
The eXpress train is coming - and it has more cars.

Post Reply