Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing char to hex
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
01054856
Message ID:
01054874
Vues:
19
>>Is there any way I can do a comparison from char to hex?
>>
>>
>>retval=FREAD(f,3)
>>if retval=0x4A6F65
>>  do something
>>endif
>>
>
>Assuming that your return value is a string (such as "0x4A6F65") and that the retval equals this
IF EVALUATE(retval) = 4878181 THEN
>  * Do something
>ENDIF
retval equals string "Joe" which is hex 0x4A6F65. So...
if "Joe"=0x4A6F65
  do something
endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform