Create local database problem

Ruslan Zasukhin sunshine at public.kherson.ua
Mon May 21 12:35:08 CDT 2007


On 5/21/07 4:55 PM, "Bart Pietercil" <bart.pietercil at gmail.com> wrote:

Hi Bart,

> Hi List, Ruslan
> 
> I'm having trouble creating a local database on windows with V4RB.
> 
> Problem is the created database is always appended with .vdb
> extension. This is not happening on OSX.

RIGHT. Expected 

> Is there a way to prevent this from happening.

NO !!

Windows cannot live without file extensions I believe.


> What I do is:
> 
> f = getSaveFolderitem(".myextension","afilename")
> 
> This works fine, it gives me a file with the name "test.cpf"
> When I pass this folderitem to the Valentina.Create function, it
> returns a valid databasefile with the name "test.cpf.vdb"----> Not good
> 
> Can I prevent Valentina from appending its own extension, when there
> is already an extension ?

Exists such method
    
    Valentina.Extentions()

Which MAY BE will allow what you want.

But I will recommend do reverse:
    if you develop cross-platform project,
    then better that ALWAYS was mydb.vdb on both platforms



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