FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Tscintilla save a file
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Tscintilla save a file
Posted: Wed Nov 27, 2024 12:43 PM
I saw If I made

oMemo:Save(,,,,,.t.)

save a file with this name "noname.prg"


How I can to save with a new name into a specific folder ?

I made
Code (fw): Select all Collapse
Function Salva_File(oMemo)
   local  cFile := cGetFile32( , FWString("Save as"), 0, ;
                          hb_CurDrive() + ":\" + CurDir(), .T., .T. )
       oMemo:Save(cFile,,,,,.t.)
     return nil
but make error
Code (fw): Select all Collapse
Error occurred at: 11/27/24, 13:55:19
   Error description: Error BASE/1066  Argument error: conditional
   Args:
     [   1] = C   C:\work\silvioscript\script\silvio.sls

Stack Calls
===========
   Called from: .\source\classes\scintila.prg => TSCINTILLA:SAVE( 1049 )
   Called from: test.prg => SALVA_FILE( 322 )
   Called from: test.prg => (b)SILVIOSCRIPT( 48 )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 137
Joined: Mon Oct 22, 2012 04:43 PM
Re: Tscintilla save a file
Posted: Wed Nov 27, 2024 04:08 PM
Code (fw): Select all Collapse
function Salva_File(oMemo)
   local  cFile := cGetFile32( , FWString("Save as"), 0, ;
                          hb_CurDrive() + ":\" + CurDir(), .T., .T. )
   MemoWrit(cFile, oMemo:cTitle )
 
return nil
Regards



Ing. Anton Lerchster
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: Tscintilla save a file
Posted: Thu Nov 28, 2024 11:04 AM
alerchster wrote:
Code (fw): Select all Collapse
function Salva_File(oMemo)
   local  cFile := cGetFile32( , FWString("Save as"), 0, ;
                          hb_CurDrive() + ":\" + CurDir(), .T., .T. )
   MemoWrit(cFile, oMemo:cTitle )
 
return nil
yes of course but I saw there was a method into Tscintilla I thinked to use this .....
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion