>>>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?
>
As a SWAG, yes; I'd hope Marcia Akins could come up with a quick fix for this, or look at some of the autosizing code in the Files section to see if you can get any hints.