Why the Difference?
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Sep 28 22:57:19 CDT 2005
On 9/28/05 10:21 PM, "Chuck Pelto" <cbpelto at pcisys.net> wrote:
Hi Chuck,
> Greetings,
>
> Looking over the tutorial and the example BinaryLink.rb, I notice
> that there is a significant difference between the calls for creating
> the structure of a database in the tutorial and in the BinaryLink.rb
> example.
>
> The tutorial has calls like:
>
> tblPerson = mDatabase.CreateTable( ÒPersonÓ )
> call tblPerson.CreateVarCharField( ÒNameÓ, 1022, EVFlag.fIndexed )
> call tblPerson.CreateVarCharField( ÒLNameÓ, 1022, EVFlag.fIndexed )
> call tblPerson.CreateDateField( ÒBornDateÓ, EVFlag.fIndexed )
This is API_way.
Exists folder Examples/API_Way with many examples.
> Meanwhile, the BinaryLink.rb has calls like:
>
> name = "tblAdmin"
>
> comments = new VText("comments", 1024 )
> keywords = new VVarChar("keywords", 504 )
> createDT = new VDateTime("createDT")
> modifyDT = new VDateTime("modifyDT")
I think you look on example located in folder Examples/Classes_way
This is another way.
> The former is in accordance with the new reference manual. The latter
> looks like it's out of the old reference manual.
>
> Why is this the case?
The classes way, is just Object-Oriented wrapper to API-way.
This is quite legal and modern way for 2.0! :-)
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list