Forums Register Login

How to define the three fields?

+Pie Number of slices to send: Send
According to my URLyBird assignment,there are 7 fields as follows.
They has its own primitive or String type.
I attempt to define the field variables.

Are their definition correct,especially 'smoking','date','owner'?
Please comment on this.
Regards,
Richard
+Pie Number of slices to send: Send
Hi Richard,
Why don't you want just define all of them as a String? It will make all things much easier.

Do I need add the variable to describe the customer id?


Customer ID is the owner. So, you have to choose either "owner" or "Customer ID".
Best,
Vlad
+Pie Number of slices to send: Send
Hi,Vlad

Why don't you want just define all of them as a String? It will make all things much easier.


I did certainly have the kind of idea.
But considering to define them,just like 'date', they has to be express 'yyyy/mm/dd' date format.
What things can I do?
Thanks in advance.
Regards,
Richard
+Pie Number of slices to send: Send
Hi Richard,

But considering to define them,just like 'date', they has to be express 'yyyy/mm/dd' date format


1. I didn't see any requirement to validate the input.
2. You don't enter date anway in GUI (only name and location must be entered to search records in db).
You have to read date anyway as pure text (String) from db. So, using Date, Currency and other types would add only headackes... IMO.
I, personally, used only String type as defined in interface (String[] read (int recNo) .
Best,
Vlad
[ November 07, 2003: Message edited by: Vlad Rabkin ]
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 725 times.
Similar Threads
Database file reader
URLyBird Data File Format
URLyBird: about the primary key of a record in Data file.
URLyBird - Maybe my database file come messed !! Helpp me
Please Comment on Data Section
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:08:33.