EnumeratePreferencesGroup()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

EnumeratePreferencesGroup()

Post by Trond »

Suggestion/wish: A command to get all the groups (one at at a time) of an opened preferences file.
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

Post by bingo »

"emulator" :lol:

Code: Select all

secbuffer.s = Space(1000)
seclen = GetPrivateProfileSectionNames_(@secbuffer,1000,"c:\windows\inf\agp.inf");syntax inf = syntax ini

tmp.s
i.l
While seclen > i
tmp = PeekS(@secbuffer+i)
Debug tmp
i=i+Len(tmp)+1
Wend
["1:0>1"]
Post Reply