[Valentina] Re: Vdb files

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Jan 19 00:14:33 CST 2003


on 1/18/03 10:35 PM, Keith DeLong at delong at redcort.com wrote:

>> Moreover, to make them compatible I would have to add a
>> ".vdb" extension, which would confuse my users no end (my
>> application's name doesn't begin with a "v", for starters).
> 
> This is exactly why Rulsan added ValentinaSetExtensions. Just before the
> create, setting the extensions allows you to have and extension you want for
> the data, blob, dat, and indexes. This is what I was trying to use.
> Currently, ValentinaSetExtensions "vtc", "dat, "blb", "ind" works on evey
> file except the .vtc file. This is ignored by the ValentinaSetExtensions
> command.

Keith, please do not confuse self and people.

In the Valentina kernel exists 4 string constants.
ValentinaSetExtensions() just change values of this constants. Nothing more.

Assume you set 

    ValentinaSetExtensions "vtc", "dat, "blb", "ind"

Now, if you do 
    db.Create( "dbname.vtc" )

You must get files:

    dbname.vtc   
    dbname.dat
    dbname.blb
    dbname.ind


-----
If you do 
    db.Create( "dbname" )

You must get files:

    dbname
    dbname.dat
    dbname.blb
    dbname.ind

-----
If you do 
    db.Create( "dbname.vdb" )

You must get files:

    dbname.vdb
    dbname.vdb.dat
    dbname.vdb.blb
    dbname.vdb.ind


This is where must be effect of ValentinaSetExtensions() call.
"vdb" -- now is not considered as extension, because you have told above
that extension must be "vtc". As result 'dbname.vdb' is considered as SINGLE
name.

This is a logic I want provide.
You see any problems here ?

------
Keith wrote:

>> So user enters:  "mydb"
>> 
>> You add: "mydb.dbq"
>> 
>> And send this to Valentina in Create().
>> Now Valentina will create for you file with extension.
> 
> This does not work. What I get following the create is
> 
> mydb.dbq
> mydb.dbq.dat
> mydb.dbq.ind

Question to you Keith, have you made before Create()
Call as 

    ValentinaSetExtensions "dbq", "dat, "blb", "ind"

    db.Create( "mydb.dbq" )

???? 

Check this point, if you have made this call, then only I need fix bug which
you describe. 


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list