Page 1 of 1

PostPosted: Mon Sep 18, 2006 5:23 pm
by ilvmegs
I've set up my application to store the registration code in a db but I'd rather have it stored as an application preference. Say the creator ID for the App is ADDF, and the reg code is 1234, can I store and retrieve this information from an App Preference or is the db the better option?


PostPosted: Mon Sep 18, 2006 7:12 pm
by ilvmegs
Here's what I'm doing:

code = 2478

array[0] = code;

AppPrefBytes(16,"SCkg",1,0,1, array);

AppPrefBytes(-1,"SCkg",1,0,1, array2);

alert("Pref Return: " + array2);

My alert returns 24583 to me. Why is it changing from 2478 to 24583?