Hex in VFP:

constant number, just prefix with 0x :
   0x5F (same as just 95)

format number to string:
  TRANSFORM(95,"@0")   ->  0x0000005F = 8digits after the 0x

string to number:
VAL("0x5F") or EVALUATE("0x5F")   -> 95

Fred


On Thu, Aug 16, 2012 at 9:54 AM, Kurt Wendt <[email protected]> wrote:

> Hey folks,
>
>
>
> I'm a little stumped on something. Here at my day job, I have to deal with
> EDI stuff - and I do it all the time. But, a new upgrade for this one
> Trading Partner is requiring a strange code to be sent back - as displayed
> in the line below. Strangely enough, I was surprised to see the character
> appear below (after the "to" and before the "or") - since, when I tried to
> insert this Text into VFP - just to print on-screen, the character shown
> below does not appear - but, instead a blank space appears in VFP. So - of
> course, I am having difficulty figuring how to send back this character.
> Here is the line of instructions on this particular EDI upgrade:
>
>
>
> o        ISA11 needs to be changed to ¬ or Hex 5F
>
>
>
> As such, I figured I would try to implement via the Hexcode. But, how
> exactly do I use HexCodes in VFP. I know the ASC() and CHR() commands, but,
> AFAIK - that's for purely Ascii code and NOT for Hex code.
>
>
>
> Any advice would be greatly appreciated!
>
> Thanks,
>
>  -K-
>
>
>
> Senior Developer
>
> Waitex Information System, Inc.
>
> P Save a tree. Don't print this e-mail unless it's really necessary.
>
>
>
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAJCBksqAVAre009TY=e84n1psa2pqfwahxaqoq2bnax8enc...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to