Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem in grid
Message
From
28/01/2007 14:21:27
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
 
To
28/01/2007 14:15:35
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01189922
Message ID:
01189934
Views:
7
>>>>>>>
>>>>>>>VFP7 Column object has DynamicAlignment property. can this run in anyway?
>>>>>>
>>>>>>Try them. I think both must work, but with DynamicAlignment it is much easier.
>>>>>
>>>>>i try DynamicAlignment but not work ? why
>>>>>
>>>>>
>>>>>Thisform.Grid1.Column1.DynamicAlignment = [iif(MyTable.nField = 1, "1", "0")]
>>>>>
>>>>
>>>>Alignment is not a string it is numeric:
>>>>
>>>>[iif(MyTable.nField = 1, 1, 0)] && No quotes around the 1 and 0
>>>>
>>>
>>>but it is in vfp help
>>>
>>>Column.DynamicAlignment[ = cAlign]
>>>Property Values
>>>cAlign
>>>Specifies a character string expression that is re-evaluated at run time and results in one of the following values:
>>
>>Yes, the property must be sting. That string is evaluated to get the right value of the Alignment.
>>
>>
>>[iif(MyTable.nField = 1, 1, 0)]
>>
>>This IS string, see square brackets around IIF(). That makes it string, BUT the the value which is returned after evaluation must be numeric. That is something like this:
>>
>>lcString = [iif(MyTable.nField = 1, 1, 0)]
>>thisform.Column.Alignment = EVALUATE(lcString)
>>
>
>NOT WORK ?

NOW WORK, but when i click on row ( with right alignment ), its content shift to left again.
Previous
Reply
Map
View

Click here to load this message in the networking platform