Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to assign a value to a varbinary
Message
De
30/11/2005 08:17:31
 
 
À
30/11/2005 08:01:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01073143
Message ID:
01073171
Vues:
16
>>>Hello everybody,
>>>
>>>I know how to assign a constant to a varbinary field:
>>>
>>>
>>>REPLACE myVbField WITH 2h
>>>
>>>
>>>But the following situation won't work:
>>>
>>>
>>>lnCount = Somefunction()
>>>REPLACE myVbField WITH lnCount && Does not work
>>>
>>>
>>>Of course i can program a kludge with macro expansion and a NumToHex-function, but is there a 'normal' way? I must have missed something somewhere, and Help doesn't give me answers.
>>>
>>>Hope some of you know the answer.
>>>
>>>Lennert
>>
>>I don't use varbinary fields myself, but AFAIK they should be treated as character fields.
>>REPLACE myVbField WITH transform(lnCount)
>
>Thank you, Tore; you helped me to the right answer:
>
>
>REPLACE myVbField WITH BINTOC(lnCount,"S")
>
>
>Lennert

You're welcome!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform