Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to assign a value to a varbinary
Message
From
30/11/2005 07:37:58
 
 
To
30/11/2005 07:03:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01073143
Message ID:
01073151
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform