Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INI File Command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00777269
Message ID:
00777325
Views:
10
Try this:
= AddSection('MyIni.ini', 'COMMON')

PROCEDURE AddSection(cIniFile, cSection)
* Input: INI file name and section name
	DECLARE WritePrivateProfileSection IN kernel32;
		STRING lpAppName, STRING lpString, STRING lpFileName
	= WritePrivateProfileSection(cSection, '', cIniFile)
If called with empty lpString the WritePrivateProfileSection usually deletes the existing keys and values for the named section.

More INI functions and code samples (WinAPI):
http://www.news2news.com/vfp/?group=62

GetPrivateProfileInt
GetPrivateProfileSection
GetPrivateProfileSectionNames
GetPrivateProfileString
GetPrivateProfileStruct
WritePrivateProfileSection
WritePrivateProfileString
WritePrivateProfileStruct
Previous
Reply
Map
View

Click here to load this message in the networking platform