Does the '_Screen.Visible = .F.' effect LPARAMETERS?
Because I now receive the error "variable 'xrange2' is not found" and I did not receive the error before I began using the 'Screen.Visible' command.
Sequences of events:
1. Startup program which has the '_Screen.Visible = .F.'. This program calls the login from.
2. The login form calls the Main Menu which is where the date range parameters are entered. Parameters XRANGE1 and XRANGE2.
3. Main menu calls the update form. This where the parameters are being passed to. XRANGE1 and XRANGE2 are used to filter the grid.
This update form contains 3 text fields (no controls), a combobox and a grid.
What's odd is when the user goes into the form everything is fine. If the user does anything with the grid first and then adds a record no errors occur.
If the user goes into the form and adds a record first the error "variable 'XRANGE2' is not found" occurs.
Below is my code for this screen.
UPDATE SCREEN ----------------------------------------------** INIT CODE
LPARAMETERS xrange1, xrange2, xckbgn
SET PATH TO C:\book, C:\book\data
SET DELETED ON
SET TALK OFF
Thisform.MinButton = .F. && Removes the Min Button
Thisform.MaxButton = .F. && Removes the Max Button
Thisform.Closable = .F. && Deactivates the little X
SET CENTURY ON
select chckbal
scan for chckbal.castrt = thisform.text1.Value AND chckbal.castrt = thisform.text2.Value
exit
ENDSCAN
xckbgn = cabbal
SELECT book
SET ORDER TO WIZARD_1
SET FILTER TO book.bbdate >= xrange1 AND book.bbdate <= xrange2
GO TOP
THISFORM.GRID1.Refresh()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.