[RE][V4RB] Save as ?

Bas Streef b.streef at hccnet.nl
Tue Jul 1 22:01:31 CDT 2003


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

Thanks again,

Bas


More information about the Valentina mailing list