PETER ZHOU
How to do a lookup November 09, 2008 10:46AM |
Jimbo
Re: How to do a lookup November 09, 2008 12:07PM |
Moderator |
// open the vision+ window IF Open(Vision_MWSTSATZ_Fiche,(iMwStNum)) THEN // the window was modified MyWindow..Modified = True ReturnToCapture(Fiche.iMwStNum) END
// Stop the automatic window refesh SuspendRefresh(True) ErgebnisString = PreviousWin() {ErgebnisString+".Fiche.iMwStNum"} = MWSTSATZ.iMwStNum // Set the window return value to 'True' MyWindow..ReturnedValue=True // close the window Close()
PETER ZHOU
Re: How to do a lookup November 10, 2008 10:16AM |
Quote
Jimbo
Hi Peter,
I'm giving you just a fast example, if questions arise, please feel free ... I assume that you have a button right or left to the combo that will open the vision+ window? Code in button:
// open the vision+ window IF Open(Vision_MWSTSATZ_Fiche,(iMwStNum)) THEN // the window was modified MyWindow..Modified = True ReturnToCapture(Fiche.iMwStNum) END
In the vision+ window (I'm using MDI, which makes things a bit different to SDI) the OK-button contains the following code:
// Stop the automatic window refesh SuspendRefresh(True) ErgebnisString = PreviousWin() {ErgebnisString+".Fiche.iMwStNum"} = MWSTSATZ.iMwStNum // Set the window return value to 'True' MyWindow..ReturnedValue=True // close the window Close()
Kind regards,
Guenter
PETER ZHOU
Re: How to do a lookup November 11, 2008 06:01AM |
Quote
PETER ZHOUQuote
Jimbo
Hi Peter,
I'm giving you just a fast example, if questions arise, please feel free ... I assume that you have a button right or left to the combo that will open the vision+ window? Code in button:
// open the vision+ window IF Open(Vision_MWSTSATZ_Fiche,(iMwStNum)) THEN // the window was modified MyWindow..Modified = True ReturnToCapture(Fiche.iMwStNum) END
In the vision+ window (I'm using MDI, which makes things a bit different to SDI) the OK-button contains the following code:
// Stop the automatic window refesh SuspendRefresh(True) ErgebnisString = PreviousWin() {ErgebnisString+".Fiche.iMwStNum"} = MWSTSATZ.iMwStNum // Set the window return value to 'True' MyWindow..ReturnedValue=True // close the window Close()
Kind regards,
Guenter
Hi Guenter,
Thank you for your reply.
I'm not using a button to open any window.
I would like to know whether i can use the combo box to do a lookup - "Expanded Type - popup window and "bring back" the values selected by the enduser?
Regards,
PETER ZHOU