Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add a CHR(13) with WritePrivateProfilestring?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
00955712
Message ID:
00955996
Vues:
16
>After writing a bunch of stuff to an ini file I'd like to make things look neat by adding a CRLF.
>
>
>DECLARE INTEGER WritePrivateProfileString IN Win32API AS WritePrivStr ;
>	STRING cSection, STRING cKey, STRING cValue, STRING cIniFile
>
>WritePrivStr(lcSection,lcKey,lcString,lcIniFile)
>
>
>But when I pass SPACE(1) as lcString i get an = sign written to the file.
>
>So, how is this done?

Peter,

If you don't supply any value for the key, nothing is written. You shouldn't worry about or try to cause an end of line character.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform