Re: Euphoria vs. C and OOP
George Walters wrote:
> This is exactly the way we use EU except that all the table column names are
> unique. Here's a sample table.
>
>
> --------------------------------------------------------------------------------
> -- include arCustomer.e created 03/15/02
> -- dbNames= {"ar", "arCustomer"}
> -- arcu
> -- Key Length: 8
> --
> -- AR Customer
> --
> global constant -- dec(x,y) defined as tot digits,decimal places
> arcuLength = 039,
> arcuCoNbr = 001, --K1 dec(2,0) Company Number
> arcuCustNbr = 002, --K2 dec(6,0) Customer Number
> arcuCustNm = 003, -- char(40) Customer Name
It would be better to do something like this:
addDatabase("ar")
addDatabase("arCustomer")
addField("arCustomer","arcuAddr1",25) -- why have field length specs?!
...
addData("arCustomer","arcuAddr1","2900 Independence Pkwy")
...
Not only for reason CChris already stated, but also for ease of development
and management of that data in the future.
An even better better way would be to use a database like EDB.
|
Not Categorized, Please Help
|
|