[Valentina] Re: Vdb files

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Jan 19 10:42:55 CST 2003


on 1/19/03 3:32 AM, Keith DeLong at delong at redcort.com wrote:

>> You see any problems here ?
> 
> Well, Create is creating 4 files and yet it is only looking to
> ValentinaSetExtensions for 3 of those files, ignoring the extension I assign
> it on the first parameter.
> 
> This is easily confusing, seems illogical to have an ignored parameter, and
> makes managing files in RB a lot harder.
> 
> It seems it would be much more consistent to pass the file name to
> db.Create("dbname.") and create grab the extensions for all 4 files from the
> constands set by ValentinaSetExtensions.
> 
> ValentinaSetExtensions "xxx", "dat, "blb", "ind"
> db.Create( "dbname" )
> 
> To get files:
>  dbname.xxx  
>  dbname.dat
>  dbname.blb
>  dbname.ind
> 
> ValentinaSetExtensions "", "dat, "blb", "ind"
> db.Create( "dbname" )
> 
> To get files:
>  dbname  
>  dbname.dat
>  dbname.blb
>  dbname.ind
> 
> Wouldn't this be much more consistent use of the create command? Perhaps in
> addition to making Create actually use the first parameter constant, you
> could make the first parameter constant "" by default.
> 
> Does this make sense?

I afraid no.

You forget that THE SAME source code must work on MAC without extension, on
Windows with extension.

So 

> ValentinaSetExtensions "", "dat, "blb", "ind"
> db.Create( "dbname" )
> 
> To get files:
>  dbname  
>  dbname.dat
>  dbname.blb
>  dbname.ind

Is not good idea, because this code on Windows ALSO will create file with NO
extension, but we need it. You see?

If you will take in account all this points, I think you will see that no
other way except current.

Please try my logic of work, and confirm that it works fine for you.

Again, IF you want ext you need specify it self in call to Create().
But before you need call ValentinaSetExtensions

-- 
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