Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Legal Structures ??

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-03-2008, 07:08 PM
Junior Member
 
Join Date: Aug 2008
Posts: 14
Default Legal Structures ??

I really like this program, I also appreciate this form. It amazes how helpful humans can really be.

To my question,

Is this legal

Dim Type(scname,sbreed,ssex,sdob)tycanine
Dim Type(sphone,sfirst,slast,inumdogs,tycanine)tyclien t(500)
tyclient(1).tycanine.scname = txtbox1.text 'get error here

to get around the error

Dim Type(sphone,sfirst,slast,inumdogs,scname,sbreed,ss ex,sdob)tyclient(500)

This is manageable solution for a client with one dog, many of my clients have 2 maybe 3 dogs. Which would look like

Dim Type(sphone,sfirst,slast,inumdogs,scname1,sbreed1, ssex1,sdob1,scname2,sbreed2.....
)tyclient(500)
is my solution my only alternative?
Thanks
Reply With Quote
  #2 (permalink)  
Old 09-03-2008, 07:44 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

A structure can only hold regular fields. Therefore your solution is currently the only alternative.
Reply With Quote
  #3 (permalink)  
Old 09-04-2008, 09:37 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I'm not completly sure what you are trying to do, sounds like an application
for a dog walker / Vet or something?

but would a sqlite DB be an option?
For each person you would add the dogs they have (incl the info)
and then you could run a query to get the total of dogs per person

You could also make another table with the appointment data which you can "link" together

Let me know if you need help with sql
Reply With Quote
  #4 (permalink)  
Old 09-05-2008, 04:53 PM
Junior Member
 
Join Date: Aug 2008
Posts: 14
Default Plans for my Program

Hi

i am writing a program that will track the varying about of information i deal with through out the day. This info must be input on the fly, i am not able to sit at a desk.

I own operate a Canine Training Facility w/ 13 Run Boarding Kennel and we breed German Shepherds & Dobermans.

my Training Programs are broken down in Class'
Obedience Class Private or Group
Agility Class Private or Group
Protection Class
Tracking Class

Boarding In Out .........

Canine Sales breed age name temperament, training .....

Clients phone name.....

Potential clients for boarding training canine sale canine

there is so much data, all this data will eventually lead to the canines that are my real clients, I can track their progress during class and competitions.

The way i build my structures (improper structures) made everything so
simple to me.

I am beginning with the boarding component.
Sorry, did not mean to be long winded. Two things i can talk about for hours are dogs and programing.
thank you
sue
Reply With Quote
  #5 (permalink)  
Old 09-05-2008, 06:33 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by adbftrainer View Post
Hi
.....
I am beginning with the boarding component.
Sorry, did not mean to be long winded. Two things i can talk about for hours are dogs and programing.
thank you
sue
:-) its nice to hear the stories people have.
back to the topic..
since you have a lot of data which can be re-used
(from potential clients to real clients)
I would use SQL* this way you would have a table for each class
and you can reuse the data...
Reply With Quote
  #6 (permalink)  
Old 09-08-2008, 03:21 PM
Junior Member
 
Join Date: Aug 2008
Posts: 14
Default Sql ???

Hi

Your suggestion sounds good. One little problem is i have never used SQL, i am not sure what it is, if you could point me in the right direction. [i will look in my books to see what i can find, (i dont want you to think i am one of those people that sit back and let everyone else do the work] I really appreciate your guidance, if you ever need help w/ a dog problem I am your girl.

thank you
sue & dogs
Reply With Quote
  #7 (permalink)  
Old 09-08-2008, 04:28 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default

Dear Sue,

have a look at the help file under "SQL"

Using it is really quite straight forward once you get the hang of it. There is an example to get you started on the page:

Basic4ppc - Windows Mobile programming and Pocket PC Development

If I were you I would start with that one and the helpfile.

all the best / Björn
Reply With Quote
  #8 (permalink)  
Old 09-08-2008, 08:17 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

there is also a lot of information on the net,
I started with MySQL and i found that SQLite is basically the same.

let me know if you need help, I'll be happy to
(just send me a PM)

-=edit=-

SQL is a collection of tables all packed into one file, in the attachment I created 4 tables
they are separate tables but they can be linked together, in my example I've used the Owner name as the common denominator in the Dog table

If you look at the Sales table you see the ID, I just used the ID from the Dog table, that way i have all the information available in the table
so the Dog name in the Sales table can be populated also (same goes for the breed & age)
for training you could give an average grade fror all classes followed.

Also you don't need to put everything in one table you can leave everything in their own tables,
The application would select and calculate what needs to be shown.

If I has to make such an application I would have it create all the enrties once I add a new dog,
So looking at the image, I would have the application fill out "Dog" table, using my entered data,
When I get to the owner I could enter the information (populating the "Owner" table) Or selecting an owner
because this person is already in there there is no need for me to enter it again.

I hope this helps.

Also, for me the quickest way to make a sqlite DB is to use "SQLite Manager" Its a FireFox extention and allows you
to create add change etc, should also help you in understanding how SQL works
it can be found here : https://addons.mozilla.org/en-US/firefox/addon/5817

When you are up to it you can use this too to create the DB the way you want it once that is complete it
you can use you app to read/edit the data.

Good luck

Last edited by Mr_Gee : 09-09-2008 at 08:26 AM.
Reply With Quote
  #9 (permalink)  
Old 09-09-2008, 04:25 PM
Junior Member
 
Join Date: Aug 2008
Posts: 14
Default Creating a Table

Thank you, your example is exactly what i needed to see. This truly makes things much easier. After your suggestion re: SQL the first thing i did was look at the help section, the second thing was to look at the download manual. Both resources were helpful.

I did understand almost everything re: tables. I am real excited to start, however i have one tiny little problem, I can not figure out how to create the table, i know how to add col, rows, etc. I thought i remembered seeing a example on creating the table but i can not find it.

I am sure i am missing something, just cant find what i am missing.
After this i wont be asking so many questions.

Thank you very very much for your assistance.
sue
Reply With Quote
  #10 (permalink)  
Old 09-09-2008, 05:54 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

creating tables using B4PPC, thats something i haven't done before
I'm using Firefox with the addon mention in my previous post.

with this tool you can create a new DB create tables etc

if you are not willing to us the tool you might be able to use Erel's SQLite viewer.

Also check google for MySQL commands,

Working with commands the create table command would be:
CREATE TABLE IF NOT EXISTS test (column-def [, column-def]* [, constraint]*)
where column-def is the colum name, also end with a )
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Natural frequency calculation of mechanical structures klaus Share Your Creations 9 09-25-2009 07:24 PM
Create an array of structures serge Questions (Windows Mobile) 1 06-21-2008 07:55 PM
How to redimension an array of structures HARRY Code Samples & Tips 3 02-20-2008 11:53 AM
How to declare array of structures of bytes HARRY Questions (Windows Mobile) 3 02-13-2008 04:28 PM
Structures & Uppercase skipper Questions (Windows Mobile) 4 02-06-2008 06:00 AM


All times are GMT. The time now is 10:22 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0