Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Error on .AddProperty
Message
 
 
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:
01384480
Views:
64
Well, I don't know what's causing it, but you can always workaround.
if pemstatus(this,'Width',5)
  lnWidth = .Width
else
  lnWidth = 0
endif
etc.

>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.
>
>It's not consitently the same type of control or same class, however on some controls it will occur everytime that control is accessed.
>
>For example, on one form with loads of controls, there are 4 edit boxes, all the same class. One is on a page in a pageframe, the others are in a grid on another page. The edit box on it's own and two of those in the grid play nicely, however one of the edit boxes in the grid throws this error.
>
>I can't see anything different about it.
>
>Any ideas?
>
>
>
>Gary.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform