I am trying to write a personal app to keep a bank balance and
history.
The problem I'm haveing is finding a decent way to store the data on a
pocketpc under .net compact framewok useing vb.net.
I need to store type, date, description, and total for each
check/debit transaction as well as a balance and user settings.
My problem is that I am learning vb.net now and I'm not ready to move
into datbases yet so xml seems my only viable option, however even
with the full framework it requires work-arounds and hacks to
effectively use xml as an ini replacement. The reason is that xml
files are read only under .net. And the compact framework is even more
limited.
<NOTE>I have copied the rest of this message from another message I
posted on another forum.</NOTE>
I have actualy concidered other options, even thought about useing a
simple text file for each option/value.
That just seems like a realy dirty way to do it.
I have found a class file in another application example that offers
functions for read/write/edit of values in xml files but i'm not realy
great with reading other peoples code and figuring out how it works.
I'm still very new and trying to teach myself.
What bothers me is that the answer is rite there in that example app
and I can't figure it out. I have spent hours going over and over how
he uses the class to work with the xml files and just can't figure it
out. To an extent it's like a puzzle and I love the challange but it's
also easy to get frustrated with my owne ignorance.
It's a great sample app to learn several concepts includeing
networking, and cryptography under .net CF, I just can't figure it out
:)
If anyone else would like a look you can find it
here ( http://www.microsoft.com/downloads/...;displaylang=en )
As for me I may dig at it some more but for now I guess I will just
use a text file for each value and setting I need to store, I just
won't let anyone see it who may laugh at me :)
Thanks
EDIT:
Well once again I have been just a touch short sighted.
I just set down to map out a way to handle all my data in text files
and it's not going to be an option.
I need to be able to store a type, date, description, and total for
each transaction and I need to be able to access that data later for
my history table, not to mention store a balance total and all the
user settings. And thats just for the checks tab, i need to store an
equal amount of data for the deposits tab :)
The only way I can think of to do that with simple files is to use a
file for each value for each transation and increment the
filename_end# by 1 for each transaction then to access the data later
I would need to look for each value#.txt file's existance one at a
time untill file#.txt does not exist.
Even I can see the trouble with this meathod, first the number of
files created would be unreal, also the overhead of cheacking for,
opening, parseing, and closeing each file in order to populate my
history table would be sevear, especialy on a platform like a
pocketpc.
So I'm back to square one and would greatly apreciate any ideas.
I am more then happy to read for myself if anyone knows of a complete
idiots guide that would help.
Also If anyone could take a look at the class from the project sample
I posted earlier and show simply how to get, write, edit values using
it I would name my 3rd born after you, i'm sure it would be simple for
someone more vb lingual than me. :)
It has a desktop server app and a ppc client app. I am interested in
the way the client app uses the Settings.vb class.
Thanks again for allowing me to bloat this thread and for any help at
all.