473,846 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A good way to store data/values? (vb.net, compact framework)

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.
Nov 21 '05 #1
0 2223

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2529
by: Asad Khan | last post by:
Hi, I have Visual Studio 2002 Enterprise Architecture Edition. I was wondering if anyone has any information on how I can develop applications for .Net Compact Framework using this IDE. I've heard Visual Studio 2003 ships with the functionality for .Net Compact Framework development. But right now I have Visual Studio 2002. Is there anything I can do? (Other than the obvious upgrade to 2003). I've heard some beta version of .Net Compact...
2
3587
by: paul | last post by:
I have developed an application for pocket pc that requires multiple forms to be open at any one time. The user is able to flick from one to the other, making changes to each as and when necessary The application uses a stacking system to hold instances of the forms, and an array to hold "previous navigation" information (information on this method was found on "http://smartdevices.microsoftdev.com/Learn/Articles/505.aspx") The problem I have...
4
2031
by: André Giesing | last post by:
Hello NG! I've got a short question: Is there a difference of the internal representation of a Hashtable between the Compact Framework and the normal Framework? I've got the suspicion, because when I Serialize the same Object (with a Hashtable in it) on a Computer with the normal .NET Framework and on a mobile Device (which uses the Compact Framework) the byteStream is different!
1
1303
by: David | last post by:
Hello. What limited possibilities has C# Compact Framework and where can I get good documentation about C# Compact Framework programming?
5
3323
by: Kay-Christian Wessel | last post by:
I'm trying to use a certificate on my pocket PC device to access a WebService using VS2003/VS2005. I've been able to read the certificate of my Certificate Store, but I don't know how to use it since the WebService does not have a AddCertificate method. Seems to be the same in both the Compact Framework 1.0 and 2.0 Any ideas how to do this ?
2
1668
by: George | last post by:
Hello everyone, I have used Visual Studio 2005 to create a C# .Net Compact Framework 1.0 application on Pocket Pc 2003 device. But when building the application, there are some errors dealing with System.Data can not find. I have solved this issue by manually add System.Data from References of project, and it is working now. I am wondering whether we should manually add reference to System.Data in an application based on .Net Compact...
2
1582
by: Greg Wood | last post by:
As a new member, I hope I am posting correctly. Bear with me if not ! I found a posting by Earle Oxner that very closely matches the situation we are in. Sadly, there were no replies to his post, so I am asking a similar question. We have developed a .Net Compact Framework 2 forms application & deployed it on a 2 PDAs, one running Windows Mobile 2003 2nd Edition and one running Windows Mobile v5. The app's purpose is to POST data to an...
2
1882
by: Larry | last post by:
Hello, I am about to write an app for Pocket PC 2003 / Windows CE / Mobile 5 (don't know which yet) from which I need to query both SQL Server Express 2005 and SQLCe. I would like to be able to use a provider factory to not have to duplicate code. ADO 2.0 has DbProviderFactory, but it is not available in the .NET Compact framework. I could write my own provider factory "the old way" using IDbConnection, etc., but I rather not...
0
1458
by: pawera | last post by:
Hi Everybody ! I`ve got a problem with developing application which is to be run on PDA (MIO A701 with WIndows Mobile 5). I`m trying to create application in Visual Basic NET using NET Compact Framework. This will be very simple database application using Access Database. Unfortunatelly I can`t use class OleDbConnection and app is not able to connect with my mdb.
0
9725
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10976
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10705
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9477
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7877
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7050
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5906
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.