[RE][V4RB] Save as ?

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Jul 2 00:42:57 CDT 2003


on 7/1/03 23:01, Bas Streef at b.streef at hccnet.nl wrote:

>>> I'm trying to 'Save asŠ'  an open database in REALbasic 5.2 (Mac OS
>>> 10.2.6). I presume I have to use GetSaveFolderItem. But how am I to
>>> proceed from there? Some pointers would be appreciated.
>>> 
>> 
>> you may want to use
>> 
>> f.CopyFileTo(newfile)
>> 
>> where f is your original db file reference and newfile the result of
>> GetSaveFolderItem
>> 
>> 
>> Cool Runnings,
>> Erne.
>> 
> Thanks, Erne
> I totally overlooked f.CopyFileTo.
> The only 'problem' with this solution is that you have to keep a
> reference alive to the original file.
> I tried db.Create(newFile), but that obviously only creates an empty
> database.
> The question then is, how to fill this new file with the current data.
> 
> Ruslan wrote:
> 
>> I am not sure what you ask.
>> After dialog you get FolderItem.
>> 
>> Now you can db.Create() and send that folderItem to function.
> 
> I need to write those data to the new file, but which function should I
> use and which parameters?
> Or am I totally dense here?

I do not understand.

You want create new database file and copy date from old db to it ?
Why not simply duplicate old db files?

Please explain your task more detailed.


-- 
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://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list