-
Paul Shue
- PowerBuilder
- Tuesday, 1 July 2025 07:16 PM UTC
We recently added a new process to our application which was checking the width of datawindow text fields to verify the data would fit.
This pbl (call it newstuff.pbl) contains maybe 120 dataobjects, 5 global functions, a structure, a non-visual userobject and 3 windows. Everything seems to work fine but after more testing we ran into into issues where it seems the global message object is somehow getting nulled after it is set but before it is checked. In our example we call pfc of_message.
li_resp = gnv_app.inv_error.of_message( 'P188', ls_parm[] )
This code opens a response window (w_message with yes / no buttons. In the pfc_default event of that window the following code is run
and I checked in debug to verify that ii_buttonclicked is set correctly at the CloseWithReturn statement.
Using PB version 2021 Build 1509
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.