Utilize pointer for Preferences data

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Utilize pointer for Preferences data

Post by RichAlgeni »

It would be of a great benefit if we could utilize the Preference functions on a string in memory, in addition to reading preference data from a file. Per @User_Russian, could the following two commands be added?

Code: Select all

CatchPreference(*addressPointer, Length)
SavePreferenceMem(*addressPointer, Length)
Sometimes you have to work with the data in memory (for example, program settings of its resources).