Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Expression is not valid outside of WITH/ENDWITH
Message
 
To
06/06/2001 14:58:49
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00515968
Message ID:
00515970
Views:
40
This message has been marked as the solution to the initial question of the thread.
>I get this error message (stated as in title) and I am not even using any WITH/ENDWITH. I could scroll the listbox until I get one of the two line (SFS or VISA) then all of sudden, the error message pops up. I have simpliar code for another form and works flawless. In the debugger, the arrow shows the 6th line of the white text below. Can you review the following and see if something is not correct? I can not even put SET STEP ON or WAIT WINDOW in that white text below to try follow thru, also, this isn't working correctly anyway (not disabling).
>
>Method: checkauthforauthtype (Visibility: Public)
>List1.InteractiveChange: ThisForm.CheckAuthForAuthType(m.at)
>
>Form1.ThisForm.CheckAuthForAuthType
>
>LPARAMETERS lcAuthType
>SELECT auth
>SET ORDER TO authtype
>SEEK lcAuthType
>IF FOUND()
>	ThisForm.Commandgroup1.Command2.Enabled = .F
>	ThisForm.CommandGroup1.Command4.Enabled = .F.
>	atct = .T.
>ELSE
>	ThisForm.Commandgroup1.Command2.Enabled = .T.
>	ThisForm.CommandGroup1.Command4.Enabled = .T.
>	atct = .F.
>ENDIF
>SET ORDER TO main
>SELECT authtype
The problem is with this line
>	ThisForm.Commandgroup1.Command2.Enabled = .F
You wrote .F instead of .F.
Brien R. Givens

Brampwood Systems
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform