SaveMap()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

SaveMap()

Post by Karbon »

A native function to save the content and order of a Map would be an awesome tool for persistent fast lookups and such. I know you can do it now (though I couldn't find a single post where anyone mentions saving a Map to a file), but it'd be nice of there was a single function that would do everything at once.

** Sorry, a LoadMap() would need to accompany any saving functions..

Thanks!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: SaveMap()

Post by jamirokwai »

Karbon wrote:A native function to save the content and order of a Map would be an awesome tool for persistent fast lookups and such. I know you can do it now (though I couldn't find a single post where anyone mentions saving a Map to a file), but it'd be nice of there was a single function that would do everything at once.

** Sorry, a LoadMap() would need to accompany any saving functions..

Thanks!
HI,

couldn't you just use a WriteData()-command to save the structure behind the Map? No order, but the content would be saved.
But I agree: a native function for this would open many great possibilities for dynamic and static data-mapping...
Regards,
JamiroKwai
Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: SaveMap()

Post by Joris »

+1
SaveMap, LoadMap inclusive there keys, even Map's of Structures.
I would love that too.

Thanks
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Post Reply