topic
stringlengths
1
63
text
stringlengths
1
577k
Aniversario y obsequio!
¡Gracias por todo familia! Hasta hoy todo parece funcionar normalmente, eso dice el médico (o será el tequila?). Bueno todo menos los programas, hice unos ajustes al Visor de Tablas. Estaba trabajando bien pero me olvidé de revisarlo al cambiar de Browse a xBrowse y de Harbour a xHarbour. Pueden volver a descargarlo. El EXE no está protegido por lo que pueden extraer los recursos y revisar su funcionalidad (descargar RC-eXtended de mi sitio). Un abrazo!
Aniversario y obsequio!
!!!!!!!!!!FELICIDADES ALFREDO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! QUE CUMPLAS OTROS TANTOS IGUAL A MI HACEN FALTA 4 NADA MAS Y AQUI SEGUIMOS CON MUCHO ANIMO SALUDOS
Aniversario y obsequio!
Enhorabuena Alfredo, que cumplas muchos más con salud y con los tuyos. Gracias por tu trabajo. Carlos G.
Aniversario y obsequio!
Alfredo: Ya te felicité anteriormente pero ahora te molesto porque el PRG SDS_VS me da error en la linea 548 y no encuentro la solución. Gracias y disculpa mi torpeza. Ruben Fernandez. FWH 7.12 y BCC,Harbour
Aniversario y obsequio!
Ruben, no veo el motivo de error. Enviame el ERR_XXXX.LOG a <!-- e --><a href="mailto:soporte@despachoarteaga.com.mx">soporte@despachoarteaga.com.mx</a><!-- e -->.
Aniversario y obsequio!
Alfredo, muchas felicidades, que la pases super en compañia de la Familia. José Luis
Aniversario y obsequio!
Admiro mucho tu trabajo, espero podamos celebrar contigo los siguientes 50 y con mucha salud... y tequila. Gracias por este y muchos otros aportes y conocimientos con los que nos has enriquecido y nos enriqueces. Los mejores deseos para tí y tu familia.
Aniversario y obsequio!
Felicidades Alfredo!!! Que disfrutes esta mitad de siglo junto a los tuyos. Soy un admirador de tu trabajo y me alegra mucho que lo compartas aqui. Saludos desde Argentina.
Aniversario y obsequio!
aunque llego tarde, Felicidades Alfredo!!!
Aniversario y obsequio!
MUCHAS FELICIDADES ALFREDO . Que lo pases bomba !!. Saludos,
Aniversario y obsequio!
Un poco tarde, pero... FELICIDADES... y que cumplas mas años.. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saludos Marco A. Delgado.
Aniversario y obsequio!
TROESMA !!! Muy feliz cumpleaños !!! Un gran abrazo. El Loco =>))
Aniversario y obsequio!
Felicitaciones!!! Espero que cumpla muchos años más. Yo todavía soy un pichoncito aprendiz de tan solo 25 añitos, justo la mitad. Que pase un muy buen día junto a los suyos!! Saludos, Desde Argentina, Esteban.
Aniversario y obsequio!
[quote="Alfredo Arteaga":f60gwuma]¡Gracias por todo familia! Hasta hoy todo parece funcionar normalmente, eso dice el médico (o será el tequila?). Bueno todo menos los programas, hice unos ajustes al Visor de Tablas. Estaba trabajando bien pero me olvidé de revisarlo al cambiar de Browse a xBrowse y de Harbour a xHarbour. Pueden volver a descargarlo. El EXE no está protegido por lo que pueden extraer los recursos y revisar su funcionalidad (descargar RC-eXtended de mi sitio). Un abrazo![/quote:f60gwuma] Alfredo , Te deseo un feliz cumpleaños
Aniversario y obsequio!
bueno no habia entrado al foro desde hace unos dias y como dice el dicho mas vale tarde que nunca, esperemos que estes a media vida y cumplas otros 50 años y espero la tequila te deje leer el mensaje porque eso es una fiesta minimo para una semana, jeje
Annimated ICON on windows bar like explorer
Hello, Is there a possibility to animate the ICON on the windows-7-bar, like Windows Explorer and WinRAR does when you copy or compress files ? The background is changing color like a process-bar.
Announcing DrXlsx 1.0 by Charles Kwon
A great contribution to Harbour/xHarbour from Master Charles Kwon: [url:il243dty]http&#58;//www&#46;charleskwon&#46;com/?page_id=956[/url:il243dty] Don't miss it!
Announcing DrXlsx 1.0 by Charles Kwon
[list:yw9tpfoy] * No Excel installation is required at all * No XLSX ADO installation is needed either * No special DLL installation is required to create XLSX files * XLSX creation is self-contained, no external files needed [/list:u:yw9tpfoy] Many Thanks, great job master Charles Kwon !
Announcing DrXlsx 1.0 by Charles Kwon
Hi Charles Know Really thank you, it's a really missing tool !!!. i already downloaded it and it worked without problems Fwh 23.07 BBC 7.0. Today I continue with the tests Tia Maurizio Menabue
Announcing DrXlsx 1.0 by Charles Kwon
Thank you!! Is source code available? Will fwh use it for preview and xBrowse?
Announcing DrXlsx 1.0 by Charles Kwon
mgsoft, The distribution file contains sample source code. Additionally, there is a manual available at the link above. Regards, Charles KWON [quote="mgsoft":24reiqxe]Thank you!! Is source code available? Will fwh use it for preview and xBrowse?[/quote:24reiqxe]
Announcing DrXlsx 1.0 by Charles Kwon
Hi Charles, the program has just been presented and I immediately ask if you have in mind the possibility of adding two methods, one to manage the height of the lines, the other to be able to modify the method : sayimage in order to possibly resize the image to be printed. TIA Maurizio Menabue
Announcing DrXlsx 1.0 by Charles Kwon
Thank you. Will you sell the full source code? I do not use external libs without its full sources.
Announcing DrXlsx 1.0 by Charles Kwon
mgsoft, I have no intention of revealing the internal code. So, I prefer using the iPhone and Windows, which don't have their internal code disclosed. This is human free will [i:1rujfrth][b:1rujfrth]Please, by your own free will, find and use another 'OPEN' SOURCE.[/b:1rujfrth][/i:1rujfrth] Regards, Charles KWON [quote="mgsoft":1rujfrth]Thank you. Will you sell the full source code? I do not use external libs without its full sources.[/quote:1rujfrth]
Announcing DrXlsx 1.0 by Charles Kwon
Maurizio, DrXlsx supports many versions of harbour(32/64)/xHarbour(32/64) and VC/BCC/Clang under the same protocol. It's a time-consuming task and some versions can cause unexpected issues due to their unique characteristics. I am also testing the desired features for each version, and I will announce them once it is complete. Thank you. Regards, Charles KWON [quote="mauri.menabue":1yhhfd5f]Hi Charles, the program has just been presented and I immediately ask if you have in mind the possibility of adding two methods, one to manage the height of the lines, the other to be able to modify the method : sayimage in order to possibly resize the image to be printed. TIA Maurizio Menabue[/quote:1yhhfd5f]
Announcing DrXlsx 1.0 by Charles Kwon
hi, i open OEM DBF and try to use oXlsx:Say() or oXlsx:WriteString() but i have Problem with DrXlsx32.lib and German Umlaute ( äöüÄÖÜß ) have try FW_SetUnicode( .T./.F. ) and hb_cdpSelect( "DE850" / "DEWIN" ) need a Tip what else i can try
Announcing DrXlsx 1.0 by Charles Kwon
[code=fw:3fjojefg]<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 /><br />   <span style="color: #00C800;">local</span> oXlsx, cFile, cUmlaut<br /><br />   FW_SetUnicode<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />   cFile    := <span style="color: #ff0000;">"uml.xlsx"</span><br />   cUmlaut := <span style="color: #ff0000;">"üüüüü"</span><br />   ? cUmlaut<br /><br />   oXlsx    := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   WITH OBJECT oXlsx<br />      :<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />      :<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"UMLAUT"</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, cUmlaut <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br />   ShellExecute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Open"</span>, cFile <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3fjojefg] [url=https&#58;//imageshack&#46;com/i/potE0Pkxp:3fjojefg][img:3fjojefg]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq70/924/tE0Pkx&#46;png[/img:3fjojefg][/url:3fjojefg]
Announcing DrXlsx 1.0 by Charles Kwon
In continuation: German Umlauts (also all accented characters of West European languages) are encoded differently in ANSI and UTF8. I posted more details in your other posting. All English characters and also all non-accented characters of other languages are encoded as same single byte both in ANSI and UTF8, so there is no problem there. I noticed that this library requires utf8 encoding. If our string containing Umlauts is encoded in ANSI, we need to convert into UTF8. I propose this approach which is working satisfactory in all my tests: It does not matter if the string is ANSI encoded or UTF8 encoded, this approach works. [code=fw:39wuo8uv]<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 /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oXlsx, cFile, cUmlaut<br /><br />&nbsp; &nbsp;FW_SetUnicode<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cFile &nbsp; &nbsp;:= <span style="color: #ff0000;">"uml.xlsx"</span><br /><br />&nbsp; &nbsp;cUmlaut &nbsp;:= Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;MsgGet<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Enter:"</span>, <span style="color: #ff0000;">"UMLAUT"</span>, @cUmlaut <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cUmlaut &nbsp;:= Trim<span style="color: #000000;">&#40;</span> cUmlaut <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx &nbsp; &nbsp;:= TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;WITH OBJECT oXlsx<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"UMLAUT"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, strToUtf8<span style="color: #000000;">&#40;</span> cUmlaut <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;ShellExecute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Open"</span>, cFile <span style="color: #000000;">&#41;</span><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;">static</span> <span style="color: #00C800;">function</span> StrToUtf8<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">return</span> UTF16TOUTF8<span style="color: #000000;">&#40;</span> strToWide<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:39wuo8uv] Please test by entering different strings and this should work well.
Announcing DrXlsx 1.0 by Charles Kwon
hi, thx for Answer. your Sample work like expect, but i talk about "old" existing OEM DBF i have try to explain it in this Thread [url:2lo94y1r]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=43651[/url:2lo94y1r]
Announcing DrXlsx 1.0 by Charles Kwon
hi, i have try to make some Sample to "test" Speed using a 32 Bit Apps ADO [quote:9ra7uqa1]Records = 59780 Time = 41.74 1432.23 Rec/Sec[/quote:9ra7uqa1] XLSwriter [quote:9ra7uqa1]Records = 59780 Time = 8.20+ 7285.80 Rec/Sec[/quote:9ra7uqa1] so XLSwriter is 500 % faster <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> --- now use XLSwriter with > 350000 Record using 32 Bit App ... 32 Bit Aoo using XLSwriter "crash" > 109000 Record while "memory exhaust" <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> 32 Bit App using ADO does create a 20 MB *.XLSB with all 351287 Record <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ADO [quote:9ra7uqa1]Records = 351287 Time = 288.54  1217.47 Rec/Sec[/quote:9ra7uqa1] XLSwriter [quote:9ra7uqa1]RECNO() = 109571 MEMORY( 3 ) = 31044 // have set Limit at 32 Kb[/quote:9ra7uqa1] it is just before available Memory "crash" so leave loop i "think" it have to do that ADO "read/write" while XLSwriter "read" all to RAM before "write" when "break" ADO there is a *.XLSB but nothing when XLSwriter "crash" --- using a 64 Bit Apps ADO it is funny that my 64 Bit MSVC App work slower that 32 Bit BCC7 App ? [quote:9ra7uqa1] cIn = "records in dbf: 351287" cIn = "imported recs: 351287" cIn = "Std 00:06:13" cIn = "Rec/Sec 940.51" [/quote:9ra7uqa1] XLSwriter [quote:9ra7uqa1]nReccount = 351287 nRecLast = 351288 % = 100 nTime = 71.06 4943.40 Rec/Sec nOEM = 107712 nANSI = 17642 nELSE = 5821450 [/quote:9ra7uqa1] this was 32 Bit App [quote:9ra7uqa1]nReccount = 351287 nRecLast = 109571 % = 31 nTime = 50.96 2150.14 Rec/Sec nOEM = 39715 nANSI = 4747 nELSE = 1811139 [/quote:9ra7uqa1] btw. when RAM decrease also APP Speed decrease using 32 Bit App so also XLSwriter 64 Bit is 500 % faster <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> --- Epilogue : Benefit ADO : work under 32 Bit App. no "Umlaute" Problem using OEM DBF Limitation : Speed like ActiveX Benefit XLSwriter : SPEED Limitation : need UFT8 else it "crash" not sure : XLSwriter 32 Bit App get "slower" when use many Times include "edit"/Recompile from 2150.14 Rec/Sec it goes < 2000 Rec/Sec ... after re-boot it start at 2300 Rec/Sec
Announcing DrXlsx 1.0 by Charles Kwon
Jimmy, 1. The issue occurring in 32bit is less a problem of DrXlsx and more fundamentally about [b:9wnb8mn4]the memory size limitations of 32bit[/b:9wnb8mn4]. It might be more beneficial to explore other solutions than spending time trying to resolve this. 2. If DrXlsx operates correctly in 64bit, I would recommend [b:9wnb8mn4]creating the xlsx export program in 64bit and using it as a utility.[/b:9wnb8mn4] Regards, Chalres KWON [quote="Jimmy":9wnb8mn4]hi, i have try to make some Sample to "test" Speed using a 32 Bit Apps ADO [quote:9wnb8mn4]Records = 59780 Time = 41.74 1432.23 Rec/Sec[/quote:9wnb8mn4] XLSwriter [quote:9wnb8mn4]Records = 59780 Time = 8.20+ 7285.80 Rec/Sec[/quote:9wnb8mn4] so XLSwriter is 500 % faster <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> --- now use XLSwriter with > 350000 Record using 32 Bit App ... 32 Bit Aoo using XLSwriter "crash" > 109000 Record while "memory exhaust" <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> 32 Bit App using ADO does create a 20 MB *.XLSB with all 351287 Record <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ADO [quote:9wnb8mn4]Records = 351287 Time = 288.54  1217.47 Rec/Sec[/quote:9wnb8mn4] XLSwriter [quote:9wnb8mn4]RECNO() = 109571 MEMORY( 3 ) = 31044 // have set Limit at 32 Kb[/quote:9wnb8mn4] it is just before available Memory "crash" so leave loop i "think" it have to do that ADO "read/write" while XLSwriter "read" all to RAM before "write" when "break" ADO there is a *.XLSB but nothing when XLSwriter "crash" --- using a 64 Bit Apps ADO it is funny that my 64 Bit MSVC App work slower that 32 Bit BCC7 App ? [quote:9wnb8mn4] cIn = "records in dbf: 351287" cIn = "imported recs: 351287" cIn = "Std 00:06:13" cIn = "Rec/Sec 940.51" [/quote:9wnb8mn4] XLSwriter [quote:9wnb8mn4]nReccount = 351287 nRecLast = 351288 % = 100 nTime = 71.06 4943.40 Rec/Sec nOEM = 107712 nANSI = 17642 nELSE = 5821450 [/quote:9wnb8mn4] this was 32 Bit App [quote:9wnb8mn4]nReccount = 351287 nRecLast = 109571 % = 31 nTime = 50.96 2150.14 Rec/Sec nOEM = 39715 nANSI = 4747 nELSE = 1811139 [/quote:9wnb8mn4] btw. when RAM decrease also APP Speed decrease using 32 Bit App so also XLSwriter 64 Bit is 500 % faster <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> --- Epilogue : Benefit ADO : work under 32 Bit App. no "Umlaute" Problem using OEM DBF Limitation : Speed like ActiveX Benefit XLSwriter : SPEED Limitation : need UFT8 else it "crash" not sure : XLSwriter 32 Bit App get "slower" when use many Times include "edit"/Recompile from 2150.14 Rec/Sec it goes < 2000 Rec/Sec ... after re-boot it start at 2300 Rec/Sec[/quote:9wnb8mn4]
Announcing DrXlsx 1.0 by Charles Kwon
hi Chalres, your LIB work GREAT, thx it is a "normal" that RAM is "limited" for 32 Bit App i have "hope" it does "write" when have "read" but all seems to go to RAM when it "crash" there is no XLSx, you need to "close" to "write" Excel Sheet Question : is it possible to use a Thread to "write" what have been "read" before <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Announcing DrXlsx 1.0 by Charles Kwon
hi, do you have a Sample how to "insert" Image into Excel Sheet using DrXlsx LIB <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [code=fw:27dka8rs]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #B900B9;">/* Insert an image. */</span><br />   worksheet_insert_image<span style="color: #000000;">&#40;</span> worksheet, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"hb_logo.png"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">/* Insert an image with options. */</span><br />   options := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"x_scale"</span> => .<span style="color: #000000;">5</span>, <span style="color: #ff0000;">"y_scale"</span> => .<span style="color: #000000;">5</span> <span style="color: #000000;">&#125;</span><br />   worksheet_insert_image_opt<span style="color: #000000;">&#40;</span> worksheet, CELL<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"B15"</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"hb_logo.png"</span>, options <span style="color: #000000;">&#41;</span><br /><br />   options := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"x_offset"</span>=> <span style="color: #000000;">10</span> , <span style="color: #ff0000;">"y_offset"</span> => <span style="color: #000000;">5</span> <span style="color: #000000;">&#125;</span><br />   worksheet_insert_image_opt<span style="color: #000000;">&#40;</span> worksheet, CELL<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"G2"</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"hb_logo.png"</span>, options <span style="color: #000000;">&#41;</span></div>[/code:27dka8rs] these Function seems also be in DrXlsx LIB but how to use it ... <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Announcing DrXlsx 1.0 by Charles Kwon
Hi When will it be released? Thank you to those who contributed.
Announcing DrXlsx 1.0 by Charles Kwon
Hello everybody. I'm trying to use the DrXlsx lib, but I can't generate the executable for a small example, could anyone tell me what's missing or am I doing it wrong? is DrXlsx32x_bcc.lib is correct to my case, ok? Thank you all. [code=fw:6fs1dyzi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    SET DATE FORMAT <span style="color: #ff0000;">"YYYY-MM-DD"</span><br /><br />    oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"d:<span style="color: #000000;">\t</span>est.xlsx"</span><span style="color: #000000;">&#41;</span><br />    oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">"Sample Head"</span><span style="color: #000000;">&#41;</span><br />    oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">"Hello World!"</span><span style="color: #000000;">&#41;</span><br />    oXlsx:<span style="color: #000000;">Close</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 /> </div>[/code:6fs1dyzi] [code=fw:6fs1dyzi]<div class="fw" id="{CB}" style="font-family: monospace;">FiveWin <span style="color: #00C800;">for</span> xHarbour <span style="color: #000000;">23.04</span> - Apr. <span style="color: #000000;">2023</span>          Harbour development <span style="color: #0000ff;">power</span> <br /><span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech <span style="color: #000000;">1993</span><span style="color: #000000;">-2023</span> <span style="color: #00C800;">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style="color: #000000;">7</span>/<span style="color: #000000;">8</span>/<span style="color: #000000;">10</span><br />Compiling...<br />xHarbour <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20221118</span><span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">1999</span><span style="color: #000000;">-2022</span>, http:<span style="color: #B900B9;">//www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --></span><br />Compiling <span style="color: #ff0000;">'drxlsx.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'drxlsx.ppo'</span>...<br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'drxlsx.c'</span>...<br />Done.<br />Lines <span style="color: #000000;">19</span>, Functions/Procedures <span style="color: #000000;">1</span>, pCodes <span style="color: #000000;">52</span><br />Embarcadero C++ <span style="color: #000000;">7.40</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1993</span><span style="color: #000000;">-2018</span> Embarcadero Technologies, Inc.<br />drxlsx.c:<br /><span style="color: #000000;">Turbo</span> Incremental Link <span style="color: #000000;">6.90</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2017</span> Embarcadero Technologies, Inc.<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_fill_fopen64_filefunc'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_call_zopen64'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_fill_zlib_filefunc64_32_def_from_filefunc32'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_call_zseek64'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_call_ztell64'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_fill_fopen_filefunc'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|packager<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HASTIMEPART'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|TDrXlsx<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_HEVAL'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|TDrXlsx<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_TTOS'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|TDrXlsx<br /> </div>[/code:6fs1dyzi]
Announcing DrXlsx 1.0 by Charles Kwon
Tienes que enlazar las librerias hbzip and zlib
Announcing DrXlsx 1.0 by Charles Kwon
for these errors: [code=fw:2rbpwql0]<div class="fw" id="{CB}" style="font-family: monospace;">Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HASTIMEPART'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|TDrXlsx<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_HEVAL'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|TDrXlsx<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_TTOS'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|TDrXlsx<br />&nbsp;</div>[/code:2rbpwql0] Add this code somewhere in your application program: [code=fw:2rbpwql0]<div class="fw" id="{CB}" style="font-family: monospace;">#ifdef __XHARBOUR__<br /><br /><span style="color: #00C800;">function</span> HB_HEVAL <span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">return</span> HEVAL<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">function</span> HB_TTOS<span style="color: #000000;">&#40;</span>t<span style="color: #000000;">&#41;</span>;return TTOS<span style="color: #000000;">&#40;</span>t<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> HasTimePart<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> lBug<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lBug == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; lBug &nbsp;:= HB_IsDateTime<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><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lBug<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span> tDate - Int<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> HB_IsDateTime<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br />#endif<br />&nbsp;</div>[/code:2rbpwql0]
Announcing DrXlsx 1.0 by Charles Kwon
Thanks Mr Antonio e Mr Nages. [quote="nageswaragunupudi":19ljysym]for these errors: [code=fw:19ljysym]<div class="fw" id="{CB}" style="font-family: monospace;">Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HASTIMEPART'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|TDrXlsx<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_HEVAL'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|TDrXlsx<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_TTOS'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|TDrXlsx<br /> </div>[/code:19ljysym] Add this code somewhere in your application program: [code=fw:19ljysym]<div class="fw" id="{CB}" style="font-family: monospace;">#ifdef __XHARBOUR__<br /><br /><span style="color: #00C800;">function</span> HB_HEVAL <span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">return</span> HEVAL<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">function</span> HB_TTOS<span style="color: #000000;">&#40;</span>t<span style="color: #000000;">&#41;</span>;return TTOS<span style="color: #000000;">&#40;</span>t<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> HasTimePart<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">static</span> lBug<br /><br />   <span style="color: #00C800;">if</span> lBug == <span style="color: #00C800;">nil</span><br />      lBug  := HB_IsDateTime<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><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> lBug<br />      <span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span> tDate - Int<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> HB_IsDateTime<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br />#endif<br /> </div>[/code:19ljysym][/quote:19ljysym] It works, thank you. Mr Antonio, these libs already contains in the script, I am using buildx.bat from the samples folder. [code=fw:19ljysym]<div class="fw" id="{CB}" style="font-family: monospace;"><br />echo %hdirl%\zlib.lib + >> b32.bc<br />echo %hdirl%\hbzip.lib + >> b32.bc<br /> </div>[/code:19ljysym] Now, show this errors: [code=fw:19ljysym]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_fill_fopen64_filefunc'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_call_zopen64'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_fill_zlib_filefunc64_32_def_from_filefunc32'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_call_zseek64'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_call_ztell64'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|zip<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_fill_fopen_filefunc'</span> referenced <span style="color: #0000ff;">from</span> D:\TOOLS\DRXLSX\DRXLSX32X_BCC.LIB|packager<br /> </div>[/code:19ljysym]
Announcing DrXlsx 1.0 by Charles Kwon
please try adding this lib also to your link-script \xharbour\lib\hbmzip.lib
Announcing DrXlsx 1.0 by Charles Kwon
[quote="nageswaragunupudi":ju16qmfy]please try adding this lib also to your link-script \xharbour\lib\hbmzip.lib[/quote:ju16qmfy] It works fine now! Thank you Mr. Nages
Announcing DrXlsx 1.0 by Charles Kwon
Hola buenos días para todos Estamos terminando de implementar la clase del maestro Charles en algunos de nuestros informes, ya logramos crear los archivos de Excel, ahora requerimos poder cambiar los colores de las fuentes y el color de fondo de la celda, estuvimos revisando en la documentación que publico el maestro Charles, pero no encontramos como se debe hacer. Tambien nos gustaría saber como podemos hacer para leer un archivo de Excel y recuperar los datos, incluyendo una imagen. Si alguien tiene un ejemplo seria de mucha utilidad. De antemano gracias.
Announcing DrXlsx 1.0 by Charles Kwon
Master Nages, is this correct? If so, how do I trigger Excel to open the: testsayx.xlsx Maestro Nages, ¿es esto correcto? Si es así, ¿cómo hago para que Excel abra: testsayx.xlsx [code=fw:3ol6f866]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\TESTDRXL.PRG - Master Nages,</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"DrXlsx.ch"</span><br /><br />#ifdef __XHARBOUR__<br /><br />&nbsp; &nbsp;#xtranslate hb_DateTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span><x,...><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;=> DateTime<span style="color: #000000;">&#40;</span> <x> <span style="color: #000000;">&#41;</span><br /><br />#endif<br /><br />REQUEST DBFCDX<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;SET DATE FORMAT <span style="color: #ff0000;">"YYYY-MM-DD"</span><br /><br />&nbsp; &nbsp;HelloSayX<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;">// Mister Nages:</span><br /><br />#ifdef __XHARBOUR__<br /><br /><span style="color: #00C800;">FUNCTION</span> HB_HEVAL<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span> ; <span style="color: #00C800;">RETURN</span> HEVAL<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> HB_TTOS<span style="color: #000000;">&#40;</span>t<span style="color: #000000;">&#41;</span> ; <span style="color: #00C800;">RETURN</span> TTOS<span style="color: #000000;">&#40;</span>t<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> HasTimePart<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> lBug<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lBug == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; lBug &nbsp;:= HB_IsDateTime<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><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lBug<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> tDate - Int<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">RETURN</span> HB_IsDateTime<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br /><br />#endif<br /><br /><span style="color: #00C800;">FUNCTION</span> HelloSayX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dDate := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nValue := <span style="color: #000000;">2023</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nValue2 := <span style="color: #000000;">19450815</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nUSD &nbsp; &nbsp;:= <span style="color: #000000;">3000</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"testsayx.xlsx"</span> <span style="color: #000000;">&#41;</span> <> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">" The file is already open."</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> SAYX <span style="color: #ff0000;">"Hello World!"</span> <span style="color: #0000ff;">OF</span> oXlsx<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> SAYX <span style="color: #ff0000;">"CENTER Text"</span> <span style="color: #0000ff;">OF</span> oXlsx ALIGN DRXLSX_ALIGN_CENTER<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span> SAYX <span style="color: #ff0000;">"RIGHT &nbsp;Text"</span> <span style="color: #0000ff;">OF</span> oXlsx ALIGN DRXLSX_ALIGN_RIGHT<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> SAYX &nbsp;dDate &nbsp; <span style="color: #0000ff;">OF</span> &nbsp;oXlsx ALIGN DRXLSX_ALIGN_CENTER<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> SAYX &nbsp;nValue &nbsp;<span style="color: #0000ff;">OF</span> &nbsp;oXlsx PICTUREX <span style="color: #ff0000;">"#,###"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span> SAYX &nbsp;nValue2 <span style="color: #0000ff;">OF</span> &nbsp;oXlsx PICTUREX <span style="color: #ff0000;">"#,###"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">6</span>, <span style="color: #000000;">0</span> SAYX &nbsp;nUSD &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> &nbsp;oXlsx PICTUREX <span style="color: #ff0000;">"$#,###"</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Hello<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"test.xlsx"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"안녕하세요"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Hello World!"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Hello2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"testlogic.xlsx"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"안녕하세요"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Hello World!"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteLogical</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDate</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, DRXLSX_ALIGN_CENTER, <span style="color: #ff0000;">"dd-mm-yyyy"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Hello3<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"align.xlsx"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"안녕하세요"</span>, DRXLSX_ALIGN_CENTER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Hello World!"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteLogical</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDate</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,, <span style="color: #ff0000;">"dd-mm-yyyy"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Hello4<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx &nbsp;:= TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dtTest := hb_DateTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2023</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">04</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"merge.xlsx"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">MergeRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Title"</span>, DRXLSX_ALIGN_CENTER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Product 1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDate</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, DRXLSX_ALIGN_CENTER, <span style="color: #ff0000;">"yyyy-mm-dd"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Is Stock"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteLogical</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, .T., DRXLSX_ALIGN_CENTER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Stock Price"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteNumber</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">9999</span>,, <span style="color: #ff0000;">"$#,##0.00"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDateTime</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span>, dtTest,, <span style="color: #ff0000;">"yyyy-mm-dd hh:mm:dd"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Saytest<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx &nbsp;:= TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dtTest := hb_DateTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2023</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">04</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"say.xlsx"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Valtype"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Value"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Character"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Numeric"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Date"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Logic"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Datetime format"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Datetime"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Hello"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1234.0000</span>,, <span style="color: #ff0000;">"#,##0.000"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">1</span>, dtTest,, <span style="color: #ff0000;">"yyyy-mm-dd hh:mm:ss"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">1</span>, dtTest <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Hello5<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx &nbsp;:= TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dtTest := hb_DateTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2023</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">04</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFormat<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"merge2.xlsx"</span> <span style="color: #000000;">&#41;</span> <> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"The file is already open."</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;oFormat := TDrXlsxFormat():New( oXlsx )<br /><br />&nbsp; &nbsp;oFormat:AddAlign( DRXLSX_ALIGN_CENTER )<br />&nbsp; &nbsp;oFormat:AddAlign( DRXLSX_ALIGN_VERTICAL_CENTER )<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> XLSXFORMAT oFormat <span style="color: #0000ff;">OF</span> oXlsx<br /><br />&nbsp; &nbsp;ADD XLSXALIGN DRXLSX_ALIGN_CENTER <span style="color: #0000ff;">TO</span> oFormat<br />&nbsp; &nbsp;ADD XLSXALIGN DRXLSX_ALIGN_VERTICAL_CENTER <span style="color: #0000ff;">TO</span> oFormat<br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">MergeRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Title"</span>, oFormat <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Product 1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDate</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, DRXLSX_ALIGN_CENTER, <span style="color: #ff0000;">"yyyy-mm-dd"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Is Stock"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteLogical</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span>, .T., DRXLSX_ALIGN_CENTER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Stock Price"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteNumber</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">9999</span>,, <span style="color: #ff0000;">"$#,##0.00"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDateTime</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">1</span>, dtTest,, <span style="color: #ff0000;">"yyyy-mm-dd hh:mm:dd"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp2"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDateTime</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">1</span>, dtTest <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> HelloFormula<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dtTest := hb_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFormat<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"formula_format.xlsx"</span> <span style="color: #000000;">&#41;</span> <> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"The file is already open."</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> XLSXFORMAT oFormat <span style="color: #0000ff;">OF</span> oXlsx<br /><br />&nbsp; &nbsp;ADD XLSX ALIGN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DRXLSX_ALIGN_CENTER &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TO</span> oFormat<br />&nbsp; &nbsp;ADD XLSX NUMBER_FORMAT <span style="color: #ff0000;">"yyyy-mm-dd hh.mm.ss.000"</span> <span style="color: #0000ff;">TO</span> oFormat<br /><br />&nbsp; &nbsp;ADD XLSX BOLD <span style="color: #0000ff;">TO</span> oFormat<br />&nbsp; &nbsp;ADD XLSX ITALIC <span style="color: #0000ff;">TO</span> oFormat<br /><br />&nbsp; &nbsp;ADD XLSX BOTTOM <span style="color: #0000ff;">STYLE</span> DRXLSX_BORDER_DOUBLE <span style="color: #0000ff;">TO</span> oFormat<br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDateTime</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, dtTest <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp + 30"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteFormula</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"=B1+30"</span>, &nbsp;oFormat <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> MakeDbf2Xls<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><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;USE INVOICES <span style="color: #00C800;">NEW</span><br /><br />&nbsp; &nbsp;Dr_Dbf2Xlsx<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"invoices.xlsx"</span>, .T. <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:3ol6f866] Gracias, thanks. Regards, saludos.
Announcing DrXlsx 1.0 by Charles Kwon
[quote:1id42pkv]If so, how do I trigger Excel to open the: testsayx.xlsx [/quote:1id42pkv] [code=fw:1id42pkv]<div class="fw" id="{CB}" style="font-family: monospace;">ShellExectute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Open"</span>, cXlsxFile <span style="color: #000000;">&#41;</span></div>[/code:1id42pkv]
Announcing DrXlsx 1.0 by Charles Kwon
Thanks mister Rao. Perfect! [code=fw:34fe44xn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\TESTDRXL.PRG - Master Nages, Moidified: 15/10/2023 Joao.</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"DrXlsx.ch"</span><br /><br />#ifdef __XHARBOUR__<br /><br />&nbsp; &nbsp;#xtranslate hb_DateTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span><x,...><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;=> DateTime<span style="color: #000000;">&#40;</span> <x> <span style="color: #000000;">&#41;</span><br /><br />#endif<br /><br />REQUEST DBFCDX<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: #B900B9;">// SET DATE FORMAT "YYYY-MM-DD"</span><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DATE BRITISH<br />&nbsp; &nbsp;SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"HH:MM:SS"</span><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <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;">30</span><br />&nbsp; &nbsp;SET SOFTSEEK OFF<br />&nbsp; &nbsp;SET WRAP <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SETCANCEL<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SET CONFIRM OFF<br />&nbsp; &nbsp;SET DELETED <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET _3DLOOK <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET UNIQUE OFF<br />&nbsp; &nbsp;SET ESCAPE OFF<br />&nbsp; &nbsp;SET EXACT <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET EXCLUSIVE OFF<br />&nbsp; &nbsp;SET MULTIPLE OFF<br />&nbsp; &nbsp;SET OPTIMIZE <span style="color: #0000ff;">ON</span><br /><br />&nbsp; &nbsp;HelloSayX<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;">// Mister Nages:</span><br /><br />#ifdef __XHARBOUR__<br /><br /><span style="color: #00C800;">FUNCTION</span> HB_HEVAL<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span> ; <span style="color: #00C800;">RETURN</span> HEVAL<span style="color: #000000;">&#40;</span>h<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> HB_TTOS<span style="color: #000000;">&#40;</span>t<span style="color: #000000;">&#41;</span> ; <span style="color: #00C800;">RETURN</span> TTOS<span style="color: #000000;">&#40;</span>t<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> HasTimePart<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> lBug<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lBug == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; lBug &nbsp;:= HB_IsDateTime<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><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lBug<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> tDate - Int<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">RETURN</span> HB_IsDateTime<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br /><br />#endif<br /><br /><span style="color: #00C800;">FUNCTION</span> HelloSayX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx &nbsp; &nbsp; := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dDate &nbsp; &nbsp; := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nValue &nbsp; &nbsp;:= <span style="color: #000000;">2023</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nValue2 &nbsp; := <span style="color: #000000;">19450815</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nUSD &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">3000</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cXlsxFile := <span style="color: #ff0000;">"Testsayx.xlsx"</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Testsayx.xlsx"</span> <span style="color: #000000;">&#41;</span> <> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">" The file is already open."</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> SAYX <span style="color: #ff0000;">"Hello World!"</span> <span style="color: #0000ff;">OF</span> oXlsx<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> SAYX <span style="color: #ff0000;">"CENTER Texto"</span> <span style="color: #0000ff;">OF</span> oXlsx ALIGN DRXLSX_ALIGN_CENTER<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span> SAYX <span style="color: #ff0000;">"RIGHT &nbsp;Texto"</span> <span style="color: #0000ff;">OF</span> oXlsx ALIGN DRXLSX_ALIGN_RIGHT<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> SAYX &nbsp;<span style="color: #ff0000;">"Date: "</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oXlsx ALIGN DRXLSX_ALIGN_CENTER<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> SAYX &nbsp;dDate &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oXlsx ALIGN DRXLSX_ALIGN_CENTER<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span> SAYX &nbsp;nValue &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oXlsx PICTUREX <span style="color: #ff0000;">"#,###"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">6</span>, <span style="color: #000000;">0</span> SAYX &nbsp;nValue2 &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oXlsx PICTUREX <span style="color: #ff0000;">"#,###"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">7</span>, <span style="color: #000000;">0</span> SAYX &nbsp;<span style="color: #ff0000;">"US$: "</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oXlsx ALIGN DRXLSX_ALIGN_RIGHT<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> SAYX &nbsp;nUSD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oXlsx PICTUREX <span style="color: #ff0000;">"$#,###"</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// ShellExecute( 0, "Open", cXlsxFile ) &nbsp;// Mister Rao</span><br />&nbsp; &nbsp;MsgRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AGUARDE... ABRINDO O PROGRAMA DO EXCEL..."</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Por Favor, Espere Abertura. Pode Demorar."</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> || WinExec<span style="color: #000000;">&#40;</span> ShellExecute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Open"</span>, cXlsxFile <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</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> Hello<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"test.xlsx"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"안녕하세요"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Hello World!"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Hello2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"testlogic.xlsx"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"안녕하세요"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Hello World!"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteLogical</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDate</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, DRXLSX_ALIGN_CENTER, <span style="color: #ff0000;">"dd-mm-yyyy"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Hello3<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"align.xlsx"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"안녕하세요"</span>, DRXLSX_ALIGN_CENTER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Hello World!"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteLogical</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDate</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,, <span style="color: #ff0000;">"dd-mm-yyyy"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Hello4<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx &nbsp;:= TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dtTest := hb_DateTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2023</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">04</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"merge.xlsx"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">MergeRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Title"</span>, DRXLSX_ALIGN_CENTER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Product 1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDate</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, DRXLSX_ALIGN_CENTER, <span style="color: #ff0000;">"yyyy-mm-dd"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Is Stock"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteLogical</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, .T., DRXLSX_ALIGN_CENTER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Stock Price"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteNumber</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">9999</span>,, <span style="color: #ff0000;">"$#,##0.00"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDateTime</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span>, dtTest,, <span style="color: #ff0000;">"yyyy-mm-dd hh:mm:dd"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Saytest<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx &nbsp;:= TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dtTest := hb_DateTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2023</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">04</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"say.xlsx"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Valtype"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Value"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Character"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Numeric"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Date"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Logic"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Datetime format"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Datetime"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Hello"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1234.0000</span>,, <span style="color: #ff0000;">"#,##0.000"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">1</span>, dtTest,, <span style="color: #ff0000;">"yyyy-mm-dd hh:mm:ss"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">1</span>, dtTest <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> Hello5<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx &nbsp;:= TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dtTest := hb_DateTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2023</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">04</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFormat<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"merge2.xlsx"</span> <span style="color: #000000;">&#41;</span> <> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"The file is already open."</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;oFormat := TDrXlsxFormat():New( oXlsx )<br /><br />&nbsp; &nbsp;oFormat:AddAlign( DRXLSX_ALIGN_CENTER )<br />&nbsp; &nbsp;oFormat:AddAlign( DRXLSX_ALIGN_VERTICAL_CENTER )<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> XLSXFORMAT oFormat <span style="color: #0000ff;">OF</span> oXlsx<br /><br />&nbsp; &nbsp;ADD XLSXALIGN DRXLSX_ALIGN_CENTER <span style="color: #0000ff;">TO</span> oFormat<br />&nbsp; &nbsp;ADD XLSXALIGN DRXLSX_ALIGN_VERTICAL_CENTER <span style="color: #0000ff;">TO</span> oFormat<br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">MergeRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Title"</span>, oFormat <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Product 1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDate</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span>, Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, DRXLSX_ALIGN_CENTER, <span style="color: #ff0000;">"yyyy-mm-dd"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Is Stock"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteLogical</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span>, .T., DRXLSX_ALIGN_CENTER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Stock Price"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteNumber</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">9999</span>,, <span style="color: #ff0000;">"$#,##0.00"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDateTime</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">1</span>, dtTest,, <span style="color: #ff0000;">"yyyy-mm-dd hh:mm:dd"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp2"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDateTime</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">1</span>, dtTest <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> HelloFormula<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> dtTest := hb_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFormat<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"formula_format.xlsx"</span> <span style="color: #000000;">&#41;</span> <> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"The file is already open."</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> XLSXFORMAT oFormat <span style="color: #0000ff;">OF</span> oXlsx<br /><br />&nbsp; &nbsp;ADD XLSX ALIGN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DRXLSX_ALIGN_CENTER &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TO</span> oFormat<br />&nbsp; &nbsp;ADD XLSX NUMBER_FORMAT <span style="color: #ff0000;">"yyyy-mm-dd hh.mm.ss.000"</span> <span style="color: #0000ff;">TO</span> oFormat<br /><br />&nbsp; &nbsp;ADD XLSX BOLD <span style="color: #0000ff;">TO</span> oFormat<br />&nbsp; &nbsp;ADD XLSX ITALIC <span style="color: #0000ff;">TO</span> oFormat<br /><br />&nbsp; &nbsp;ADD XLSX BOTTOM <span style="color: #0000ff;">STYLE</span> DRXLSX_BORDER_DOUBLE <span style="color: #0000ff;">TO</span> oFormat<br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">SetColumnSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteDateTime</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, dtTest <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Timestamp + 30"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteFormula</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"=B1+30"</span>, &nbsp;oFormat <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</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> MakeDbf2Xls<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><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;USE INVOICES <span style="color: #00C800;">NEW</span><br /><br />&nbsp; &nbsp;Dr_Dbf2Xlsx<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"invoices.xlsx"</span>, .T. <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 - Thanks Mister Rao. - <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --></span><br />&nbsp;</div>[/code:34fe44xn] Regards, saludos.
Announcing DrXlsx 1.0 by Charles Kwon
FONT no funciona? [code=fw:3l2ykpj5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> Hello<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cXlsxFile := <span style="color: #ff0000;">"Test.xlsx"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oXlsx := TDrXlsx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<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;">-28</span> BOLD <span style="color: #B900B9;">// no funciona?</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">CreateFile</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"test.xlsx"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"안녕하세요"</span>,, oFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">WriteString</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Hello World!"</span>,, oFont <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oXlsx:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MsgRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AGUARDE... ABRINDO O PROGRAMA DO EXCEL..."</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Por Favor, Espere Abertura. Pode Demorar."</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> || WinExec<span style="color: #000000;">&#40;</span> ShellExecute<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Open"</span>, cXlsxFile <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:3l2ykpj5] Regards, saludos.
Announcing DrXlsx 1.0 by Charles Kwon
Hola buenos días para todos Acabamos de descargar la nueva distribución de xharbour para Borland 770 y tambien la distribución de borland 770. Al intentar compilar la aplicación, nos sale el siguiente error: [code=fw:34vsga6h]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Embarcadero C++ <span style="color: #000000;">7.70</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1993</span><span style="color: #000000;">-2023</span> Embarcadero Technologies, Inc.<br />C:\Fivedit\R32_menu.c:<br /><span style="color: #000000;">xHarbour</span> <span style="color: #000000;">1.3</span><span style="color: #000000;">.0</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20231104</span><span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">1999</span><span style="color: #000000;">-2023</span>, http:<span style="color: #B900B9;">//www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --></span><br />Compiling <span style="color: #ff0000;">'z:<span style="color: #000000;">\p</span>rg<span style="color: #000000;">\R</span>32_perm.prg'</span>...<br /><br /><span style="color: #000000;">100</span><br /><br /><span style="color: #000000;">200</span><br /><br /><span style="color: #000000;">100</span><br /><br /><span style="color: #000000;">100</span><br /><br /><span style="color: #000000;">100</span><br /><br /><span style="color: #000000;">100</span><br /><br /><span style="color: #000000;">100</span><br /><br /><span style="color: #000000;">200</span><br /><br /><span style="color: #000000;">300</span><br /><br /><span style="color: #000000;">400</span><br /><br /><span style="color: #000000;">500</span><br /><br /><span style="color: #000000;">60</span><br />Turbo Incremental Link <span style="color: #000000;">6.97</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2022</span> Embarcadero Technologies, Inc.<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'__streams'</span> referenced <span style="color: #0000ff;">from</span> C:\DLYMA\DRXLSX\DRXLSX32X_BCC.LIB|drawing<br />Error: <span style="color: #000000;">Unable</span> <span style="color: #0000ff;">to</span> perform link<br />Link Error <br />&nbsp;</div>[/code:34vsga6h]
Announcing DrXlsx 1.0 by Charles Kwon
Can I see the source code of DRXLSX32X_BCC.LIB?
Announcing DrXlsx 1.0 by Charles Kwon
Source code for DrXlsx libraries is not made available.
Announcing DrXlsx 1.0 by Charles Kwon
So, how can I find the cause of the error? Only the author of that lib can do it.
Annoying borders on TSbuttons
Hi everyone; Take a look at the image below. I'd like to get rid of the border around the images. Can someone help? [url=http&#58;//imageshack&#46;us:16jblz0t][img:16jblz0t]http&#58;//img149&#46;imageshack&#46;us/img149/3126/tsbuttonssz7&#46;jpg[/img:16jblz0t][/url:16jblz0t] Reinaldo.
Annoying borders on TSbuttons
Reinaldo, Use the clause TRANSPARENT
Annoying borders on TSbuttons
ops, I just realized you were talking about TSButtons. TSButton should be changed to use FWH TransBmp() function. There is a sample of use in source\classes\bitmap.prg
Annoying borders on TSbuttons
Anotnio; thank you. source\classes\bitmap.prg is the source for the actual class tbitmap. It does not show a sample on how to use it. Please try again, Reinaldo.
Annoying borders on TSbuttons
Reinaldo, From source\classes\bitmap.prg: [code:pjrtgjec] hBmpOld = SelectObject&#40; &#58;&#58;hDC, &#58;&#58;hBitmap &#41; nZeroZeroClr = GetPixel&#40; &#58;&#58;hDC, 0, 0 &#41; SelectObject&#40; &#58;&#58;hDC, hBmpOld &#41; nOldClr = SetBkColor&#40; &#58;&#58;hDC, nRGB&#40; 255, 255, 255 &#41; &#41; TransBmp&#40; &#58;&#58;hBitmap, &#58;&#58;nWidth&#40;&#41;, &#58;&#58;nHeight&#40;&#41;, nZeroZeroClr, &#58;&#58;hDC,; &#58;&#58;nX, &#58;&#58;nY, Super&#58;nWidth&#40;&#41;, Super&#58;nHeight&#40;&#41; &#41; SetBkColor&#40; &#58;&#58;hDC, nOldClr &#41; [/code:pjrtgjec]
Annoying borders on TSbuttons
ohh, I see. Perhaps someone has already patch Tsbutton to work with TRANSPARENT clause? Reinaldo.
Annoying problem with FWPPC - Forms and dialogs
I got into this problem: From a form i call a dialog. Then i close the dialog and go back to the form. For some time it all works fine, but at the 3rd or 4th time (it varies) when i go back to the form, i continue to see the lines and the buttons of the dialog beyond the lines of the form, and the form is so confusing that i have to close the program and open it again to continue the work. I tried to refresh the form but it didn't solve the problem. Did anyone got this problem and solved it? How did you do it? TIA, Joaquim
Annoying problem with FWPPC - Forms and dialogs
Joaquim, Are you using fonts, bitmaps, or other GDI objects ? If so, how are you using them ? Could you post a small and self contained sample that reproduces the problem ? thanks
Annoying problem with FWPPC - Forms and dialogs
Antonio, I send you the full code to your mail box. Many thanks, Joaquim
Annoying problem with FWPPC - Forms and dialogs
Joaquim, Solved. You can not reuse a dialog because its brush gets destroyed when the ACTIVATE DIALOG ends. Everytime you are going to use a dialog you have to do: DEFINE DIALOG oDlg ... ACTIVATE DIALOG oDlg ...
Annoying problem with FWPPC - Forms and dialogs
thank you Antonio. but, as you noticed in the code i send you, i need to populate a combo in the dialog with the contents of a table, it would take a long time if i need to do it every time i call the dialog. Can i replace the dialog with a modal window? Or windows will need to be defined from scratch every time i call them, as on dialogs? Joaquim
Anomalie solved in 904 non reported in 905
Hello Antonio the are some bug solved in 904 in class say.prg e windows.prg <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=18&t=15416&p=80339&hilit=SetWindowText#p80339">viewtopic.php?f=18&t=15416&p=80339&hilit=SetWindowText#p80339</a><!-- l --> Regards Maurizio //------------------------------------------------- TSAY.PRG Please make this change In Class TSay Method Initiate: ... if ::cCaption != nil // don't use Empty() here or blank texts will not show // ::SetText( ::cCaption ) previous code SetWindowText( ::hWnd, cText ) // new else ::cCaption = ::GetText() endif ... //----------------------------------------------- WINDOWS.PRG Instead of: SetWindowText( ::hWnd, cText ) // new it should be: SetWindowText( ::hWnd, ::cCaption ) // new
Anomalie solved in 904 non reported in 905
Maurizio, That change is only needed for Class TSay. It does not seem as we have to modify window.prg We will publish a new FWH 9.05 build with this change in the next minutes, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Anomalie solved in 904 non reported in 905
I can confirm the error in 9.05 If I change SetWindowText( ::hWnd, cText ) for.... SetWindowText( ::hWnd, ::cCaption ) in say.prg the error dissapeared. From Chile Adolfo
Anomalie solved in 904 non reported in 905
Adolfo, If you download 9.05 again, then you get it fixed <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Anomalie solved in 904 non reported in 905
Antonio.. I just downloaded it but, the error is still present. Say.prg has not been changed. Meanwhile I'll use my modified one. From Chile Adolfo
Anomalie solved in 904 non reported in 905
Adolfo, Yes, you are right. My mistake. A modified build will be available in some minutes, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Anomaly with BTNBMP
Hello antonio The button turns black when I do a double click on it ,with yust one click it works ok . Regards Maurizio //----------------------------------------------------------------------------// // SAMPLE //----------------------------------------------------------------------------// #include "FWCE.ch" Static oBtn Static nC function Main() local oDlg Local nC := 1 DEFINE DIALOG oDlg RESOURCE "test" REDEFINE BTNBMP oBtn ID 103 OF oDlg PROMPT "Color" ACTION Color() oBtn:SetColor( CLR_BLUE ,CLR_HRED) ACTIVATE DIALOG oDlg CENTERED return nil Function Color() IF nC == 1 nC := 2 oBtn:SetColor( CLR_BLUE ,CLR_YELLOW) ELSE oBtn:SetColor( CLR_BLUE ,CLR_HRED) nC := 1 ENDIF Return nil //====================================== //----------------------------------------------------------------------------// // RC FILE //----------------------------------------------------------------------------// #ifdef _CE #include "c:\vce\include\arm\windows.h" #include "c:\vce\include\arm\commctrl.h" #endif test DIALOG 10, 35, 139, 89 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU CAPTION "DialogBox Test" FONT 8, "system" { PUSHBUTTON "Test", 103, 89, 12, 37, 29 }
Anomaly with BTNBMP
Maurizio, Instead of: [code:d49zyfh7] PUSHBUTTON "Test", 103, 89, 12, 37, 29 [/code:d49zyfh7] You should use [code:d49zyfh7] CONTROL "", 103, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER, 89, 12, 37, 29 [/code:d49zyfh7]
Anomaly in TxBrowse Multiselect
If I use a TxBrowse in Multiselect mode, upon startup it starts with the 1st record already selected. Is there any way to start with no registers selected (that is with Len(aSelected)= 0)To see what I mean, go to \Samples\testxbrw.prg and modify line 486 as follows:[code:3pxtxemn] ACTIVATE WINDOW oChild ON INIT &#40;oBrw&#58;SetFocus&#40;&#41; ,; MsgInfo&#40;Str&#40;Len&#40;oBrw&#58;aSelected&#41;&#41;&#41;&#41; [/code:3pxtxemn]Any suggestion?Rafael FWH 8.05 + Harbour
Anomaly in TxBrowse Multiselect
That has been the behaviour of xbrowse from the very biginning of this class.
Anomaly in TxBrowse Multiselect
NageswaraRao:I may be wrong, but I'd say that in older FWH versions, TxBrowse started with no records selected.True, if you clicked any record, then you got stuck with at least one record selected. No way to deselect all, unless you used the SelectNone() method. In my previous version of one of my programs, I used TxBrowse to select the records to print: You clicked the first and the last one and that was it. If you didn't click any, by default, then the whole table was printed. Whith FWH8.5 this behaviour seems to have changed.Rafael
Anomaly of FTP:directory()
Hello The first time with FTP:Directory() I have the correct list of the files (1).After if I delete or I send a file the FTP:Directory return always the same list of files (1) . I try to close and reopen the connection but the list is the same . I resolve the problem if I close and reopen the programm .Regards MAurizio
Anomaly of FTP:directory()
For Antonio I solve adding this in the method Directory()#define INTERNET_FLAG_RESYNCHRONIZE 0x00000800 hFTPDir = FtpFindFirstFile( ::hFTP, cMask, @cBuffer, INTERNET_FLAG_RESYNCHRONIZE, 0 ) Regards MAurizio
Anomalía en multiselect con TxBrowse
Si utilizo un TxBrowse en modo Multiselect, al arrancar ya da por seleccionado el primer registro. ¿Hay forma de que arranque sin seleccionar ningun registro (o sea, con Len(aSelected) = 0?Para ver a qué me refiero, en \Samples\testxbrw.prg modificar la linea 486 así: [code:2xw0izu7] ACTIVATE WINDOW oChild ON INIT &#40;oBrw&#58;SetFocus&#40;&#41; ,; MsgInfo&#40;Str&#40;Len&#40;oBrw&#58;aSelected&#41;&#41;&#41;&#41; [/code:2xw0izu7]Al arrancar el ejemplo en MultiSelect Browse, ya empieza con Len(aSelected) = 1RafaelFWH 8.05 + Harbour
Anonio...una pregunta....
Hola a todos en el foro, Una pequeña inquietud es relacionda a Fivelinux, esta listo para desarrollar o migrar aplicaciones windows de fw/fwh, si es asi, que tan dramatico es el salto a esa plataforma, Gracias por las sugerencias Ramon Paredes Managua, Nicaragua
Anonio...una pregunta....
Ramón, FiveLinux te permite desarrollar una aplicación para Linux usando la típica sintaxis de FiveWin, pero hoy por hoy no ofrece toda la funcionalidad de FiveWin, por lo que no se puede "portar" una aplicación completa de FiveWin tal como está.
Anonio...una pregunta....
Antonio, Gracias por tu contesatcion segun te entiendo, si puedo desarrollar mi aplicacion en fivelinux con sintaxis fivewin aunque no puedo recompilar el codigo fwh y migrarlo tan literal como de fw16 a fwh. Pregunto, que parte de la programacion tocaria que redefinir o replantear , browses ?, menues, dialogos ? reportes ? quisiera una breve orientacion al respecto, Gracias, Ramon Antonio Paredes Managua, Nicaragua
Anonio...una pregunta....
Ramón, > Gracias por tu contestacion segun te entiendo, si puedo desarrollar mi aplicacion en fivelinux con sintaxis fivewin aunque no puedo recompilar el codigo fwh y migrarlo tan literal como de fw16 a fwh. > Si, así es > Pregunto, que parte de la programacion tocaria que redefinir o replantear , browses ?, menues, dialogos ? reportes ? quisiera una breve orientacion al respecto, > Imagina que estuvieses usando una versión de FiveWin 1.x, no la actual muchísimo más completa
Anonio...una pregunta....
Antonio, Gracias, esperare mejores tiempos de fivelinux Ramon Paredes
Anonio...una pregunta....
Por lo que entiendo, esos mejores tiempos no vendran, salvo que realmente haya usuarios interesados en usar y evolucionar FiveLinux. Presupongo la disponibilidad de Fivetech para evolucionar FiveLinux, pero partiendo de un interes real de los usuarios. Yo ahora mismo no tengo licenccia de Fivelinux, pero tengo pensado en un futuro no muy lejano el probar de hacer algo.
Anonio...una pregunta....
Biel, Lo has entendido perfectamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Anonio...una pregunta....
Precisamente acabo de escribir un post al respecto en mi blog Y ahi explico un poco de que va el tema Linux y porqué Borland abandonó el Kylix.
Another ADS issue
Hello to all, I am testing the FWH9.06 + xH from this distribution ADS Local 9.1 When I use temporary table, per example: [code=fw:22hks1yg]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">SELECT</span> clients.*, <span style="color: #000000;">0.0</span> as salary INTO #temp <span style="color: #0000ff;">FROM</span> clients</div>[/code:22hks1yg] with previus version of RDD, like ADS 7.1 was possible to modify the salary column like (alias) -> salary := <value> but with the last version this is not more possible I obtain a write error message. I think this is a bug in the RDD, do you have the same problem? Regards Marcelo
Another ADS issue
Marcelo, What error is it ?
Another ADS issue
[quote="Marcelo Via Giglio":cbf47yc1]Hello to all, I am testing the FWH9.06 + xH from this distribution ADS Local 9.1 When I use temporary table, per example: [code=fw:cbf47yc1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">SELECT</span> clients.*, <span style="color: #000000;">0.0</span> as salary INTO #temp <span style="color: #0000ff;">FROM</span> clients</div>[/code:cbf47yc1] with previus version of RDD, like ADS 7.1 was possible to modify the salary column like (alias) -> salary := <value> but with the last version this is not more possible I obtain a write error message. I think this is a bug in the RDD, do you have the same problem? Regards Marcelo[/quote:cbf47yc1] Sir, I used xHB 1.21 + FWH 9.01 + ( ADS9.1 and/or ADS8.1 ) with your concern: [code=fw:cbf47yc1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />                dbSelectArea<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />                cSQL := <span style="color: #ff0000;">'select RRefDef.*, 0.0 as salary INTO #temp from RRefDef'</span><br /><br />                <span style="color: #00C800;">IF</span> AdsCreateSQLStatement<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'temp'</span>, ADS_CDX, hADS <span style="color: #000000;">&#41;</span><br /><br />                   <span style="color: #00C800;">IF</span> ADSExecuteSQLDirect<span style="color: #000000;">&#40;</span> cSQL <span style="color: #000000;">&#41;</span><br />                      temp->salary := <span style="color: #000000;">1.1</span><br />                      <span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'temp'</span>, AdsVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br />                   <span style="color: #00C800;">ELSE</span><br />                      MsgAlert<span style="color: #000000;">&#40;</span>cSQL,<span style="color: #ff0000;">'Unable to Execute SQL Statement - SQL Temp Alias'</span><span style="color: #000000;">&#41;</span><br />                   END<br /><br />                <span style="color: #00C800;">ELSE</span><br />                   MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Unable to Create SQL Statement'</span>, <span style="color: #ff0000;">'SQL Temp Alias'</span><span style="color: #000000;">&#41;</span><br />                END<br /> </div>[/code:cbf47yc1] The above works well on both LOCAL/SERVER. Regards, -Frances
Another ADS issue
Antonio, thanks for your attention, this was a rare behavior that I found when I tryed to use the last RDDADS and temporary tables Fraxzi OK, thanks for your test, this mean that I have hope, because I exposed the same question in the xharbour's google group and they didn't have an logical answer for this issue I will try again with xH 1.21 + ADS 9.1, I will post the results here thanks again For me, work with ADS LOCAL is really usefull I don't know why other user don't use it, you can: use sql (the best) transparent crypt tables ricth data type (graphics, money, etc) Advanced and fast filter Client/server (BUT YES this is expensive) use PHP, PERL, CLIPXNET........ with ADS server ....... ...... ALL this with ADT or DBFCDX files best regards Marcelo
Another ADS issue
[quote="Marcelo Via Giglio":3a9907a7]Antonio, thanks for your attention, this was a rare behavior that I found when I tryed to use the last RDDADS and temporary tables Fraxzi OK, thanks for your test, this mean that I have hope, because I exposed the same question in the xharbour's google group and they didn't have an logical answer for this issue I will try again with xH 1.21 + ADS 9.1, I will post the results here thanks again For me, work with ADS LOCAL is really usefull I don't know why other user don't use it, you can: use sql (the best) transparent crypt tables ricth data type (graphics, money, etc) Advanced and fast filter Client/server (BUT YES this is expensive) use PHP, PERL, CLIPXNET........ with ADS server ....... ...... ALL this with ADT or DBFCDX files best regards Marcelo[/quote:3a9907a7] I agree. ADS LOCAL (or server) is the best. But this is an individual preference <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> It's so easy to port from client to server application using ADS. Best regards, -Frances
Another ADS issue
I have my own version of that ADS issue... <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> There's no record on my created temp table when I xbrowse it.. no error. all successful execution. Anyone sharing idea? <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> [code=fw:18jixl18]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp;...<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cSQL := <span style="color: #ff0000;">"CREATE TABLE #TEMP ( [FName] CHAR(50) ); "</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"INSERT INTO #TEMP VALUES ('Antonio Linares'); "</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> AdsCreateSQLStatement<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'temp'</span>, ADS_CDX, hADSSERVER <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ADSExecuteSQLDirect<span style="color: #000000;">&#40;</span> cSQL <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'temp'</span>, <span style="color: #ff0000;">'ADS v'</span>+AdsVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgAlert<span style="color: #000000;">&#40;</span>cSQL,<span style="color: #ff0000;">'Unable to Execute SQL Statement - SQL Temp Alias'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Unable to Create SQL Statement'</span>, <span style="color: #ff0000;">'SQL Temp Alias'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;...<br />&nbsp;</div>[/code:18jixl18] Regards
Another ADS issue
[quote="fraxzi":1y5udo4y]I have my own version of that ADS issue... <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> There's no record on my created temp table when I xbrowse it.. no error. all successful execution. Anyone sharing idea? <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> [code=fw:1y5udo4y]<div class="fw" id="{CB}" style="font-family: monospace;"><br />       ...<br />                cSQL := <span style="color: #ff0000;">"CREATE TABLE #TEMP ( [FName] CHAR(50) ); "</span>+;<br />                            <span style="color: #ff0000;">"INSERT INTO #TEMP VALUES ('Antonio Linares'); "</span><br /><br />                <span style="color: #00C800;">IF</span> AdsCreateSQLStatement<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'temp'</span>, ADS_CDX, hADSSERVER <span style="color: #000000;">&#41;</span><br /><br />                   <span style="color: #00C800;">IF</span> ADSExecuteSQLDirect<span style="color: #000000;">&#40;</span> cSQL <span style="color: #000000;">&#41;</span><br />                      <span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'temp'</span>, <span style="color: #ff0000;">'ADS v'</span>+AdsVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br />                   <span style="color: #00C800;">ELSE</span><br /><br />                      MsgAlert<span style="color: #000000;">&#40;</span>cSQL,<span style="color: #ff0000;">'Unable to Execute SQL Statement - SQL Temp Alias'</span><span style="color: #000000;">&#41;</span><br />                   END<br /><br />                <span style="color: #00C800;">ELSE</span><br /><br />                   MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Unable to Create SQL Statement'</span>, <span style="color: #ff0000;">'SQL Temp Alias'</span><span style="color: #000000;">&#41;</span><br />                END<br />   ...<br /> </div>[/code:1y5udo4y] Regards[/quote:1y5udo4y] [b:1y5udo4y]Got IT!!![/b:1y5udo4y] Just added this: [code=fw:1y5udo4y]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> cSQL := <span style="color: #ff0000;">"CREATE TABLE #TEMP ( [FName] CHAR(50) ); "</span>+;<br />         <span style="color: #ff0000;">"INSERT INTO #TEMP VALUES ('Antonio Linares'); "</span>+;<br />         <span style="color: #ff0000;">"SELECT * from #TEMP"</span><br /> </div>[/code:1y5udo4y] <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Regards!
Another ADS issue
Hello, I solved the problem, I need to create the SQL like: [code=fw:1aey058i]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">SELECT</span> *, <span style="color: #000000;">0000000.00</span> AS salary <span style="color: #0000ff;">FROM</span> clients</div>[/code:1aey058i] we need to define the data size to use it, before with ADS 7.1 I used the ROUND function to create a float poit value but but ADS 9.1 this is not more possible, this new way is compatible with ADS 7.1 and 9.1 Regards and thanks for your time Marcelo
Another BUG in Xbrowse
Hello, when we have defined a xBrowse's column with the option lAutoSave := .T., if we are editing the column and change to other control in the dialog without press enter, the value doesn't save if the control that win the focus is a GET, with other controls like button o combobox the value is saved. best regards Marcelo Via
Another BUG in Xbrowse
Marcelo, Rao, our great XBrowse master, surely will provide you the right solution <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Another Excel-question
Hello, How can I define a tabstop in a Word document in my FWH-application? Thank you.
Another Excel-question
[code=fw:s6xt887q]<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> wdDoNotSaveChanges                      <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//Tab Alignment</span><br /><span style="color: #00D7D7;">#define</span> wdAlignTabBar               <span style="color: #000000;">4</span>   <span style="color: #B900B9;">//Bar</span><br /><span style="color: #00D7D7;">#define</span> wdAlignTabCenter            <span style="color: #000000;">1</span>   <span style="color: #B900B9;">//Center</span><br /><span style="color: #00D7D7;">#define</span> wdAlignTabDecimal           <span style="color: #000000;">3</span>   <span style="color: #B900B9;">//Decimal</span><br /><span style="color: #00D7D7;">#define</span> wdAlignTabLeft              <span style="color: #000000;">0</span>   <span style="color: #B900B9;">//Left</span><br /><span style="color: #00D7D7;">#define</span> wdAlignTabList              <span style="color: #000000;">6</span>   <span style="color: #B900B9;">//List</span><br /><span style="color: #00D7D7;">#define</span> wdAlignTabRight             <span style="color: #000000;">2</span>   <span style="color: #B900B9;">//Right</span><br /><br /><span style="color: #B900B9;">//Tab Leader</span><br /><span style="color: #00D7D7;">#define</span> wdTabLeaderDashes           <span style="color: #000000;">2</span>   <span style="color: #B900B9;">//Dashes</span><br /><span style="color: #00D7D7;">#define</span> wdTabLeaderDots             <span style="color: #000000;">1</span>   <span style="color: #B900B9;">//Dots</span><br /><span style="color: #00D7D7;">#define</span> wdTabLeaderHeavy            <span style="color: #000000;">4</span>   <span style="color: #B900B9;">//A heavy line</span><br /><span style="color: #00D7D7;">#define</span> wdTabLeaderLines            <span style="color: #000000;">3</span>   <span style="color: #B900B9;">//Double lines</span><br /><span style="color: #00D7D7;">#define</span> wdTabLeaderMiddleDot        <span style="color: #000000;">5</span>   <span style="color: #B900B9;">//A middle dot</span><br /><span style="color: #00D7D7;">#define</span> wdTabLeaderSpaces           <span style="color: #000000;">0</span>   <span style="color: #B900B9;">//Spaces default</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">LOCAL</span>   oWord, oDoc, oSelection<br /><br />        <span style="color: #00C800;">TRY</span><br />                oWord := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Word.Application"</span> <span style="color: #000000;">&#41;</span><br />        CATCH<br />                oWord := <span style="color: #00C800;">NIL</span><br />        END<br /><br />        <span style="color: #00C800;">IF</span> oWord <> <span style="color: #00C800;">NIL</span><br />                oDoc := oWord:<span style="color: #000000;">Documents</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />                oWord:<span style="color: #000000;">Visible</span> := .T.<br /><br />                oSelection := oWord:<span style="color: #000000;">Selection</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />                oSelection:<span style="color: #000000;">TypeText</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"This is my text in Word!"</span> <span style="color: #000000;">&#41;</span><br /><br />                <span style="color: #B900B9;">//delete tabs</span><br />                <span style="color: #B900B9;">//Selection.ParagraphFormat.TabStops.ClearAll</span><br />                oSelection:<span style="color: #000000;">ParagraphFormat</span>:<span style="color: #000000;">TabStops</span>:<span style="color: #000000;">ClearAll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                <br />                <span style="color: #B900B9;">//make tabs</span><br />                <span style="color: #B900B9;">//oSelection:ParagraphFormat:TabStops:Add(Position in Points, Alignment, Leader)</span><br />                oSelection:<span style="color: #000000;">ParagraphFormat</span>:<span style="color: #000000;">TabStops</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">100</span>, wdAlignTabLeft, wdTabLeaderSpaces<span style="color: #000000;">&#41;</span><br />                oSelection:<span style="color: #000000;">ParagraphFormat</span>:<span style="color: #000000;">TabStops</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">200</span>, wdAlignTabRight, wdTabLeaderSpaces<span style="color: #000000;">&#41;</span><br />                oSelection:<span style="color: #000000;">ParagraphFormat</span>:<span style="color: #000000;">TabStops</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">300</span>, wdAlignTabDecimal, wdTabLeaderSpaces<span style="color: #000000;">&#41;</span><br /><br /><br />                <span style="color: #B900B9;">//oWord:Visible := .F.</span><br /><br />                <span style="color: #B900B9;">//oDoc:Close( wdDoNotSaveChanges )</span><br /><br />                <span style="color: #B900B9;">//oWord:Quit()</span><br /><br />        <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:s6xt887q]
Another Excel-question
Thank you very much.
Another For Xbrowse Tree: Mr Rao and Linares
Whith the Big Help of Mr Rao I made a little test to showa tree into xbrowse where each level have a different images the test showed many labotaories of my school and for each laboratory you can show the component sample : computer,printers,mouse.. Now the problem is this : if I have many categories how I can make it ? I must rewrite the function when I have a new component ? I thinked to create an extern dbf to insert all categories and his bitmaps and the show all into the xbrowse tree. To resolve the problem I made a dbf ( table.dbf with 4 field : code, cvetab,descri, image) and the I create two array from this archive : [b:3619j2ka]aItems[/b:3619j2ka] where I insert all names [b:3619j2ka]ahardBmp[/b:3619j2ka] where I insert all images USE TABLE ALIAS TABLE INDEX ON TABLE->CODE TO CODETABLE TABLE->(DbSeek("H")) DO WHILE TABLE->CveTab="H" .AND. !TABLE->(EoF()) AAdd(aItems,TRIM(TABLE->DESCRI)) AAdd(ahardBmp,TABLE->Bitmap) TABLE->(DbSkip()) ENDDO TABLE->(DbCloseArea()) I try with this code but it not run ok [code=fw:3619j2ka]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><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> oWnd, oBrw ,oBold<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> ahardBmp:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp;<span style="color: #00C800;">local</span> aItems &nbsp;:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp;USE TABLE <span style="color: #0000ff;">ALIAS</span> TABLE<br />&nbsp; &nbsp;<span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> TABLE->CODE <span style="color: #0000ff;">TO</span> CODETABLE<br />&nbsp; &nbsp;TABLE-><span style="color: #000000;">&#40;</span>DbSeek<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"H"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> TABLE->CveTab=<span style="color: #ff0000;">"H"</span> .AND. !TABLE-><span style="color: #000000;">&#40;</span>EoF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span>aItems,TRIM<span style="color: #000000;">&#40;</span>TABLE->DESCRI<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span>ahardBmp,TABLE->Bitmap<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;TABLE-><span style="color: #000000;">&#40;</span>DbSkip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDDO</span><br />&nbsp; &nbsp; &nbsp;TABLE-><span style="color: #000000;">&#40;</span>DbCloseArea<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br /><br /><br />&nbsp; USE HARDWARE<br />&nbsp; &nbsp;<span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Field->LABORATORY <span style="color: #0000ff;">TO</span> LABS<br />&nbsp; &nbsp;SET ORDER <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"LABS"</span><br />&nbsp; &nbsp;GO TOP<br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"SAMPLE DBF shown as a tree with XBrowse width images"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd LINES CELL<br /><br /><br />&nbsp;oBrw:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> BuildTree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"TREE_LAB"</span>, <span style="color: #ff0000;">"TREE_AULE"</span>, <span style="color: #ff0000;">'TREE_HARD'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp;WITH OBJECT &nbsp;oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br /><br /><br />&nbsp; AEval<span style="color: #000000;">&#40;</span>ahardBmp, <span style="color: #000000;">&#123;</span> |cBmpFile| <span style="color: #000000;">&#40;</span>oCol:<span style="color: #000000;">AddBmpFile</span><span style="color: #000000;">&#40;</span>cBmpFile<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span> || &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> &nbsp;oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">oTree</span> == <span style="color: #00C800;">nil</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AScan<span style="color: #000000;">&#40;</span> aItems, Trim<span style="color: #000000;">&#40;</span> &nbsp;oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">2</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">lOpened</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br /><br />&nbsp; &nbsp;END<br /><br />&nbsp;ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">Cargo</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> HEADER <span style="color: #ff0000;">"MARCA"</span><br />&nbsp; &nbsp;ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">Cargo</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> HEADER <span style="color: #ff0000;">"MODELLO"</span><br />&nbsp; &nbsp;ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">Cargo</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> HEADER <span style="color: #ff0000;">"NUM INVENTARIO"</span><br /><br /><br />&nbsp;oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span> = <span style="color: #ff0000;">"LABORATORY &nbsp; &nbsp; HARDWARE TYPE"</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oClient</span> = oBrw<br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> BuildTree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTree, cState<br /><br />&nbsp; &nbsp;TREE oTree<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">while</span> ! Eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _TreeItem<span style="color: #000000;">&#40;</span> HARDWARE->LABORATORY <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">&#123;</span> Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span>, Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span>, Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TREE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cState = HARDWARE->LABORATORY<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> cState != HARDWARE->LABORATORY<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ENDTREE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cState = HARDWARE->LABORATORY<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_TreeItem<span style="color: #000000;">&#40;</span> HARDWARE->LABORATORY <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">&#123;</span> Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span>, Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span>, Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> HARDWARE->LABORATORY == cState<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _TreeItem<span style="color: #000000;">&#40;</span> HARDWARE->Type <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">&#123;</span> HARDWARE->marca, HARDWARE->modello, HARDWARE->CODICE <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SKIP<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">enddo</span><br />&nbsp; &nbsp; &nbsp; ENDTREE<br />&nbsp; &nbsp;ENDTREE<br /><br />&nbsp; &nbsp;GO TOP<br /><br /><span style="color: #00C800;">return</span> oTree<br /><br />&nbsp;</div>[/code:3619j2ka] It not run ok I t show for all level only TREE_AULE.bmp Someone can Help me please ?
Another For Xbrowse Tree: Mr Rao and Linares
Nages any Idea ?
Another Question about FWH and Word
Hello, How do I disconnect an Add-on in Word by my FWH-applicqation which is active at the moment? Thanks.
Another Question about FWH and Word
Dear Michel, What addon is it ?
Another Question about FWH and Word
An add-on containing macros. It is called macjuda.dot.