Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Error on .AddProperty
Message
From
28/02/2009 13:00:51
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/02/2009 03:33:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01384470
Message ID:
01384764
Views:
54
>I am using mwresize to resize controls on my forms. mwresize uses .AddProperty() to store the original size/location of controls, however I am getting an strange error;
>
>On some controls the line
>
>.AddProperty("_nOriginalWidth",.Width)
>
>thows as data type mismatch error.

May be unrelated, but once upon a time (read: fox 2x) there was a bug where you could have a field (in a table or a cursor) beginning with an underscore if you did a create table (...), select ... into table, if you used copy structure (and "...extended") but not if you created it from an afields() array. I don't know when this bug was gone, because I just gave up - anything beginning with an underscore belongs to Fox proper and can be overridden in some future version (a friend had a variable into which he would build long strings... in FP1.01, and its name was _text - had to replace it everywhere when 2.0 came).

Now with properties there may be an additional quirk, with _assign and _access methods, you'd have something like

procedure _myUnderscoredProperty_access

Which should be fine syntactically etc, but... just give it a try with a name without an underscore.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform