Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String Size
Message
De
03/06/1997 15:58:18
 
 
À
03/06/1997 11:00:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Titre:
Divers
Thread ID:
00034254
Message ID:
00034836
Vues:
43
>>>>I need to return the size of a character string in bytes. Is there any function that can help me accomplish this task. I've tried _STRLEN() API but i can't seem to get the correct syntax.
>>>>
>>>>Any help is greatly appreciated!
>>>>Thank in advance
>>>
>>>Just check field length: for characted field size=length, e.g. if length=12, size=12 bytes.
>>
>>
>>Does this mean that any caracter equals 1 byte. The caracters that i read come from a file. That I read line by line. If I add up all the lines I don't get the same size as the FSEEK(pnHandle,0,2) returns.
>
> Remember that file can contain 'invisible' CHR(10)+chr(13)- linefeed and carriage return.

Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform