Search found 41 matches: inifile

Searched query: inifile

by Maggiro
Fri Oct 21, 2022 2:47 am
Forum: FiveWin for Harbour/xHarbour
Topic: save to inifile
Replies: 7
Views: 1001

Re: save to inifile

Good Evening:
Test if this helps Silvio
** Probando Extraer variables desde INI** Suponiendo que las variables se alimentan desde una DBF con datos INI** en cuyo caso x0=nombre del archivo ini tambien deberia estar guardado en la dbf** no voy a usar x0 sino nMini para el nombre del archivo ini ...
by Detlef
Mon Oct 10, 2022 6:58 pm
Forum: FiveWin for Harbour/xHarbour
Topic: save to inifile
Replies: 7
Views: 1001

Re: save to inifile

Silvio,

unfortunately the ';' character in .ini files acts as a comment sign.
Like '*' or // or /* */ in our normal source code.
So your latest method is the correct solution-

Regards, Detlef
by Silvio.Falconi
Mon Oct 10, 2022 11:07 am
Forum: FiveWin for Harbour/xHarbour
Topic: save to inifile
Replies: 7
Views: 1001

Re: save to inifile

Now I'm trying to make

cString_TH:= GetIni( cInifile, cSection,"TH", "" )

IF ! empty(cString_TH)
cToken := StrToken(cString_TH,1,";")
acSizes[1] := StrToken(cToken,1,"|")
acEstilo[1] := StrToken(cToken,2,"|")
acSpaces[1] := StrToken(cToken,3,"|")
acBorder[1] := StrToken(cToken,4,"|")
acBack[1 ...
by Silvio.Falconi
Mon Oct 10, 2022 9:15 am
Forum: FiveWin for Harbour/xHarbour
Topic: save to inifile
Replies: 7
Views: 1001

Re: save to inifile

... IT")      SaveINi()      LoadIni()RETURN nil// save on ini file Function SaveIni()local cIniFile  :=  cFilePath( GetModuleFileName( GetInstance() ) ) + MEM_FILElocal cSectionlocal cHeader,cDatalocal nFontSize ...
by Silvio.Falconi
Mon Oct 10, 2022 9:11 am
Forum: FiveWin for Harbour/xHarbour
Topic: save to inifile
Replies: 7
Views: 1001

Re: save to inifile

Otto wrote:Silvio, have you tried:
WritePProString( "section", "TH", "12|normale|5|#8DB3E2|#548DD4|#FFFFFF",".\demo.ini" )

Best regards,
Otto


Yes of course, all on a string but I have all on variables and my question is also how load each single data
by karinha
Sat Oct 08, 2022 8:00 pm
Forum: FiveWin for Harbour/xHarbour
Topic: save to inifile
Replies: 7
Views: 1001

Re: save to inifile

// C:\FWH..\SAMPLES\GRABAINI.PRG - 08/10/2022 - kapiabafwh@gmail.com#Include "FiveWin.ch"STATIC oDlg, cTitleFUNCTION GRABAR_INI_SILVIO()   LOCAL nCor, oIni, oFont, oIco, oBrush, oBtnClr, oBtnEnd   INI oIni FILE ".\Fondo.ini"      GET nCor SECTION "MAIN ...
by Otto
Sat Oct 08, 2022 12:49 pm
Forum: FiveWin for Harbour/xHarbour
Topic: save to inifile
Replies: 7
Views: 1001

Re: save to inifile

Silvio, have you tried:
WritePProString( "section", "TH", "12|normale|5|#8DB3E2|#548DD4|#FFFFFF",".\demo.ini" )

Best regards,
Otto
by Silvio.Falconi
Sat Oct 08, 2022 10:45 am
Forum: FiveWin for Harbour/xHarbour
Topic: save to inifile
Replies: 7
Views: 1001

save to inifile

I must save on inifile as this

[section]
TH=12|normale|5|#8DB3E2|#548DD4|#FFFFFF

How I can make ?
by Silvio.Falconi
Sat Oct 09, 2021 11:52 am
Forum: FiveWin for Harbour/xHarbour
Topic: Mem Files
Replies: 11
Views: 1218

Re: Mem Files

... then MemFedit use a memoedit to edit this txt but I not understood how converte it
then it save a new file with SAVE TO &savefile. ALL EXCEPT savefile


Perhaps to Edit all variables we can save all variables and values on array and then can use Xbrowse
then wecan save all or converte into inifile
by Silvio.Falconi
Thu Apr 15, 2021 10:44 am
Forum: FiveWin for Harbour/xHarbour
Topic: Get ...picture ...error strange--- resolved!!!
Replies: 3
Views: 570

Re: Get ...picture ...error strange

ok,
I found the error
on inifile
ClOrder=0

opps...
by Silvio.Falconi
Fri May 31, 2019 7:17 am
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbonbar & XbrGetDate
Replies: 0
Views: 382

Ribbonbar & XbrGetDate

... 2019/05/15 }
Local dDatalimite2 :={^ 2019/05/30 }

But I not Know how converte "15/05/2019" into {^ 2019/05/15 }

I have the date from Inifile select by user

#include "fivewin.ch"#include "ribbon.ch"STATIC oWndSTATIC oDlgRB[3]REQUEST HB_Lang_ITREQUEST HB_CODEPAGE_ITWINfunction ...
by Silvio.Falconi
Sat Nov 10, 2018 10:56 pm
Forum: FiveWin for Harbour/xHarbour
Topic: EXE passwords are visible in plain
Replies: 27
Views: 6206

Re: EXE passwords are visible in plain

... on file ascii ( or file INI)

I not understood where you found "Antonio Linares from fivetechsoft!" if the text is cripted with aes and insert on inifile


https://i.postimg.cc/5Nh3B2xy/test-aes.jpg

then each string cifrated is insert on inifile

the tlicense class have 9 line ...
by Silvio.Falconi
Sat Nov 21, 2015 8:55 am
Forum: FiveWin for Harbour/xHarbour
Topic: Hide columns
Replies: 14
Views: 7266

Re: Hide columns

... the state at init


please try this
you can see if I save a state sample 1,3,6 ( set these columns and then close the exe) then it save right on inifile ( see the customer.ini)

when you re open the exe it show the column 1 3 and not the state saved before


#include"fivewin.ch"REQUEST DBFCDX ...
by Silvio.Falconi
Tue Nov 17, 2015 8:09 am
Forum: FiveWin for Harbour/xHarbour
Topic: Hide columns
Replies: 14
Views: 7266

Re: Hide columns

... sample run ok here but I wish explain you.

when I open mt customer application table I have default column sample {2,4,5,6}
I save the state on inifile when the final user close the table and restore the state when the final user open the table

What I Wish:

1. if the final user select the other ...
by Silvio.Falconi
Mon Oct 19, 2015 8:58 am
Forum: FiveWin for Harbour/xHarbour
Topic: problem with dbsetfilter
Replies: 9
Views: 1635

Re: problem with dbsetfilter

... AND. nRecno != 0
AS->(DbGoTo(nRecno)) <------------------------------------the error
else
AS->(DbGoTop())
endif


on nRecNo I save on ( inifile) the record and it then make the error because if the user open today on 20.10.2015 and the user have close on 16.10.2015 the procedure show the ...