Re: Weird variable (non-)refresh issue
Hi Bob, I'm assuming that: 1) you are setting the input form's variable in the **same** method where you call DIALOG. 2) you are calling DIALOG **without** the asterisk parameter. If so, I believe the variable's value will never be displayed in the input form while the dialog is open. That's because the method does not complete (i.e., reach its end) **until** the dialog gets closed. But you can make the method complete and reach its end while the dialog is open by calling DIALOG with the asterisk parameter. With the asterisk parameter, the method completes, the variable display its value, and the dialog remains open. http://livedoc.4d.com/4D-Language-Reference-16/Data-Entry/DIALOG.301-3036034.en.html Jeremy French > On Mar 15, 2017, at 3:56 PM, bob.miller--- via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have a situation where I have a variable on an input form that I set > programmatically immediately before opening a dialog window (using the > "Plain Window" window type). When I move the dialog to the side (to see > the input form, now in the background), the variable still has its "old" > value. > > I know the variable is being set because I tried setting the variable > value to the clipboard before opening the dialog (the new value gets > there). When the dialog is closed, the variable is updated with the new > value. > > I've tried throwing in a REDRAW(variablename) and even a DELAY > PROCESS(Current process;60) - but neither has any effect. > > I noticed that the same effect happens even when an ALERT is called > instead of opening a dialog - the variable does not display its new value > in the background. All of this is in the same process, of course. I've > tried using process variable displayed on the form as well as an object > without a variable name (using Object Get Pointer to set the value) - same > results. > > It is important that the screen properly show the "new" value in the input > form so it is visible in the background when the dialog is open. > > Any thoughts? Anyone seen this? How to get a window to refresh before > opening another window? I was quite surprised that even the Delay Process > didn't do it ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Weird variable (non-)refresh issue
to refresh variables on display, one must CALL PROCESS(-1) http://doc.4d.com/4Dv15/4D/15/CALL-PROCESS.301-2006854.en.html > 2017/03/16 4:56、bob.miller--- via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I've tried throwing in a REDRAW(variablename) and even a DELAY > PROCESS(Current process;60) - but neither has any effect. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Weird variable (non-)refresh issue
Did you try: x:=x Jim Dorrance jim.dorra...@gmail.com 4...@dorrance.eu www.4d.dorrance.eu PS: If you know of anyone that needs an experienced 4D programmer to add energy and experience to their team, please let me know. I have experience in many areas. Reasonable rates. Remote or Paris only. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Weird variable (non-)refresh issue
Hi Everyone, I have a situation where I have a variable on an input form that I set programmatically immediately before opening a dialog window (using the "Plain Window" window type). When I move the dialog to the side (to see the input form, now in the background), the variable still has its "old" value. I know the variable is being set because I tried setting the variable value to the clipboard before opening the dialog (the new value gets there). When the dialog is closed, the variable is updated with the new value. I've tried throwing in a REDRAW(variablename) and even a DELAY PROCESS(Current process;60) - but neither has any effect. I noticed that the same effect happens even when an ALERT is called instead of opening a dialog - the variable does not display its new value in the background. All of this is in the same process, of course. I've tried using process variable displayed on the form as well as an object without a variable name (using Object Get Pointer to set the value) - same results. It is important that the screen properly show the "new" value in the input form so it is visible in the background when the dialog is open. Any thoughts? Anyone seen this? How to get a window to refresh before opening another window? I was quite surprised that even the Delay Process didn't do it Many thanks! Bob Miller Chomerics, a division of Parker Hannifin Corporation ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **