Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constants using hex
Message
 
 
À
19/03/2008 16:15:42
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01303578
Message ID:
01303687
Vues:
17
Try to cast it to integer
oChart.Region(1).Caption.SetProperties("Up-to-date Rating", BITAND(0xFFF0F8FF, 0xFFFFFFFF), , 10, .T.)
>No luck. To be honest, I didn't actually try your suggestion in the #DEFINE. Instead I tried calling the method directly passing the hex value and got the following error:
>
>OLE error code 0x8002000a: Out of present range.
>
>This is what I tried:
>
>oChart.Region(1).Caption.SetProperties("Up-to-date Rating", 0xFFF0F8FF, , 10, .T.)
>
>Any other ideas or reasons this would not work?
>
>PS. If I substitute 0xFFF0F8FF with something like RGB(255,0,0) the method executes without any errors. So it looks like the hex value is not being interpreted correctly by the method.
>
>>Hi Mike,
>>
>>Try this:
>>
>>* Color constants
>>#DEFINE ColorAliceBlue    0xFFF0F8FF
>>#DEFINE ColorAntiqueWhite 0xFFFAEBD7
>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform