Feeding file save the file name?

Das Goravani goravanis at gmail.com
Sat Apr 23 21:42:20 UTC 2022


Thanks Juan, you put me on the right track with the FileOps suggestion.. 

Thanks so much,

Das

> On Apr 22, 2022, at 10:29 PM, Juan Bofill <juanbofillaba at gmail.com> wrote:
> 
> Maybe:
> 
> Calculate path as con(primer_apellido,#S1,mes,ano,'.txt')
> Do FileOps.$putfilename(path,'Save to file',,,) Returns err_code

End


> Calculate file_name as path
> Calculate file_name as path
> If sys(6)='M'|sys(6)='X'
> Calculate path as trim(path,kTrue,kTrue,'"') ## trim surrounding quote marks if they exist
> If sys(8)='MAC64' ## 64 bit mac os uses POSIX file names
> Do FileOps.$converthfspathtoposixpath(path,path)
> End If
> End If
> Calculate path as trim(path,kFalse,kTrue,sys(9))
> Do lFileOps.$createfile(path) Returns err_code
> Do lFileOps.$openfile(path) Returns lStatus
> 
>> On Apr 22, 2022, at 6:15 PM, Das Goravani <goravanis at gmail.com> wrote:
>> 
>> Is it possible to feed the prospective file name to any file saving feature in Omnis.
>> I need to save files with the file names I have in a list but allow user to select where to save it.
>> It would work if the file name was showing in the save as dialog they were presented with, so that they can edit the files name, that’s fine, but the original must surely be the one I have in a list of files to be saved.
>> 
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at https://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list