Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Expression Evaluated to an Illegal Value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00469359
Message ID:
00469397
Vues:
13
>>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform