Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Expression Evaluated to an Illegal Value
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00469359
Message ID:
00469396
Views:
21
>>I entered the following into the Height property of my grid class:
>>
>>=EVAL(This.Parent.Height-4)
>>
>>VFP allowed me to save the class and attempt to run the form. However I got an error saying "Expression Evaluated to an Illegal Value" when attempting to run it.
>>
>>Now when I try to edit my class I get the same error. Is there a way to remove my invalid syntax, without restoring a backup.
>>
>
>Open your class as a table. Scan the table, looking in the Properties memo field, for your error. Correct it either =EVAL('This.Parent.Height-4') or (This.Parent.Height-4) in the field - do not add extra spaces, newlines or whatever, just fix the problem
>
>Close and save.

Ed,
Thanks, that saved me from going to a backup and losing several hours work. That error came about while I was trying to implement the code for scaling my form to fit screen resolution as outlined in Advisor Jan 2001 page 47.

Everything's working perfectly except for my grids contained in a pageframe on my form. Why is that? They have a width and height property just like the textboxes and labels contained on my form. I have the code "ThisForm.ResizeObject(This)" in the Init of the grid class, but they just won't resize. Am I having containership issue?

p.s. Don't mean to start another thread here. If it's a quickie answer, thanks. Otherwise I'll start another thread.
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform