Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem in grid
Message
De
28/01/2007 14:15:35
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01189922
Message ID:
01189931
Vues:
9
>>>>>>
>>>>>>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 ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform