First define all possible buttons in Gui Status. Read your database. In the PBO when calling the status, Make your decision and add the addition EXCLUDING to SET PF-STATUS 'XXXX'. Check out the documentation on SET PF-STATUS for more information.
Regards,
Rich Heilman
Hi
You can directly assign the text to the pushbutton variable.
e.g.
PB_PUSH = 'Create' .
You can also add an icon using
"WRITE <icon_name> AS ICON TO <pb_field_name> ." provided that you have include <ICON> in your program.
*--Serdar
You could do it.
For example:
Define a variable
Data: v_butt1(10).
In PBO, give the value for v_butt1.
V_butt1 = My Button.
When you draw the button on screen, mark the attribute of the button as Output Field in Program Tab. Give the name of the button as v_butt1 and do not worry about the text.
In the PBO when you change the value for v_butt1, it will reflect on screen.
Rgds
Subra
Add a comment