Raised This Month: $ Target: $400
 0% 

Add two KeyValue files together


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-04-2015 , 11:38   Re: Add two KeyValue files together
Reply With Quote #8

That method is much slower and uses more memory as well. I don't see the reason to do it that way.
Also, you should use an if statement when jumping to keys in case it fails, even if you tell it to create the key when it doesn't exist.

Code:
if (KvJumpToKey(myKv, "Key", true)) {     KvSetNum(myKv, "stuff", 1);     KvGoBack(myKv); }

That way you don't "Go Back" when it never moved in the first place.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode