Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constants using hex
Message
De
19/03/2008 16:16:28
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:
01303605
Vues:
12
Thanks for the suggestion Sergey. Please see my response to Bo.

>Replace '&H' with '0X'
>
>#DEFINE ColorAliceBlue    0xFFF0F8FF
>#DEFINE ColorAntiqueWhite 0xFFFAEBD7
>
>>I'm using the free RMChart control to show display a graph in a VFP form. This activeX control has a method that accepts a color as a parameter. There are no VFP samples provided. The PowerBasic example includes a file similar to that of a VFP include file. In it there are constants defined like:
>>
>>' Color constants
>>%ColorAliceBlue=&HFFF0F8FF
>>%ColorAntiqueWhite=&HFFFAEBD7
>>
>>I'm trying to convert this to VFP syntax and store it in a rmchart.h file. I'm trying the following:
>>
>>* Color constants
>>#DEFINE ColorAliceBlue ???
>>#DEFINE ColorAntiqueWhite ???
>>
>>Now what should I put into the ??? part?
>>
>>I'd like to call the control's method as follows:
>>
>>object.SetProperties("Up-to-date Rating", ColorAliceBlue, , 10, .T.)
>>
>>Any help is appreciated. TIA
>>
>>Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform