Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Character Binary field
Message
 
 
À
08/12/2004 09:43:32
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00967663
Message ID:
00967753
Vues:
7
Joel,

You're confusing field type with filed content. The field is character type by data may be binary, at least partially. The following code should give better idea what is stored in the field
CLEAR
FOR i=1 TO LEN(myfield)
	lcChar = SUBSTR(myfield,i,1)
	? i, lcChar, ASC(lcChar)
ENDFOR
BTW, How do you get the data from mainframe?

>I have a Char binary field.
>
>When I browse I see something like " || -10.25 " The || seems to be a one space code of some kind.
>
>That data comes from mainframe and the real value of that field is $10.25
>
>
>So i tried x=val(substr(alltrim(field),2)) and I get 0.00
>
>If I print ? substr(alltrim(field),2) it shows 10.25
>
>It does not seem to act liker a Char field???
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform