----- Original Message ----- From: "Bernard Lis" <[EMAIL PROTECTED]> To: "RBG7-L Mailing List" <[email protected]> Sent: Sunday, March 27, 2005 9:26 PM Subject: [RBG7-L] - Re: exiting form does not return control to callingprogram
> Mike, > If set OnAfterStart, how long does it hold? > Would it be for the entire session (until we exit the database) or just for > that form? The Life of the Form (till it disappears unless you set visible = 'false') > Would it be a good idea to put it into every form? Only when you need it to be applied. > Bernie Lis > > ----- Original Message ----- > From: "MikeB" <[EMAIL PROTECTED]> > To: "RBG7-L Mailing List" <[email protected]> > Sent: Sunday, March 27, 2005 5:03 PM > Subject: [RBG7-L] - Re: exiting form does not return control to > callingprogram > > > > > > ----- Original Message ----- > > From: "Bernard Lis" <[EMAIL PROTECTED]> > > To: "RBG7-L Mailing List" <[email protected]> > > Sent: Sunday, March 27, 2005 12:09 PM > > Subject: [RBG7-L] - Re: exiting form does not return control to > > callingprogram > > > > > >> OK, it's daylight now and the program is still working (but have faith, I > >> haven't delivered it to the customer yet). > >> So why does it matter where the property DONTSHOWSAVEDIALOG is placed? > > > > _Anytime_ you are going to set object properties for the duration of the > > life > > of the object, you would set it at the "earliest" time possible, which > > with our > > forms is the onAfter Form EEP. In your scenario, you are trying to change > > the > > property (quite possibly after) at the time it is being tested for. > > > > In Real Estate it's Location Location Location, In programming it's Timing > > Timing Timing! > > > > > > > > > > > > > >> I originally placed it in the eep just before closing the window, which > >> is > >> where you get the message "Do you want to Save" and it did suppress the > >> message but didn't return control to the calling program. > >> Could someone explain why the placement of this command is critical? > >> And are there rules for the placement of other property commands? > >> > >> Bernie Lis > >> ----- Original Message ----- > >> From: "Bernard Lis" <[EMAIL PROTECTED]> > >> To: "RBG7-L Mailing List" <[email protected]> > >> Sent: Sunday, March 27, 2005 1:03 AM > >> Subject: [RBG7-L] - Re: exiting form does not return control to > >> callingprogram > >> > >> > >> > David, Jim, > >> > I moved the property command to the after start eep, as you suggested. > >> > Now I can't make it fail! Hmmmmmm! > >> > I'll try again in the morning. Maybe daylight is the cause for it > >> > failing. > >> > Thanks! > >> > Bernie Lis > >> > ----- Original Message ----- > >> > From: "Jim Schmitt" <[EMAIL PROTECTED]> > >> > To: "RBG7-L Mailing List" <[email protected]> > >> > Sent: Saturday, March 26, 2005 9:02 PM > >> > Subject: [RBG7-L] - Re: exiting form does not return control to > >> > callingprogram > >> > > >> > > >> >> Bernie: > >> >> > >> >> 1. Put the 'PROPERTY RBASE_FORM DONTSHOWDAVEDIALOG 'TRUE' in the 'ON > >> >> AFTER > >> >> START EEP. > >> >> > >> >> 2. It sounds like you have an undefined VAR somewhere. > >> >> > >> >> Jim > >> >> > >> >> At 03:09 PM 3/26/05 -0500, you wrote: > >> >>> > >> >>>tracing the command file, at the end shows the following: > >> >>> > >> >>>clear all var except runvar,cno > >> >>>PROPERTY RBASE_FORM DONTSHOWSAVEDIALOG 'TRUE' > >> >>>closewindow > >> >>>return > >> >>> > >> >>>It returns to the R> instead of the calling program. > >> >>>No errors were seen during the trace! > >> >>> > >> >>>The calling program does Edit using StartEnd > >> >>>the form comes up and retrieves data, then when I exit the form, it > >> >>>goes > >> >>>to > >> >>>an R> > >> >>> > >> >>>The statement after the edit using is a pause to see if it returns. > >> >>> > >> >>>Any ideas would be appreciated. > >> >>> > >> >>>Bernie Lis > >> >>> > >> >> ======================================== > >> >> Jim Schmitt > >> >> Ohio Software Services > >> >> 2211 Lake Club Drive > >> >> Columbus, Oh 43232 > >> >> Phone 1-614-863-1850 > >> >> Fax 1-614-863-0325 > >> >> E-mail [EMAIL PROTECTED] > >> >> ======================================== > >> >> > >> >> > >> > > >> > > >> > > > > >
