Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add a CHR(13) with WritePrivateProfilestring?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00955712
Message ID:
00955996
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform