topic
stringlengths
1
63
text
stringlengths
1
577k
save a part of a dialog into a bmp
How I can save a section of a dialog into bmp file to send to printer ?
save a part of a dialog into a bmp
Silvio, my solution to copy a area from a DIALOG and save as BMP, but why You don't use a external screencapture program ? There You can cut a area as well. [img:235hynmd]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/DlgCrop1&#46;jpg[/img:235hynmd] best regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
save a part of a dialog into a bmp
[quote="Silvio.Falconi":k9bpkn2j]How I can save a section of a dialog into bmp file to send to printer ?[/quote:k9bpkn2j] hBmp := MakeBkBmpEx( oDlg:hWnd, nTop, nLeft, nBottom, nRight )
save a part of a dialog into a bmp
thanks to all
save a part of a dialog into a bmp
Mr. Rao, I think, this function belongs to other classes. Using it for this solution, it doesn't work. Just see the difference between my original and the change : [b:27zn2doe]The change using MakeBkBmpEx( oDlg:hWnd, nTop, nLeft, nBottom, nRight ) The width and height is OK, but the control-sizes are changing :[/b:27zn2doe] [img:27zn2doe]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Dlgcapture1&#46;jpg[/img:27zn2doe] [b:27zn2doe]My original with 1:1 crop :[/b:27zn2doe] [img:27zn2doe]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Dlgcapture2&#46;jpg[/img:27zn2doe] best regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
save a part of a dialog into a bmp
A capture function with adding just one line to the dialog : create multiple captures possible to change the export image-format during a session dialog-display of the capture-result [color=#0000FF:1l9fjk3v][b:1l9fjk3v]oDlg:bRClicked := {| nRow, nCol | MAKE_AREA( oDlg, cWorkFile, nTxtColor, nRow, nCol ) }[/b:1l9fjk3v][/color:1l9fjk3v] [img:1l9fjk3v]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/CImage1&#46;jpg[/img:1l9fjk3v] [img:1l9fjk3v]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/CImage2&#46;jpg[/img:1l9fjk3v] [img:1l9fjk3v]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/CImage3&#46;jpg[/img:1l9fjk3v] [size=150:1l9fjk3v]Moving to dialog 2[/size:1l9fjk3v] [img:1l9fjk3v]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/CImage4&#46;jpg[/img:1l9fjk3v] [img:1l9fjk3v]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/CImage5&#46;jpg[/img:1l9fjk3v] [size=150:1l9fjk3v]Counted export-files using the first 10 chars of the dialog-title[/size:1l9fjk3v] [img:1l9fjk3v]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/CImage6&#46;jpg[/img:1l9fjk3v]
save active work areas/indexes/filters/relations and restore
Hi friends Can anybody guide me how to save the work areas in use alongwith their indexes, filters and relations to restore them back later. I am calling a function within main() which is using a different set of databases, indexes with some filters and relations closing all the earlier databses, indexes ... etc with CLOSE ALL. Once the called function has performed its action, I want to restore the earlier databases, indexes, filters and relations used in main function, automatically. This functionality needs to work in Clipper 5.3b. Thanks in advance - Ramesh Babu P
save active work areas/indexes/filters/relations and restore
Ramesh, You may review the source code of FW function\errsysw.prg that checks all open DBFs, indexes and relations. You could use that info to save it and later restore it.
save active work areas/indexes/filters/relations and restore
Mr.Antonio Thank you very much for your guidance. I could do it exactly what I wanted by using part of code from Errsysw.prg Regards to you, - Ramesh Babu P
save an array on text
I need to save on source code a big dbf I'm thinking to save an array without use the dbf I tried to make a test but it not run ok where is the error ? [code=fw:cblvqtta]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> aData:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> cCode := <span style="color: #ff0000;">""</span><br /><br />USE CUSTOMER <span style="color: #0000ff;">ALIAS</span> CUSTOMER<br /><br />   aData:=CUSTOMER-><span style="color: #000000;">&#40;</span>FW_DbfToArray<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />       cCode:=PrintArray<span style="color: #000000;">&#40;</span> adata,  .T. <span style="color: #000000;">&#41;</span><br /><br /><br />   MemoEdit<span style="color: #000000;">&#40;</span> cCode, FWString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Code"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> PrintArray<span style="color: #000000;">&#40;</span> arr, lNoNewLine <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> i<br /><span style="color: #00C800;">local</span> ctxt:=<span style="color: #ff0000;">""</span><br /> <br />   <span style="color: #00C800;">IF</span> lNoNewLine == <span style="color: #00C800;">Nil</span> .OR. !lNoNewLine<br />    ctxt:=<span style="color: #ff0000;">"error"</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br />   ctxt+= <span style="color: #ff0000;">" {"</span><br />   <span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> arr <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">IF</span> Valtype<span style="color: #000000;">&#40;</span> arr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"A"</span><br />         PrintArray<span style="color: #000000;">&#40;</span> arr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>, .T. <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ELSE</span><br />    <br />         ctxt+= <span style="color: #ff0000;">" "</span> + Iif<span style="color: #000000;">&#40;</span> Valtype<span style="color: #000000;">&#40;</span> arr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"N"</span>, ltrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>arr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, ;<br />                      Iif<span style="color: #000000;">&#40;</span> Valtype<span style="color: #000000;">&#40;</span> arr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"D"</span>, Dtos<span style="color: #000000;">&#40;</span>arr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>,arr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />      <span style="color: #00C800;">ENDIF</span><br />   <span style="color: #00C800;">NEXT</span><br />   ctxt+= <span style="color: #ff0000;">" }"</span><br /><br /><span style="color: #00C800;">Return</span>  ctxt</div>[/code:cblvqtta]
save an array on text
Silvio, you can download an example here: <!-- l --><a class="postlink-local" href="https://forums.fivetechsupport.com/viewtopic.php?f=3&t=36878&p=220051&hilit=ERArray.jpg#p220051">viewtopic.php?f=3&t=36878&p=220051&hilit=ERArray.jpg#p220051</a><!-- l --> [img:1l0gxq3x]https&#58;//mybergland&#46;com/FWForum/ERArray&#46;jpg[/img:1l0gxq3x]
save an array on text
[quote="Otto":38zmqrqr]Silvio, you can download an example here: <!-- l --><a class="postlink-local" href="https://forums.fivetechsupport.com/viewtopic.php?f=3&t=36878&p=220051&hilit=ERArray.jpg#p220051">viewtopic.php?f=3&t=36878&p=220051&hilit=ERArray.jpg#p220051</a><!-- l --> [/quote:38zmqrqr] [size=200:38zmqrqr][b:38zmqrqr] help me I don't know how to tell you[/b:38zmqrqr][/size:38zmqrqr] [b:38zmqrqr]I'm not interested in ER and Mod_HArbour[/b:38zmqrqr] [b:38zmqrqr]No estoy interesado en ER y Mod_HArbour[/b:38zmqrqr] [b:38zmqrqr]Ich interessiere mich nicht für ER und Mod_HArbour[/b:38zmqrqr] Wenn Sie mir helfen möchten, mir über die Nachricht zu antworten, die ich geschrieben habe
save an array on text
I am sorry - I saw on your code[b:k1tqihug] Function PrintArray( arr, lNoNewLine )[/b:k1tqihug]. Therefore I thought you like to print the array.
save an array on text
Can't you use copy to SDF?
save an array on text
[quote="Otto":1o8plxr4]I am sorry - I saw on your code[b:1o8plxr4] Function PrintArray( arr, lNoNewLine )[/b:1o8plxr4]. Therefore I thought you like to print the array.[/quote:1o8plxr4] but even if I had called the function with "Printarray" because every time I put a message you have to force me to be pissed off because you want me to use ER or Mod_harbour? I understand that you are not interested in making changes on ER because it works for you as it is however don't be surprised if only you use ER no one else I know uses ER
save an array on text
Then you want to read an array which is stored in a file. Is this what you want? [code=fw:2z6g30rc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; aTest := ARead <span style="color: #000000;">&#40;</span> memoread<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test.txt"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;cBinData := ASave<span style="color: #000000;">&#40;</span> aTest <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Converts Array Data and to Binary and stores in cStr</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;memowrit<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Test2.txt"</span>, cBinData <span style="color: #000000;">&#41;</span></div>[/code:2z6g30rc]
save an array on text
[quote="Otto":2uwb0wcp]Can't you use copy to SDF?[/quote:2uwb0wcp] no I wish create a source code i wish insert this source code into my application because I not want use that dbf I could write it by hand but it would take me a lifetime I don't have to print that array I need an array to insert on My function because the final use can select an item from array and not from dbf
save an array on text
???????? I have a dbf I muse make dbf ---> txt as array to inserted on my application
save an array on text
I suggest this code: [code=fw:1969niaj]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">local</span> aData, cData<br /><br />&nbsp; &nbsp;USE CUSTOMER<br />&nbsp; &nbsp;aData := FW_DbfToArray<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CLOSE CUSTOMER<br /><br />&nbsp; &nbsp;cData := FW_ValToExp<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cData := StrTran<span style="color: #000000;">&#40;</span> cData, <span style="color: #ff0000;">"},{"</span>, <span style="color: #ff0000;">"} ;"</span> + CRLF + <span style="color: #ff0000;">", &nbsp;{"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cData := StrTran<span style="color: #000000;">&#40;</span> cData, <span style="color: #ff0000;">"{{"</span>, <span style="color: #ff0000;">"function customer_array()"</span> + CRLF + <span style="color: #ff0000;">"return ;"</span> + CRLF + <span style="color: #ff0000;">"{ &nbsp;{"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cData := <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cData, Len<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" ;"</span> + CRLF + <span style="color: #ff0000;">"}"</span> + CRLF<br /><br />&nbsp; &nbsp;FW_MEMOEDIT<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1969niaj] [url=https&#58;//imageshack&#46;com/i/pmibxv39p:1969niaj][img:1969niaj]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/ibxv39&#46;png[/img:1969niaj][/url:1969niaj]
save an array on text
Thanks Rao [img:3afi0l9k]https&#58;//i&#46;postimg&#46;cc/vTG1hCh3/thanks&#46;png[/img:3afi0l9k] I need it for have Labels measures
save an image url
when I save an Image the url is "C:\WORK\PRG\WINBEACH\images\due_lettini_regista.png" I wish save as " ..\images\due_lettini_regista.png" how I can resolve ?
save an image url
Silvio, you have all the functions inside c:\fwh\source\function\filename.prg. Did you see that Antonio announced the availability of the mod harbour servers? Best regards, Otto
save an image url
Otto, Sorry, For now i cannot use mod_harbour I must terminate my app I tried with mod_harbour with no success
save an image url
Otto , sorry I TRIED with these functions //?cFileNoPath( cPathMask ) //?cFilePath( cPathMask ) //?cFileDisc( cPathMask ) //?cFileNoExt( cPathMask ) //?cFileSubDir( cPathMask ) //? cFileUNC( cPathMask ) //? cRelativePath( cPathMask ) [b:t3528261]with no success!!!![/b:t3528261] none give me ..\images\name.png
save an image url
[b:3cttfofa]Resolved[/b:3cttfofa] [code=fw:3cttfofa]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cPathMask:=<span style="color: #ff0000;">"C:<span style="color: #000000;">\W</span>ORK<span style="color: #000000;">\P</span>RG<span style="color: #000000;">\W</span>INBEACH<span style="color: #000000;">\i</span>mages<span style="color: #000000;">\d</span>ue_lettini_regista.png"</span><br /><br />? RelativePath<span style="color: #000000;">&#40;</span> cPathMask <span style="color: #000000;">&#41;</span> + UrlImage<span style="color: #000000;">&#40;</span>cPathMask<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> UrlImage<span style="color: #000000;">&#40;</span>curlImg<span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> aTmp<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nLevel := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> x<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cCad &nbsp; :=<span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;aTmp := Hb_ATokens<span style="color: #000000;">&#40;</span> curlImg, <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> )<br />&nbsp; &nbsp;For x = Len( aTmp ) - nLevel + 1 To Len( aTmp )<br />&nbsp; &nbsp; &nbsp; &nbsp;cCad += AllTrim( aTmp[ x ] )<br />&nbsp; &nbsp; &nbsp; &nbsp;if x < Len( aTmp )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCad &nbsp;+= "</span>\<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp;endif<br />&nbsp; &nbsp;Next x<br />&nbsp; return cCad<br /><br />&nbsp;Function RelativePath( cFile )<br />&nbsp; &nbsp;local cPath, cRelPath, cTemp<br />&nbsp; &nbsp;cPath:= cFilePath(cFile)<br />&nbsp; &nbsp;cTemp:= left(cPath,len(cPath)-1)<br />&nbsp; &nbsp;cRelPath:= &nbsp;"</span>.<span style="color: #ff0000;">" + right(cPath, len(cPath) + 1 - rat("</span>\<span style="color: #ff0000;">",cTemp) )<br />return cRelPath<br /></span></div>[/code:3cttfofa]
save another field on array
I have this xbrowse made with an array [img:32v07yfo]https&#58;//i&#46;postimg&#46;cc/h4Nfm2rY/hhh&#46;jpg[/img:32v07yfo] I can edit the last column WITH OBJECT oBrowse:aCols[6] :cEditPicture := '@ €99,999.99' :nEditType := EDIT_GET END How I can to save also the filed n.12 on array I must save this calc = oBrowse:acols[5]-oBRowse:acols[6]
save another field on array
Try this sample code: [code=fw:1c7y3ju0]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp;oBrw:<span style="color: #000000;">Neto</span>:<span style="color: #000000;">Value</span> := oBrw:<span style="color: #000000;">Precio</span>:<span style="color: #000000;">Value</span> - oBrw:<span style="color: #000000;">Descuento</span>:<span style="color: #000000;">Value</span> &nbsp; <br />&nbsp;</div>[/code:1c7y3ju0] Regards.
save another field on array
[code=fw:yh2w05ka]<div class="fw" id="{CB}" style="font-family: monospace;">WITH OBJECT oBrowse:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;:<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">'@ €99,999.99'</span><br />&nbsp; &nbsp;:<span style="color: #000000;">nEditType</span> := EDIT_GET<br />&nbsp; &nbsp;:<span style="color: #000000;">bOnChange</span> := <span style="color: #000000;">&#123;</span>|| oBrowse:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Value</span> := &nbsp;oBrowse:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Value</span> - &nbsp;oBrowse:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Value</span> &nbsp;<span style="color: #000000;">&#125;</span><br />END</div>[/code:yh2w05ka]
save another field on array
io not have that column (oBrowse:aCols[12]:Value) on xbrowse I have only it on array
save backup solution how?
Dear friends, we are daily confronted with crypto lock ransom attacks. Mapped drives are effected as well. Windows SERVERBACKUP up to now was save. But who knows for how long. We do not find any WORM hardware. So we thought to install a FTP server or a winsocket solution. NAS or maybe a cheap WINDOWS PC can be the server. Does someone have experiences or suggestions. Best regards, Otto
save backup solution how?
Dear Otto, you also need a solution like Panda Adaptative Defense [url:pibbu6uf]http&#58;//www&#46;pandasecurity&#46;com/usa/intelligence-platform/solutions&#46;htm[/url:pibbu6uf] Please, look at [url:pibbu6uf]https&#58;//github&#46;com/c0p3rnic0/PROTEIN[/url:pibbu6uf] Best regards
save backup solution how?
Otto Mapped drives as you mention AND external backup devices connected to an infected machine via USB will be destroyed by the latest Cryptp virus .. Rick Lipkin
save backup solution how?
Through which ways the virus get into the system? Running infected EXEs? Opening infected email attachments? Or just visiting infected websites? EMG
save backup solution how?
Ciao Otto We use NAS. At the scheduled time NAS turns on automaticly, makes a copy and then turns itself off. Maurizio <!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->
save backup solution how?
Otto, On our installed systems, I have a program that runs 24/7 on the server with the data files. Sometime after midnight, it makes a zip file with all of the database files. The name is drawn from the date, so each day is saved independently. They can have this saved to an external drive on the computer ( mapped ). Some of my clients have swappable drives, rotating them each day for the backups. Then, in the early morning hours, my clients upload the new zip file to a cloud storage of their choice. This could be OneDrive, Dropbox, or some other resource. The routine that does the backup is hardcoded. It only interacts with our hosted server ( offsite ) where we place update files. It uses an FTP connection, but only downloads two files ... one with updates to the key ( encrypted ) and one with updated exe files ( archived ). Access to the hosted server account is by a complex user name / password combination. I'm sure a hacker could penetrate this system but it's an awful lot of work just to be a nuisance. Nothing financial is available in any of this process, and there is no gain. If they were fully successful, they would only cause a small business owner the time to reformat and reload everything. Frankly, that would take less time than it would take to hack the process. So far we have experienced no problem. Hopefully, that will continue. It is far more likely that one of my clients systems will be destroyed by lightning ( actually happened ). With this system, I can have them back up and running with a new computer in about 20 minutes. Tim
save backup solution how?
Hello at the moment we have a rate of 6% under our clients which have been effected by ransomware. All kind and brands of antivirus software was installed. This is how the dbf files look like. But all types of files are infected. We need a backup of the whole disk which brings back the system 1:1. With [i:uf3bb3ho]windows serverbackup [/i:uf3bb3ho]you are back within an hour. But who knows if SERVERBACKUP will be effects some days too. Therefore we search for alternatives. Thank you for sharing your experiences. Best regards, Otto [img:uf3bb3ho]http&#58;//www&#46;atzwanger-software&#46;com/fw/verschluesselt&#46;jpg[/img:uf3bb3ho]
save backup solution how?
Enrico The infected machines I have seen come from a clever e-mail disguised as if it were from FedEx .. something to the effect like : FedEx .."We have tried to deliver a package to you .. please click on the button below to print the tracking receipt." Click on the Button and it's 'lights out' .. Rick Lipkin
save backup solution how?
People must learn to NOT look at any email they are not 100% certain is OK. They must also NEVER go to websites they are not 100% certain about.
save backup solution how?
[quote="Rick Lipkin":3id0x8na]Enrico The infected machines I have seen come from a clever e-mail disguised as if it were from FedEx .. something to the effect like : FedEx .."We have tried to deliver a package to you .. please click on the button below to print the tracking receipt." Click on the Button and it's 'lights out' .. Rick Lipkin[/quote:3id0x8na] As I suspected... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
save backup solution how?
[quote="TimStone":20kn25z3]People must learn to NOT look at any email they are not 100% certain is OK. They must also NEVER go to websites they are not 100% certain about.[/quote:20kn25z3] I agree. EMG
save backup solution how?
Hi, we have ADS server on Linux and make compressed (7z) backup every day and sent it by email automaticly to a google account Regards Marcelo Vía
save backup solution how?
When receiving an email that "looks authentic" but you sense it is not, right click on ALL links it contains. You will usually see the primary one is not from the original sender. Immediately trash the email. If still in doubt, contact the supposed sender ( if you know them ) to inquire if they actually sent you an email.
save backup solution how?
For Office 365 users: Advanced Threat Protection Protect your email in real time against unknown and sophisticated attacks. Customers with subscriptions to select Exchange or Office 365 plans can add Advanced Threat Protection [url:10w9ts6v]https&#58;//products&#46;office&#46;com/en-us/exchange/online-email-threat-protection#howToBuy[/url:10w9ts6v] Best regards, Otto
save changes made in Xbrowse
Hello, I want to save changes made in xBrowse to a online file (MariaDB) I"ve seen parts that uses [code=fw:3k165517]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lColChangeNotify</span> := .t.<br />oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bChange</span> := <span style="color: #000000;">&#123;</span> |oBrw, uOlddata| Changedata<span style="color: #000000;">&#40;</span> oBrw, uOlddata <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />or<br />oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bChange</span> := <span style="color: #000000;">&#123;</span> |obrw| OnColChange<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> OnColChange<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// take action here</span><br />&nbsp; &nbsp;? oBrw:<span style="color: #000000;">nColSel</span> <span style="color: #B900B9;">// --> new column number</span><br />&nbsp; &nbsp;? oBrw:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//--> new column object</span><br />&nbsp; &nbsp;? oBrw:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> <span style="color: #B900B9;">//--> value of the new column</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// using the above data you take your action</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:3k165517] But maybe there is also a new method in Xbrowse that handle this better ? If any change in a cell are done, then I want to save (Fieldname, oldvalue, newvalue) So I also need the Older data of the cell, and the new data. Any samples that uses this technique ?
save changes made in Xbrowse
oCol:bOnChange := { |oCol, uOldVal| OnColChange( oCol, uOldVal ) } function OnColChange( oCol, uOldVal ) // Save // oCol:cExpr, oCol:Value, uOldVal return nil
save contacts fron Outlook application object
I found this test on vb language : it save all contacts fron outllook -------------------------------------------------------------------------------------- Private Sub ThisApplication_Startup(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Startup AccessContacts("Na") End Sub Private Sub AccessContacts(ByVal findLastName As String) Dim folderContacts As Outlook.MAPIFolder = Me.ActiveExplorer() _ .Session.GetDefaultFolder(Outlook.OlDefaultFolders _ .olFolderContacts) Dim searchFolder As Outlook.Items = folderContacts.Items Dim counter As Integer = 0 For Each foundContact As Outlook.ContactItem In searchFolder If foundContact.LastName.Contains(findLastName) Then foundContact.Display(False) counter = counter + 1 End If Next MessageBox.Show("You have " & counter & _ " contacts with last names that contain " _ & findLastName & ".") End Sub ------------------------------------------------------------------------------------------- How I can make with FWH to save on dbf all contacts ?
save data with AJAX
Hello friends, Here you see the source code how the mod harbour web APP sends the data with AJAX and how on the server a program gets the data and appends to a DBF file. We delete the local storage if we get back success from the server. If there raises a problem, the data remains stored in the local storage of the web browser. Best regard, Otto [img:33k5fbt8]https&#58;//mybergland&#46;com/localstorage_clip0&#46;jpg[/img:33k5fbt8] [img:33k5fbt8]https&#58;//mybergland&#46;com/localstorage_clip1&#46;jpg[/img:33k5fbt8] [img:33k5fbt8]https&#58;//mybergland&#46;com/localstorage_clip2&#46;jpg[/img:33k5fbt8]
save dir
when I load a bitmaps the function getdir save on cDir all directory for sample c:\work\prg\codici\bitmaps\xxx.bmp I wish only .\bitmaps\xxx.bmp because if I insert the exe to another folder or pc it not found the bitmaps any idea ?
save dir
Just save and load the bitmaps to ".\bitmaps\" James
save dir
James, I have on dialog @ 40, 10 SAY "Image:" OF oDlg SIZE 21, 8 PIXEL @ 38, 39 GET aGet[3] var cTabImage OF oDlg SIZE 205, 12 PIXEL @ 38, 263 BUTTON oBtnSel PROMPT "..." OF oDlg PIXEL SIZE 10, 9 ; ACTION ( cTabImage:=cGetFile( "*.*", "Select a file" ),; aGet[3]:refresh()) FUNCTION GetDir( oGet ) LOCAL cFile cFile := cGetDir32() IF ! empty( cFile ) oGet:cText := cFile + "\" ENDIF RETURN nil and it take c:\work\prg\codici\bitmaps\xxx.bmp
save dir
[code=fw:3udyyyfk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cFile:=<span style="color: #ff0000;">"c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\p</span>rg<span style="color: #000000;">\c</span>odici<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\x</span>xx.bm"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">&#40;</span> relativePath<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> RelativePath<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cPath, cRelPath, cTemp<br /><br />&nbsp; &nbsp;cPath:= cFilePath<span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cTemp:= <span style="color: #0000ff;">left</span><span style="color: #000000;">&#40;</span>cPath,len<span style="color: #000000;">&#40;</span>cPath<span style="color: #000000;">&#41;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cRelPath:= &nbsp;<span style="color: #ff0000;">"."</span> + <span style="color: #0000ff;">right</span><span style="color: #000000;">&#40;</span>cPath, len<span style="color: #000000;">&#40;</span>cPath<span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> - rat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<span style="color: #000000;">\"</span>,cTemp) )<br /><br />return cRelPath</span></div>[/code:3udyyyfk]
save dir
THIS GIVE ME .\BITMAPS\ AND NOT .\BITMAPS\NAMEBMP.BMP
save dir
Silvio, You can still add : relativePath( cFile ) [color=#FF0000:22t3n4l8]+ cFileNoPath( cFile )[/color:22t3n4l8] to add the Filename. Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
save dir
Silvio, I re-read you original message, and you are allowing users to select files from any directory (you are when using cGetFile()), then you need to store the directory with the filename. Using my relative directory will only work if they select files from a subdirectory of the EXE. If you move the EXE and the data file where you have stored the selected files, (which contains the relative path), files will fail to be found if the user did not select a file from a subdirectory of the original EXE. I note that the function RelativePath() really has a flaw in that it expects the selected file to be in a subdirectory of the EXE. If the user selects a file from somewhere else, it will return the wrong relative path. I think the best solution is to store all bitmaps in the .\bitmaps subdirectory of the EXE. If the user selects a bitmap from somewhere else, then you could copy it to the .\bitmaps subdirectory. Then you could just store the filename and hardcode the path ".\bitmaps" in your code. Alternately, you could not use cGetFile() function and just show a list of all bitmaps in the .\bitmap directory. This would prevent users from loading bitmaps from another location. You should probably also have an error trap in your code if the bitmap is not found when the EXE is attempting to load it. Upon this error, you could offer the user a chance to select a new bitmap or just provide a default bitmap until the user does want to select one. James
save dir
James , I use also for backup or restore this cPath := cFilePath(GetModuleFileName(GetInstance()))+SUBSTR(cPath,2) But I not Know where the user take the bitmaps , and I cannot use a BitmapsPath Fix I try to use the application on another pc but then it not run because on first pc I have a bitmaps into a folder and the 2 pc I have the bitmaps on another folder I believe it can be usell if the procedure when the user when take the bitmaps save the bitmaps on his folder sample .\bitmaps\ and save on archive the right path .\bitmaps\namebmp.bmp then the user can use th e application on another pc with no problem
save mails outlooks
Can save all mails from outlooh express with file attach on a file dbf? have you a sample please thanks
save mails outlooks
Outlook Express cannot be accessed using OLE. Regards, James
save mails outlooks
and I open outlook 2003 and save on it all the email I can save they on a dbf ?
save mails outlooks
Silvio, Outlook is working fine. Best regards, Otto drag and drop from outlook pure FIVEWIN solution <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=14111&p=72596&hilit=outlook#p72596">viewtopic.php?f=3&t=14111&p=72596&hilit=outlook#p72596</a><!-- l -->
save ribbon menu
Can I save the number of ribbon tab ? sample I wish save this number to set at init the tab of the last option from final user
save ribbon menu
[b:2p71rns7]nTab[/b:2p71rns7] = oRibbon:nOption Save and restore nTab in .ini file or options dbf DEFINE RIBBONBAR oRibbon PROMPT "Tab1", "Tab2", "Tab3" OPTION [b:2p71rns7]nTab[/b:2p71rns7]
save ribbon menu
thanks
save to doc
it's possible to save a Emf file usinf TOLEAUTO and Word.Application or trichedit class ?
save to inifile
I must save on inifile as this [section] TH=12|normale|5|#8DB3E2|#548DD4|#FFFFFF How I can make ?
save to inifile
Silvio, have you tried: WritePProString( "section", "TH", "12|normale|5|#8DB3E2|#548DD4|#FFFFFF",".\demo.ini" ) Best regards, Otto
save to inifile
[code=fw:1ex3i6oo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\GRABAINI.PRG - 08/10/2022 - <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --></span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oDlg, cTitle<br /><br /><span style="color: #00C800;">FUNCTION</span> GRABAR_INI_SILVIO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nCor, oIni, oFont, oIco, oBrush, oBtnClr, oBtnEnd<br /><br />&nbsp; &nbsp;INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>ondo.ini"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> nCor SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Cor"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> nCor<br />&nbsp; &nbsp;ENDINI<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">COLOR</span> VAL<span style="color: #000000;">&#40;</span>nCor<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp;<span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-16</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ax.ico"</span><br /><br />&nbsp; &nbsp;cTitle := <span style="color: #ff0000;">"Probando un Titulo Centrado y Fondo en un .INI"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> cTitle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BRUSH</span> oBrush TRANSPARENT <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">09.5</span>, <span style="color: #000000;">17</span> <span style="color: #0000ff;">BUTTON</span> oBtnClr <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Color"</span> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> SET_COLOR<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBtnClr:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Cambiar Color del Dialogo"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">09.5</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">BUTTON</span> oBtnEnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&End "</span> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;oBtnEnd:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Salir - Exit - Cancelar"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">&#40;</span> Centro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Centro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> Espacios<br /><br />&nbsp; &nbsp;Espacios := <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span> LEN<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">cTitle</span> := SPACE<span style="color: #000000;">&#40;</span> Espacios <span style="color: #000000;">&#41;</span> + cTitle<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> SET_COLOR<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oIni, oBrush, oBmp<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nTipo, cStyle, nCor := <span style="color: #000000;">0</span>, cFile, cLogo, nRow, nCol, lSelect<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nClrText</span>, nCor := ChooseColor<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Graba el Archivo .INI</span><br />&nbsp; &nbsp;INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>ondo.ini"</span><br /><br />&nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Cor"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> nCor<br /><br />&nbsp; &nbsp;ENDINI<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// FIN / END</span><br />&nbsp;</div>[/code:1ex3i6oo] Regards, saludos.
save to inifile
[quote="Otto":1bee0hy1]Silvio, have you tried: WritePProString( "section", "TH", "12|normale|5|#8DB3E2|#548DD4|#FFFFFF",".\demo.ini" ) Best regards, Otto[/quote:1bee0hy1] Yes of course, all on a string but I have all on variables and my question is also how load each single data
save to inifile
[quote="karinha":28rbx9d0][code=fw:28rbx9d0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\GRABAINI.PRG - 08/10/2022 - <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --></span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oDlg, cTitle<br /><br /><span style="color: #00C800;">FUNCTION</span> GRABAR_INI_SILVIO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> nCor, oIni, oFont, oIco, oBrush, oBtnClr, oBtnEnd<br /><br />   INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>ondo.ini"</span><br />      <span style="color: #0000ff;">GET</span> nCor SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Cor"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> nCor<br />   ENDINI<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">COLOR</span> VAL<span style="color: #000000;">&#40;</span>nCor<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont  <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-16</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ax.ico"</span><br /><br />   cTitle := <span style="color: #ff0000;">"Probando un Titulo Centrado y Fondo en un .INI"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> cTitle           ;<br />      <span style="color: #0000ff;">BRUSH</span> oBrush TRANSPARENT <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">FONT</span> oFont<br /><br />   oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />   @ <span style="color: #000000;">09.5</span>, <span style="color: #000000;">17</span> <span style="color: #0000ff;">BUTTON</span> oBtnClr <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Color"</span> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> SET_COLOR<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtnClr:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Cambiar Color del Dialogo"</span><br /><br />   @ <span style="color: #000000;">09.5</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">BUTTON</span> oBtnEnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&End "</span> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br />   oBtnEnd:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Salir - Exit - Cancelar"</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">&#40;</span> Centro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Centro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> Espacios<br /><br />   Espacios := <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span> LEN<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><br />   oDlg:<span style="color: #000000;">cTitle</span> := SPACE<span style="color: #000000;">&#40;</span> Espacios <span style="color: #000000;">&#41;</span> + cTitle<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> SET_COLOR<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oIni, oBrush, oBmp<br />   <span style="color: #00C800;">LOCAL</span> nTipo, cStyle, nCor := <span style="color: #000000;">0</span>, cFile, cLogo, nRow, nCol, lSelect<br /><br />   oDlg:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nClrText</span>, nCor := ChooseColor<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// Graba el Archivo .INI</span><br />   INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>ondo.ini"</span><br /><br />      SET SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Cor"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> nCor<br /><br />   ENDINI<br /><br />   oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oDlg:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// FIN / END</span><br /> </div>[/code:28rbx9d0] Regards, saludos.[/quote:28rbx9d0] karinha, my question was not that of knowing or not knowing how to save a data in an InI file but it was to save the data in an ini file in that string format and then having to reload every single data having that string mi pregunta no era saber o no saber cómo guardar datos en un archivo InI, sino guardar los datos en un archivo ini en ese formato de cadena y luego tener que volver a cargar cada dato que tenga esa cadena [b:28rbx9d0]Sample test[/b:28rbx9d0] [code=fw:28rbx9d0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> MEM_FILE <span style="color: #ff0000;">"test.ini"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;RddSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SetHandleCount<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET DATE FORMAT <span style="color: #ff0000;">"dd-mm-yyyy"</span><br />&nbsp; &nbsp;SET DELETED &nbsp; &nbsp; <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET CENTURY &nbsp; &nbsp; <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> &nbsp; &nbsp;<span style="color: #0000ff;">year</span><span style="color: #000000;">&#40;</span> date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">20</span><br />&nbsp; &nbsp;SET MULTIPLE &nbsp; &nbsp;OFF<br /><br />&nbsp; &nbsp;HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"IT"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SaveINi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; LoadIni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">// save on ini file </span><br /><span style="color: #00C800;">Function</span> SaveIni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cIniFile &nbsp;:= &nbsp;cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + MEM_FILE<br /><span style="color: #00C800;">local</span> cSection<br /><span style="color: #00C800;">local</span> cHeader,cData<br /><span style="color: #00C800;">local</span> nFontSize_TH,nFontSize_TD<br /><span style="color: #00C800;">local</span> cStyle_TH,cStyle_TD<br /><span style="color: #00C800;">local</span> nSpace_TH,nSpace_TD<br /><span style="color: #00C800;">local</span> nBordo_TH,nSfondo_TH,nTesto_TH<br /><span style="color: #00C800;">local</span> nBordo_TD,nSfondo_TD,nTesto_TD<br /><br /><br />cSection:=<span style="color: #ff0000;">"HTML"</span><br />cHeader:=<span style="color: #ff0000;">"TH"</span><br />cData:=<span style="color: #ff0000;">"TD"</span><br />nFontSize_TH:= <span style="color: #000000;">12</span><br />nFontSize_TD:= <span style="color: #000000;">12</span><br />cStyle_TH:=<span style="color: #ff0000;">"normale"</span><br />cStyle_TD:=<span style="color: #ff0000;">"normale"</span><br />nSpace_TH:= <span style="color: #000000;">5</span><br />nSpace_TD:= <span style="color: #000000;">5</span><br />nBordo_TH:=#8DB3E2<br />nSfondo_TH:=#548DD4<br />nTesto_TH:=#FFFFFF<br />nBordo_TD:=#8DB3E2<br />nSfondo_TD:=#548DD4<br />nTesto_TD:=#FFFFFF<br /><br /><br />cString_TH:= ltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nFontSize_TH<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"|"</span>+cStyle_TH+<span style="color: #ff0000;">"|"</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nSpace_TH<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"|"</span>+nBordo_TH+<span style="color: #ff0000;">"|"</span>+nSfondo_TH+<span style="color: #ff0000;">"|"</span>+nTesto_TH<br />cString_TD:= ltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nFontSize_TD<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"|"</span>+cStyle_TD+<span style="color: #ff0000;">"|"</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nSpace_TD<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"|"</span>+nBordo_TD+<span style="color: #ff0000;">"|"</span>+nSfondo_TD+<span style="color: #ff0000;">"|"</span>+nTesto_TD<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetIni<span style="color: #000000;">&#40;</span> cInifile, cSection, cHeader, cString_TH <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetIni<span style="color: #000000;">&#40;</span> cInifile, cSection, cData, cString_TD <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span> <br /><span style="color: #B900B9;">//------------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> LoadIni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cIniFile &nbsp;:= &nbsp;cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + MEM_FILE<br /><span style="color: #00C800;">local</span> cString_TH,cString_TD<br /><span style="color: #00C800;">local</span> cSection:=<span style="color: #ff0000;">"HTML"</span><br /><br /><span style="color: #00C800;">local</span> nFontSize_TH,nFontSize_TD<br /><span style="color: #00C800;">local</span> cStyle_TH,cStyle_TD<br /><span style="color: #00C800;">local</span> nSpace_TH,nSpace_TD<br /><span style="color: #00C800;">local</span> nBordo_TH,nSfondo_TH,nTesto_TH<br /><span style="color: #00C800;">local</span> nBordo_TD,nSfondo_TD,nTesto_TD<br /><br />cString_TH:= GetIni<span style="color: #000000;">&#40;</span> cInifile, cSection,<span style="color: #ff0000;">"TH"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />cString_TD:= GetIni<span style="color: #000000;">&#40;</span> cInifile, cSection,<span style="color: #ff0000;">"TD"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br /><br />nFontSize_TH:= ?<br /><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span> <br /><br />&nbsp;<span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> SetIni<span style="color: #000000;">&#40;</span> cIni, cSection, cEntry, xVar <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oIni<br /><br />&nbsp; &nbsp;INI oIni FILE cIni<br />&nbsp; &nbsp;set SECTION cSection ;<br />&nbsp; &nbsp; &nbsp; ENTRY cEntry &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">to</span> xVar &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oIni<br />&nbsp; &nbsp;ENDINI<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//---------------------------------------------------------//</span><br /><span style="color: #00C800;">function</span> GetIni<span style="color: #000000;">&#40;</span> cIni, cSection, cEntry, xDefault <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oIni<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> xVar := xDefault<br /><br /><br />&nbsp; &nbsp;INI oIni FILE cIni<br />&nbsp; &nbsp;<span style="color: #0000ff;">get</span> xVar &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; SECTION cSection ;<br />&nbsp; &nbsp; &nbsp; ENTRY cEntry &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span> xDefault ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oIni<br />&nbsp; &nbsp;ENDINI<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> xVar<br />&nbsp;</div>[/code:28rbx9d0]
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] := StrToken(cToken,5,"|") acText[1] := StrToken(cToken,6,"|") ENDIF run if the string finish with ";" I not found another solution
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
save to inifile
Good Evening: Test if this helps Silvio [code=fw:3n59ddep]<div class="fw" id="{CB}" style="font-family: monospace;"><br />** Probando Extraer variables desde INI<br />** Suponiendo que las variables se alimentan desde una DBF con datos INI<br />** en cuyo caso x0=nombre del archivo ini tambien deberia estar guardado en la dbf<br />** no voy a usar x0 sino nMini para el nombre del archivo ini<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />MEMVAR vTini,nMini,x1,x2,x3,x4,x5,x6,x7,x8,a2,a3,a4,a5,a6,a7,a8<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   x1=<span style="color: #ff0000;">'TH=12|normale|5|#8DB3E2|#548DD4|#FFFFFF'</span><br />   x2=<span style="color: #ff0000;">'TH'</span><br />   x3=<span style="color: #ff0000;">'12'</span><br />   x4=<span style="color: #ff0000;">'normale'</span><br />   x5=<span style="color: #ff0000;">'5'</span><br />   x6=<span style="color: #ff0000;">'#8DB3E2'</span><br />   x7=<span style="color: #ff0000;">'#548DD4'</span><br />   x8=<span style="color: #ff0000;">'#FFFFFF'</span><br />   a2=LEN<span style="color: #000000;">&#40;</span>x2<span style="color: #000000;">&#41;</span><br />   a3=LEN<span style="color: #000000;">&#40;</span>x3<span style="color: #000000;">&#41;</span><br />   a4=LEN<span style="color: #000000;">&#40;</span>x4<span style="color: #000000;">&#41;</span><br />   a5=LEN<span style="color: #000000;">&#40;</span>x5<span style="color: #000000;">&#41;</span><br />   a6=LEN<span style="color: #000000;">&#40;</span>x6<span style="color: #000000;">&#41;</span><br />   a7=LEN<span style="color: #000000;">&#40;</span>x7<span style="color: #000000;">&#41;</span><br />   a8=LEN<span style="color: #000000;">&#40;</span>x8<span style="color: #000000;">&#41;</span> <br />   nMini=<span style="color: #ff0000;">'test.ini'</span><br />   SaveINi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   LoadIni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />RETU <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">FUNCTION</span> SaveINi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oIni,linesay<br />   <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span>nMini<span style="color: #000000;">&#41;</span><br />      ERASE &nMini<br />   ENDI<br />   oIni := TTxtFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span>nMini<span style="color: #000000;">&#41;</span><br />   linesay=<span style="color: #ff0000;">'[section]'</span><br />   oIni:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span>linesay<span style="color: #000000;">&#41;</span><br />   linesay=x1<br />   oIni:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span>linesay<span style="color: #000000;">&#41;</span><br />   oIni:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />RETU <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">FUNCTION</span> LoadIni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> leer,nPos,nVar<br />   STOR <span style="color: #ff0000;">''</span> <span style="color: #0000ff;">TO</span> x2,x3,x4,x5,x6,x7,x8<br />   leer=ALLTRIM<span style="color: #000000;">&#40;</span>MEMOREAD<span style="color: #000000;">&#40;</span>nMini<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span>leer,<span style="color: #ff0000;">'Contenido de Test.ini'</span><span style="color: #000000;">&#41;</span><br />   nPos=<span style="color: #000000;">12</span><br />   nVar=<span style="color: #000000;">2</span><br />   <span style="color: #00C800;">DO</span> WHIL nPos<LEN<span style="color: #000000;">&#40;</span>leer<span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">IF</span> nVar=<span style="color: #000000;">2</span><br />         x2=SUBS<span style="color: #000000;">&#40;</span>leer,npos,a2<span style="color: #000000;">&#41;</span><br />         npos+=<span style="color: #000000;">&#40;</span>a2<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><br />         nvar+=<span style="color: #000000;">1</span><br />      ELSEIF nVar=<span style="color: #000000;">3</span><br />         x3=SUBS<span style="color: #000000;">&#40;</span>leer,npos,a3<span style="color: #000000;">&#41;</span><br />         npos+=<span style="color: #000000;">&#40;</span>a3<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><br />         nvar+=<span style="color: #000000;">1</span><br />      ELSEIF nVar=<span style="color: #000000;">4</span><br />         x4=SUBS<span style="color: #000000;">&#40;</span>leer,npos,a4<span style="color: #000000;">&#41;</span><br />         npos+=<span style="color: #000000;">&#40;</span>a4<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><br />         nvar+=<span style="color: #000000;">1</span><br />      ELSEIF nVar=<span style="color: #000000;">5</span><br />         x5=SUBS<span style="color: #000000;">&#40;</span>leer,npos,a5<span style="color: #000000;">&#41;</span><br />         npos+=<span style="color: #000000;">&#40;</span>a5<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><br />         nvar+=<span style="color: #000000;">1</span><br />      ELSEIF nVar=<span style="color: #000000;">6</span><br />         x6=SUBS<span style="color: #000000;">&#40;</span>leer,npos,a6<span style="color: #000000;">&#41;</span><br />         npos+=<span style="color: #000000;">&#40;</span>a6<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><br />         nvar+=<span style="color: #000000;">1</span><br />      ELSEIF nVar=<span style="color: #000000;">7</span><br />         x7=SUBS<span style="color: #000000;">&#40;</span>leer,npos,a7<span style="color: #000000;">&#41;</span><br />         npos+=<span style="color: #000000;">&#40;</span>a7<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><br />         nvar+=<span style="color: #000000;">1</span><br />      ELSEIF nVar=<span style="color: #000000;">8</span><br />         x8=SUBS<span style="color: #000000;">&#40;</span>leer,npos,a8<span style="color: #000000;">&#41;</span><br />         EXIT<br />      ENDI<br />   ENDD<br />   <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Variable 1: '</span>+x2+CRLF+;<br />           <span style="color: #ff0000;">'Variable 2: '</span>+x3+CRLF+;<br />           <span style="color: #ff0000;">'Variable 3: '</span>+x4+CRLF+;<br />           <span style="color: #ff0000;">'Variable 4: '</span>+x5+CRLF+;<br />           <span style="color: #ff0000;">'Variable 5: '</span>+x6+CRLF+;<br />           <span style="color: #ff0000;">'Variable 6: '</span>+x7+CRLF+;<br />           <span style="color: #ff0000;">'Variable 7: '</span>+x8,<span style="color: #ff0000;">'Dato INI Volcado a Variables'</span><span style="color: #000000;">&#41;</span><br />RETU <span style="color: #00C800;">nil</span><br /> </div>[/code:3n59ddep] Regards Julio César Gómez Cortéz Lima - Perú Maggiro - Jultzem Estudio
save xbrowse column to Html
[b:24dikpdp]Perhaps I resolved [/b:24dikpdp] On my applicaton I use a dbf but I convert it into two different array with Header and superheaders then I create html directly fron xbrowse [b:24dikpdp]For Vertical option [/b:24dikpdp] [img:24dikpdp]https&#58;//i&#46;postimg&#46;cc/KvKbVh2t/vert&#46;png[/img:24dikpdp] [b:24dikpdp]for Horizontal option [/b:24dikpdp] [img:24dikpdp]https&#58;//i&#46;postimg&#46;cc/rw6BPdgL/orizz&#46;png[/img:24dikpdp] I saw if I change the superheader [img:24dikpdp]https&#58;//i&#46;postimg&#46;cc/s2PGhZHf/due&#46;png[/img:24dikpdp] instead of [img:24dikpdp]https&#58;//i&#46;postimg&#46;cc/2yt1DdyG/jo&#46;png[/img:24dikpdp] I can have the superheader also on html and I not understood why
save xbrowse column to Html
To save an archive in Html format, Antonio wrote me that I had to use this function [code=fw:10ag671t]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> testHtml_Fivewin<span style="color: #000000;">&#40;</span>oDbf<span style="color: #000000;">&#41;</span><br />    HB_MEMOWRIT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"cust.html"</span>, oDbf:<span style="color: #000000;">FW_DbfToHTML</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   ShellExecute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Open"</span>, <span style="color: #ff0000;">"cust.html"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:10ag671t] [b:10ag671t]but there would be problems[/b:10ag671t] you cannot change the colors, the background, the fonts and many other things and then it may not work because the function written by the fwh team loads a particular css (bootstrap) that loads from a website some variables (css) and in case of no connection the html file is not visible in its entirety [b:10ag671t]The Xbrowse class has its own method[/b:10ag671t] (to html) but it works with the presence of a spreadsheet type software installed on the computer, so it uses all the potential of Excel to convert it into html I have tried to make a small function to create an Html page directly from the xBrowse [img:10ag671t]https&#58;//i&#46;postimg&#46;cc/W1xkvzMw/mm&#46;png[/img:10ag671t] in my function that uses a dialog or a simple Ini file, it is possible to select the colors of the background of the text and of the border of both the header and the cells, you can select the colors of the over (tr: nth-child) [img:10ag671t]https&#58;//i&#46;postimg&#46;cc/4x3pbj1j/h1&#46;png[/img:10ag671t] But as you can see there is no possibility to print superheaders (i.e. double headers) and I didn't understand how I could do it also because in the application I'm creating I often use superheaders [img:10ag671t]https&#58;//i&#46;postimg&#46;cc/TYv6b6TY/header&#46;png[/img:10ag671t] [b:10ag671t]any advice on how to print superheaders?[/b:10ag671t] doing a little manual test I inserted an extra row before the table [b:10ag671t]and this is the result[/b:10ag671t] [img:10ag671t]https&#58;//i&#46;postimg&#46;cc/DypRg3TX/ioio&#46;png[/img:10ag671t] but honestly I don't know how to do it automatically
saving image file to blob fields
Anybody...I'm working on ADS71 (CDX) and this function always returns false...db->( adsfiletoblob('file.bmp', 'field', 7) )//'field' is image type defined in arc32//7 means image or 6 means binaryI thought of changing table from CDX to ADT... and so.still returns false.I changed field type to binary... still CANT SAVE IMAGE FILE TO FIELD...[code:29c600xf] If db->&#40; dbRLock&#40; recno&#40;&#41; &#41; &#41; if db->&#40; adsfile2blob&#40;'d&#58;\images\picture&#46;bmp', 'MAP', 7&#41; &#41; msginfo&#40;'file image saved to table'&#41; else msginfo&#40;'unable to save'&#41; end end [/code:29c600xf]anybody with the workaround is truly appreciated.regards,
saving image file to blob fields
Frances,This may be useful from Harbour ADS RDD docs:<nBinaryType> Either ADS_BINARY (the default) or ADS_IMAGE. This parameter is for fields in DBF files. ADT tables cannot store binary and image data in standard character memo fields (they have specific field types for that).
saving image file to blob fields
Hello Mr. Antonio,Thank you for the reply.ADS_BINARY is 6 ands ADS_IMAGE is 7.I used it in the third parameter (like the above) ADSFile2Blob('file','field',7)I data type for 'field' is image or binary (ADT) but still not working...Maybe there's problem with the wrapper ADSFile2Blob and, ADSBlob2File.Anyone with a fix?Regards,
saving image file to blob fields
Frances,The C wrapper seems ok: ulRetVal = AdsFileToBinary( pArea->hTable, (UNSIGNED8*)szFieldName, usBinaryType, (UNSIGNED8*)szFileName );it returns a logical value. Do you get .T. or .F. ?
saving image file to blob fields
Hello again Mr. Antonio,The above coding returns .F. ( adsFile2blob() )...Can I use the adsfilebinary() directly from xhb1.1/fivewin? If so how do you pass the parameter? adsfile2blob is much easier but I get .F. return.Best regards,
saving image file to blob fields
[b:t6fzpr7o]OH MY GOD!!! I'M SO SORRY MR. ANTONIO...[/b:t6fzpr7o]The above is so true and correct! <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> my mistake was that the alias 'DB' is positioned EOF... <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> that is why the adsfile2blob is returning FALSE....IT'S WORKING PERPECTLY.....Regards to you Mr. Antonio <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
saving logical variable in plist
Hello, I am able to save strings and array;s in a plist, but is it possible to save a logical value? When I edit the plist I can select boolean, but when I save my variable to this, the type is set to string. [code=fw:3uooe9or]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; oPList:<span style="color: #000000;">SetItemByName</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'RegistrationKey'</span>, cRegKey, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oPList:<span style="color: #000000;">SetItemByName</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'ToonCriteria'</span>, lToonCriteria, .T. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3uooe9or]
saving pages of a text file as a memo field
I have an ascii file its pages delimited with page end character 012 (Form Feed) . Can I enter every page in a memo field . Sorting the DBF will be based upon a unique key found in certain line and position with certain length ? What classes and functions may be used to create such a program ? I saw that application written in FoxPro can Fivewin achieve it ? Also Can I use Harbour commands and Harbour functions under fivetech ?
say / color
@ 17.1,65 SAY oSayON var SayON OF oDlg COLOR CLR_RED,GetSysColor(15) Font oFont5 SIZE 65,25oSayON:setText("TEST")como cambiar/trocar para color BLUE ?
say / color
Prueba lo siguiente:[code:sop2vcw2] @ 17&#46;1,65 SAY oSayON var SayON OF oDlg COLOR RGB&#40; , , &#41; ,GetSysColor&#40;15&#41; Font oFont5 SIZE 65,25 oSayON&#58;setText&#40;"TEST"&#41; [/code:sop2vcw2]Donde en RGB( , , ) le envías los parametros del color que necesites.Espero te sirva.Saludos, Esteban.
say / color
oSayON:setText("TEST") oSayON:setColor(colortext, colorpane)
say / color
[quote="mcfox":48y32lso]oSayON:setText("TEST") oSayON:setColor(colortext, colorpane)[/quote:48y32lso]usei oSayON:Refresh() funcionou <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
say and get
while say and get weren't the same rows my sample DEFINE DIALOG oDlg FROM 1, 1 TO 35, 75 ; TITLE If( lAppend, "Nowy", "Modyfikacja" ) @ 1, 1 SAY "Paczka:" OF oDlg @ 1, 6 GET cPaczka OF oDlg @ 2, 1 SAY "Typ:" OF oDlg @ 2, 6 GET cTYP_DOK OF oDlg @ 3, 1 SAY "Nr dok:" OF oDlg @ 3, 6 GET cNR_DOK OF oDlg @ 4, 1 SAY "Data:" OF oDlg @ 4, 6 GET cDATA_OPER OF oDlg @ 5, 1 SAY "Nr id:" OF oDlg @ 5, 6 GET cNR_ID OF oDlg @ 6, 1 SAY "Tre&#347;&#263;:" OF oDlg @ 6, 6 GET cOPIS OF oDlg @ 7, 1 SAY "Syn:" OF oDlg @ 7, 6 GET cSYN OF oDlg @ 8, 1 SAY "Sub:" OF oDlg @ 8, 6 GET cSUB OF oDlg @ 9, 1 SAY "Nr:" OF oDlg @ 9, 6 GET cNR OF oDlg @10, 1 SAY "Nazwa:" OF oDlg @10, 6 GET cNazwa OF oDlg @11, 1 SAY "Przychód:" OF oDlg @11, 6 GET cPrzychod OF oDlg @12, 1 SAY "Rozchód:" OF oDlg @12, 6 GET cRozchod OF oDlg @13, 9 BUTTON "&Acept" OF oDlg SIZE 50, 12 ACTION ( lSave := .t. , oDlg:End() ) @13, 19 BUTTON "&Cancel" OF oDlg SIZE 50, 12 ACTION oDlg:End() ACTIVATE DIALOG oDlg CENTERED
say and get
Because screen coordinates are based on each control height, so they don't overlap, and controls have different heights. You may use decimals numbers, i.e.: @ 1, 1 SAY "Paczka:" OF oDlg @ 1.2, 6 GET cPaczka OF oDlg or use the PIXEL clause: @ 12, 10 SAY "Paczka:" OF oDlg PIXEL @ 10, 40 GET cPaczka OF oDlg PIXEL
say and get
Antonio, Could change the default height of the Tsay,Tget,tbutton,Tcombobox source code to the same default height if they create from soruce code ,not from resource redefine ? like dos/char . Thanks ! Shuming Wang
say and get
Shuming, No, we can't do it or we will break lots of FiveWin applications. You can do it yourself just modifying the values in include\constant.ch and recompiling all the PRGs.
say and get
why say and get there aren'y in the same row ? my source: cNr = max( 1, Uczen->nr ) cNazwisko = Uczen->Nazwisko cIMIE = uczen->Imie cMiejsce_z = Uczen->Miejsce_z cPesel = Uczen->Pesel DEFINE DIALOG oDlg FROM 8, 2 TO 25, 65 ; TITLE If( lAppend, "Nowy", "Modyfikacja" ) @ 1, 1 SAY "&Nazwisko:" OF oDlg @ 1, 6 GET cNazwisko OF oDlg @ 2, 1 SAY "&Imie:" OF oDlg @ 2, 6 GET cImie OF oDlg @ 3, 1 SAY "&Miejsce:" OF oDlg @ 3, 6 GET cMiejsce_z OF oDlg @ 4, 1 SAY "&Pesel:" OF oDlg @ 4, 6 GET cPesel OF oDlg @ 6, 9 BUTTON "&Zapis" OF oDlg SIZE 50, 12 ACTION ( lSave := .t. , oDlg:End() ) @ 6, 19 BUTTON "&Rezygnacja" OF oDlg SIZE 50, 12 ACTION oDlg:End() ACTIVATE DIALOG oDlg CENTERED regards kajot
say and get
Kajot, It has been designed in that way so if you increase in one the coordinates, the control does not overlaps over the previous one, as each kind of control has a different height @ n, ... GET ... @ n + 1, ... GET ... // this one will not overlap the previous one In order to properly position them, keep in mind that you can use decimals values for the coordinates: @ 1.2, ... GET ... or use the PIXEL clause, to avoid the coordinates emulation: @ 20, ... GET ... PIXEL
say and get
Because unfortunately they have different metrics (ask MS for the reason of such stupid thing). EMG
say and get on the screen
while say and get aren't in the same line on the screen ? @ 1, 1 SAY "&Dzie&#324;:" OF oDlg @ 1, 6 GET tDZIEN OF oDlg @ 2, 1 SAY "&Godziny:" OF oDlg @ 2, 6 GET tGODZINY OF oDlg SIZE 40, 10 PICTURE "999.99"
say and get on the screen
Because FWH calculates virtual coordinates on the screen based on the height of each different type of control. Please try it this way: @ 1, 1 SAY "&Dzien:" OF oDlg @ 1.2, 6 GET tDZIEN OF oDlg @ 2, 1 SAY "&Godziny:" OF oDlg @ 2.4, 6 GET tGODZINY OF oDlg SIZE 40, 10 PICTURE "999.99"
say border RESOLVED
I have these say [img:3kc5c5a1]https&#58;//i&#46;postimg&#46;cc/0yCnQQ63/say&#46;png[/img:3kc5c5a1] but with border are no good it is possible to do only one line under the say like this for example [img:3kc5c5a1]https&#58;//i&#46;postimg&#46;cc/9FbwwqpG/gg&#46;jpg[/img:3kc5c5a1] and have the possibiliy to select color for the line ?
say border RESOLVED
Silvio, look this post: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36283&hilit=cristobal">viewtopic.php?f=3&t=36283&hilit=cristobal</a><!-- l --> Regards, Otto
say border RESOLVED
[quote="Otto":3qy6m86k]Silvio, look this post: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36283&hilit=cristobal">viewtopic.php?f=3&t=36283&hilit=cristobal</a><!-- l --> Regards, Otto[/quote:3qy6m86k] otto it is for get class I mean say class
say border RESOLVED
[code=fw:xz1ov7zc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// \samples\CORSAY2.PRG - For apprentices. Swap colors.</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oSay1, oSay2, oSay3, oSay4, oSay5, oSay6<br /><span style="color: #00C800;">STATIC</span> oDlg, oFont1<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTitle<br /><br />&nbsp; &nbsp;cTitle := <span style="color: #ff0000;">"Colors - CLICK WITH THE RIGHT MOUSE BUTTON"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> &nbsp; <span style="color: #000000;">0</span>, - <span style="color: #000000;">24</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">400</span>, <span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">16777215</span> TRANSPARENT<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Inicio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oFont1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Inicio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">20</span>, &nbsp;<span style="color: #000000;">22</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">VAR</span> <span style="color: #ff0000;">"Text Color:"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">152</span>, <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">16777215</span> <span style="color: #0000ff;">FONT</span> oFont1<br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">20</span>, <span style="color: #000000;">209</span> <span style="color: #0000ff;">SAY</span> oSay2 <span style="color: #0000ff;">VAR</span> <span style="color: #ff0000;">"0"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">142</span>, &nbsp;<span style="color: #000000;">28</span> <span style="color: #0000ff;">PIXEL</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">16777215</span> <span style="color: #0000ff;">FONT</span> oFont1<br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">20</span>, <span style="color: #000000;">371</span> <span style="color: #0000ff;">SAY</span> oSay3 <span style="color: #0000ff;">VAR</span> RRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">28</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">16777215</span> <span style="color: #0000ff;">FONT</span> oFont1<br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">80</span>, &nbsp;<span style="color: #000000;">20</span> <span style="color: #0000ff;">SAY</span> oSay4 <span style="color: #0000ff;">VAR</span> <span style="color: #ff0000;">"Window Color:"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">175</span>, <span style="color: #000000;">33</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">16777215</span> <span style="color: #0000ff;">FONT</span> oFont1<br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">80</span>, <span style="color: #000000;">209</span> <span style="color: #0000ff;">SAY</span> oSay5 <span style="color: #0000ff;">VAR</span> <span style="color: #ff0000;">"0"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">141</span>, <span style="color: #000000;">39</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">16777215</span> <span style="color: #0000ff;">FONT</span> oFont1<br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">80</span>, <span style="color: #000000;">371</span> <span style="color: #0000ff;">SAY</span> oSay6 <span style="color: #0000ff;">VAR</span> RRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">39</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">16777215</span> <span style="color: #0000ff;">FONT</span> oFont1<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Right click</span><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span>| nRow, nCol | RPopup<span style="color: #000000;">&#40;</span> nRow, nCol, oDlg, <span style="color: #000000;">&#123;</span> oSay1, oSAy2, oSay3, oSay4, oSay5, oSay6 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> RPopup<span style="color: #000000;">&#40;</span> nRow, nCol, oDlg, aSays <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oMenu<br /><br />&nbsp; &nbsp;oMenu := MenuPopUp<span style="color: #000000;">&#40;</span> oDlg, aSays <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oMenu <span style="color: #0000ff;">WINDOW</span> oDlg <span style="color: #00C800;">AT</span> nRow, nCol<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MenuPopUp<span style="color: #000000;">&#40;</span> oDlg, aSays <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oMenu<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nClrTxt := oSay1:<span style="color: #000000;">nClrText</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nClrDlg := oDlg:<span style="color: #000000;">nClrPane</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">PopUp</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MenuItem</span> <span style="color: #ff0000;">"Text Color"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Action</span> <span style="color: #000000;">&#40;</span> nClrTxt := ChooseColor<span style="color: #000000;">&#40;</span> nClrTxt <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AplicaCores<span style="color: #000000;">&#40;</span> oDlg, aSays, nClrTxt, nClrDlg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MenuItem</span> <span style="color: #ff0000;">"Window Color"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Action</span><span style="color: #000000;">&#40;</span> nClrDlg := ChooseColor<span style="color: #000000;">&#40;</span> nClrDlg <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AplicaCores<span style="color: #000000;">&#40;</span> oDlg, aSays, nClrTxt, nClrDlg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> oMenu <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> AplicaCores<span style="color: #000000;">&#40;</span> oDlg, aSays, nClrTxt, nClrDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> i, cRgbTxt, cRgbDlg<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrTxt, nClrDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">6</span><br /><br />&nbsp; &nbsp; &nbsp; SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; aSays<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrTxt, nClrDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; aSays<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;cRgbTxt := RRGB<span style="color: #000000;">&#40;</span> nClrTxt <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cRgbDlg := RRGB<span style="color: #000000;">&#40;</span> nClrDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;aSays<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> nClrTxt <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aSays<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cRgbTxt <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aSays<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> nClrDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aSays<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cRgbDlg <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> RRGB<span style="color: #000000;">&#40;</span> nCor <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cRGB := <span style="color: #ff0000;">"{ "</span> + StrZero<span style="color: #000000;">&#40;</span> nRGBRed<span style="color: #000000;">&#40;</span> nCor <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> &nbsp; + <span style="color: #ff0000;">", "</span> &nbsp; + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StrZero<span style="color: #000000;">&#40;</span> nRGBGreen<span style="color: #000000;">&#40;</span> nCor <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", "</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StrZero<span style="color: #000000;">&#40;</span> nRGBBlue<span style="color: #000000;">&#40;</span> nCor <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> &nbsp;+ <span style="color: #ff0000;">" }"</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> cRGB<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// FIN / END</span><br />&nbsp;</div>[/code:xz1ov7zc]
say border RESOLVED
[quote="Silvio.Falconi":2d3zi0hg]I have these say [img:2d3zi0hg]https&#58;//i&#46;postimg&#46;cc/0yCnQQ63/say&#46;png[/img:2d3zi0hg] but with border are no good it is possible to do only one line under the say like this for example [img:2d3zi0hg]https&#58;//i&#46;postimg&#46;cc/9FbwwqpG/gg&#46;jpg[/img:2d3zi0hg] and have the possibiliy to select color for the line ?[/quote:2d3zi0hg] Look my gif. [url] <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=41015">viewtopic.php?f=3&t=41015</a><!-- l --> [/url]
say border RESOLVED
[quote="richard-service":2e9gafb7][quote="Silvio.Falconi":2e9gafb7]I have these say [img:2e9gafb7]https&#58;//i&#46;postimg&#46;cc/0yCnQQ63/say&#46;png[/img:2e9gafb7] but with border are no good it is possible to do only one line under the say like this for example [img:2e9gafb7]https&#58;//i&#46;postimg&#46;cc/9FbwwqpG/gg&#46;jpg[/img:2e9gafb7] and have the possibiliy to select color for the line ?[/quote:2e9gafb7] Look my gif. [url] <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=41015">viewtopic.php?f=3&t=41015</a><!-- l --> [/url][/quote:2e9gafb7] Sorry, I don't want the line under the get control [b:2e9gafb7]I want to put the line under SAY control[/b:2e9gafb7]