Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writeexpression() messes up grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01335095
Message ID:
01335354
Views:
14
Hello Christof,

I can email you a screen shot. It only happens when I set a column to visible=.f.
In this case the vertical line for the (formerly) adjacent column, disappears.

I now understand how expressions for writeexpression should be constructed. Thanks for the pointers!



>Hi David,
>
>>So you can't reproduce the problem? Hmmm..
>
>Maybe I'm trying to reproduce something different than you do... The only effect with lines is that if I set all columns to visible there's one ghost line that only disappears after setting the last column back to visible. This line is also only visible at design time.
>
>> I am using writexpression(), **I think**, because from what I've read, that is the 'proper' way to assign values to properties, at design time.
>
>It depends on what kind of values you need to assign. WriteExpression is the programmatic way of clicking the "fx" button in the properties window. It allows you to specify an entire expression that is evaluated the first time a class or form is loaded. If all you want to do is to assign a static value, you can directly assign it to the reference in the class designer.
>
>The only exception for both cases are array properties. Those can only be initialized in code that you can create with the WriteMethod() method.
Previous
Reply
Map
View

Click here to load this message in the networking platform