topic
stringlengths
1
63
text
stringlengths
1
577k
.net
All these are issues as long as we still stick to our old habits of client-server architecture. Today its all three-tier architecture everywhere, with web enabled applications (intranet or internet). Dot-net is only one of the platforms for 3-tier web enabled applications (it does 2-tier also). There are many other alternatives, In this scenario, it matters little whether the client is pc or mac or linux box. All the client needs is to have a web-browser. Future is only for web enabled 3-tier applications. Many client-orgainsations now a days are not accepting client-server applications though we offer better looking rich gui. All the business logic of the application is coded in the serverside procedures ( procedures. functions and packages ). Any front end ( webenabled or rich windows applications like ours ) only talk to the serverside procedures and provides user interaction only. As a policy, client organisations insist that the front ends do not contain any business logic. As an example, even in a country like India, which is still not a developed country, our state information technology department is advising all state government organisations to move on to 3-tier architecture. Not only that, they further advise all inter-modular and inter-corporate communications to be through web-services (SOAP) only. All major software development in our country now is on 3-tier architecture only. All major software comapanies stopped client server applications, except where a client asks for it for some legacy reasons. Now the client-server development is only done by small developers for small customers. Mr. Antonio, in his great wisdom did make an effort to develop a .Net version of Harbour. True we did not encourage him. May be dot.net may not be the only way we keep a great language like Harbour useful for future. If there is some way Harbour can be made to play a role in three tier architecture. Some thoughts: After we design the screens or forms, why cant FWH generate generate an asp page ( or set of asp pages) to show the same screens on webbrowser (also using azax) ? Possible we can give better interface than other tools available. No present tool in the world can beat the way we show browses. Can we not do that in the new environment? I am not talking about something like xbscript. Even with that gui on web-browser is still to be developed by us. if we can use xbscript we can as well use vbscript. I am sure if a genius like Mr. Antonio turns his mind in this direction, we can proudly develop 3-tier applications with better user interface than others. I am yet to see cule and the other mentioned above. I am interested in looking at them. We need to catch up with the present day developments. Humbly yours Nageswara Rao
.net
Hello Rick, I think all the different versions of Netframework are in different folders and if you build an application you setup a specific Framework version? Your application is not touched if a user makes an update. Regards, Otto
.net
Otto I do realize that .. I just hate having to deal with the infrastructure and making sure all the desktops have the correct framework installed. To be quite honest with you .. I have chosen the ADO route with my applications placing the data on a MS Sql server... Ado is supported 'naitively' on every Windows OS since at least Win98 .. no clients to install, no run-times .. just create your single executable and prev32.dll and copy it out to each local lan .. and it just works !! Just my 2 cents worth Rick Lipkin SC Dept of Health, USA
.obj to .exe
Hello, I want to make a HelloWorld application with an .exe, I have managed to compile a test.prg -> test.ppo -> test.c -> test.obj The code of test.prg is [code=fw:6w5jhjs7]<div class="fw" id="{CB}" style="font-family: monospace;"><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> oIE := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Shell.Explorer"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Hello world!"</span> <span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:6w5jhjs7] Maybe someone can help me.
.obj to .exe
Hello, Use c:\fwh\samples\buildh test.prg
.obj to .exe
Hi lucasdebeltran, Thanks for this information. Indeed I can use buildh.
.pdf to .tif?
Hello everyone. I need to convert some .pdfs into .tifs. Can we do this using fwh? Reinaldo.
.pdf to .tif?
Que yo sepa no se puede directamente , un truco puede ser mostrarlo en pantalla y capturarlo ... pongo aquí un código que me funciona aunque la calidad del tif resultante no es muy buena ya que depende de cada resolución y tamaño de pantalla . el asunto este en : function captureWnd( oWnd, cFile, ntop,nleft,nWidht, nHeight ) parametros : 1.- ownd 2.- el nombre de archivo a grabar , puede ser tif,jpg,bmp,png los siguientes parametros son el recorte a realizar en lo capturado ( la ventana ) , top,left,width,height Esta basado en el sample pdf2.prg .... [code=fw:1l19190i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><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> oWnd, oBtn<br /><br />   lShow := .f.<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FiveWin ActiveX Support"</span> ;<br />   <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">5</span>,<span style="color: #000000;">5</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">550</span> <span style="color: #0000ff;">PIXEL</span><br />   <br />   @ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Show PDF"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">ACTION</span> ShowPDF<span style="color: #000000;">&#40;</span> oWnd, oBtn <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> ShowPDF<span style="color: #000000;">&#40;</span> oWnd, oBtn <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oActiveX<br />   <br />  <br />      <br />   oActiveX = TActiveX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"AcroPDF.PDF.1"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Use "AcroPDF.PDF.1" for Acrobat Reader 7 </span><br /><br />   oWnd:<span style="color: #000000;">oClient</span> = oActiveX <span style="color: #B900B9;">// To fill the entire window surface</span><br /><br />   oActiveX&#<span style="color: #000000;">058</span>;Do<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"LoadFile"</span>, <span style="color: #ff0000;">"normal.pdf"</span> <span style="color: #000000;">&#41;</span><br />   oActiveX&#<span style="color: #000000;">058</span>;Do<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SetCurrentPage"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   oActiveX&#<span style="color: #000000;">058</span>;Do<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"setShowToolbar"</span>, <span style="color: #000000;">0</span>  <span style="color: #000000;">&#41;</span><br />   oBtn:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oWnd:<span style="color: #000000;">ReSize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">if</span> msgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"capturar?"</span><span style="color: #000000;">&#41;</span><br />      captureWnd<span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"yo.tif"</span>, <span style="color: #000000;">45</span>,<span style="color: #000000;">90</span>, oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">-82</span>, ownd:<span style="color: #000000;">nHeight</span><span style="color: #000000;">-142</span> <span style="color: #000000;">&#41;</span>   <br />   <span style="color: #00C800;">endif</span><br /> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span>   <br /><br /><span style="color: #00C800;">function</span> captureWnd<span style="color: #000000;">&#40;</span> oWnd, cFile, ntop,nleft,nWidth, nHeight <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oImage:= GDIBmp<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 />     oImage:<span style="color: #000000;">hbmp</span>:=GDIPLUSCAPTURERECTWND<span style="color: #000000;">&#40;</span>ownd:<span style="color: #000000;">hWnd</span>, nTop,nLeft,nWidth,nHeight <span style="color: #000000;">&#41;</span>    <br />     oImage:<span style="color: #000000;">save</span><span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /> </div>[/code:1l19190i] en el archivo gdiplus.cpp añadir .... [code=fw:1l19190i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GDIPLUSCAPTURERECTWND <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />  <br />   HWND hWnd = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>  ;<br />   int nTop  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   int nLeft = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   int nWidth  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />   int nHeight = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />   <br />   HDC hWndDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   HDC hCaptureDC = CreateCompatibleDC<span style="color: #000000;">&#40;</span> hWndDC <span style="color: #000000;">&#41;</span>;<br />   RECT rcClient;<br />   GetClientRect<span style="color: #000000;">&#40;</span>hWnd, &rcClient<span style="color: #000000;">&#41;</span>;<br />   HBITMAP hCaptureBitmap = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hWndDC, rcClient.right-rcClient.<span style="color: #0000ff;">left</span>, rcClient.bottom-rcClient.top <span style="color: #000000;">&#41;</span>;<br /><br />   SelectObject<span style="color: #000000;">&#40;</span> hCaptureDC, hCaptureBitmap <span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span> hCaptureDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rcClient.right-rcClient.<span style="color: #0000ff;">left</span>, rcClient.bottom-rcClient.top,<br />           hWndDC,<span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY | CAPTUREBLT <span style="color: #000000;">&#41;</span>;<br /><br />   Bitmap * original =  <span style="color: #00C800;">new</span> Bitmap<span style="color: #000000;">&#40;</span> hCaptureBitmap, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hWndDC <span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span> hCaptureDC <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hCaptureBitmap <span style="color: #000000;">&#41;</span>;<br /><br />   Bitmap* newImage  = <span style="color: #00C800;">new</span> Bitmap<span style="color: #000000;">&#40;</span> nWidth, nHeight<span style="color: #000000;">&#41;</span>;<br /><br />   Graphics * graphics = <span style="color: #00C800;">new</span> Graphics<span style="color: #000000;">&#40;</span> newImage <span style="color: #000000;">&#41;</span>;<br />     <br />   Rect destino <span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> , <span style="color: #000000;">0</span> , nWidth, nHeight <span style="color: #000000;">&#41;</span>;  <br />   graphics->DrawImage<span style="color: #000000;">&#40;</span> original, destino , nTop , nLeft , nWidth, nHeight, UnitPixel <span style="color: #000000;">&#41;</span>;<br /><br />   delete graphics ;<br />   delete original ;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HB_LONG <span style="color: #000000;">&#41;</span> newImage <span style="color: #000000;">&#41;</span>;     <br />     <br /><span style="color: #000000;">&#125;</span><br /><br /> </div>[/code:1l19190i]
.pdf to .tif?
Reinaldo, I've used Ghostsccript to do this at a few client sites. You just have to make sure to use the EXE and not the Ghostscript source code in order not to step into the GPL licensing requirements. Using the EXE and performing a ShellExecute will give you great results. For example: <!-- m --><a class="postlink" href="http://drakedwornik.com/2013/02/05/simple-ghostscript-commands-pdf-to-tiff/">http://drakedwornik.com/2013/02/05/simp ... f-to-tiff/</a><!-- m --> You can automate the whole process by creating a windows service that monitors PDF files as they are dropped in a folder where the service invokes Ghostscript via a batch file with the proper commands where the resulting TIFF/JPGs can then be output to another folder that you application can watch for files as they are created. Rene.
.pdf to .tif?
Mastintín; Muchas gracias por esta respuesta. Saludos. Reinaldo.
.pdf to .tif?
Rene; That's exactly what I was looking for. Thank you very much for sharing this solution. Reinaldo.
.pdf to .tif?
No worries - here's another example - better at that: <!-- m --><a class="postlink" href="http://drakedwornik.com/2013/03/06/batch-file-to-convert-multiple-pdf-to-tiff-on-windows/">http://drakedwornik.com/2013/03/06/batc ... n-windows/</a><!-- m -->
.res error al abrir con pellesC
Amigos, Cuando quiero abrir un .res con el pellesC el cual lo he usado para crear dicho .res me sale un error: [quote:2pk0oul9]Error al leer desde el archivo [xx].res. Formato del archivo no valido o inválido.[/quote:2pk0oul9] Alguna idea? gracias.
.res error al abrir con pellesC
[quote="goosfancito":2ksgsa1y]Amigos, Cuando quiero abrir un .res con el pellesC el cual lo he usado para crear dicho .res me sale un error: [quote:2ksgsa1y]Error al leer desde el archivo [xx].res. Formato del archivo no valido o inválido.[/quote:2ksgsa1y] Alguna idea? gracias.[/quote:2ksgsa1y] No entendi, sorry
.res error al abrir con pellesC
Amigo, El tema es asi, hasta el dia de ayer podía abrir mi archivo .res con el pellesC sin ningun problema, ya es la 2º vez que me pasa, pero la anterior tenia hecha una copia backup ( malo lo mio, ahora no la tengo ). Cuando quiero edicar mi archivo .res con el pelles me manda el error: [quote:7izu9eel]Error al leer desde el archivo [xx].res. Formato del archivo no valido o inválido.[/quote:7izu9eel] Siendo xx el archivo: por ejemplo goosfancito.res Quería saber porque se produce estoy como resolverlo, ya que al no poder acceder al .res no puedo ni siquiera convertirlo a .rc para editarlo manualmente. Gracias.
.res error al abrir con pellesC
Esto es sumamente extraño, hasta dondde yo sabia los .RES era muy difícil que se corrompieran, dime has intentado abrir ese .RES con el workshop??? o con el Visual C++ 6.0 ??? Si no tienes el visual c++ 6.0 contáctame por messenger. Saludos jcso @ hotmail.com
/ i zi pi zi / report is environmentally friendly
Hello friends, The HTML reports designer is a very modern designer. Best regards, Otto [img:3gz6moul]https&#58;//mybergland&#46;com/fwforum/printgreen&#46;jpg[/img:3gz6moul] [img:3gz6moul]https&#58;//mybergland&#46;com/fwforum/greenslogan&#46;jpg[/img:3gz6moul]
/ i zi pi zi / report is environmentally friendly
this izi pzi will have the same fate as the austria team against holland I am a joker
/ i zi pi zi / report is environmentally friendly
Hello Silvio, I did a quick test of how I can print rankings easily with / i zi pi zi /. The report also works if your team has lost. It works. Best regards, Otto [img:2mpirxxi]https&#58;//mybergland&#46;com/fwforum/emtabelle&#46;jpg[/img:2mpirxxi]
/ i zi pi zi / report is environmentally friendly
Silvio, As you like nice formated reports I added a: ALIGN = CENTER Best regards, Otto [img:1nuo9srh]https&#58;//mybergland&#46;com/fwforum/webbrowsercontrol2&#46;jpg[/img:1nuo9srh]
/ i zi pi zi / report is environmentally friendly
Otto, your team losed not mine !!! [img:3l4o0qwp]https&#58;//i&#46;postimg&#46;cc/HLVnThTn/gg&#46;png[/img:3l4o0qwp]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
[img:sh43yl6q]https&#58;//mybergland&#46;com/fwforum/easypeasyklein&#46;jpg[/img:sh43yl6q] A catchy project name and an appealing logo are not pure luxury but a helpful marketing tool. /??z??p??z?/ easy-peasy | adjective | British informal [b:sh43yl6q]very easy; presenting no difficulty at all [/b:sh43yl6q] The reports are [b:sh43yl6q]easy-peasy[/b:sh43yl6q] to make. You can use any HTML editor or WYSIWYG HTML editor - for example WORD - to create [b:sh43yl6q]/??z??p??z?/ [/b:sh43yl6q]reports. [b:sh43yl6q]/??z??p??z?/[/b:sh43yl6q] report definition files are HTML files. [b:sh43yl6q]/??z??p??z?/[/b:sh43yl6q] report works with with Fivewin and mod harbour.
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
[img:21xp61xq]https&#58;//mybergland&#46;com/fwforum/easypeasyklein&#46;jpg[/img:21xp61xq] A catchy project name and an appealing logo are not pure luxury but a helpful marketing tool. /??z??p??z?/ easy-peasy | adjective | British informal [b:21xp61xq]very easy; presenting no difficulty at all [/b:21xp61xq] The reports are [b:21xp61xq]easy-peasy[/b:21xp61xq] to make. You can use any HTML editor or WYSIWYG HTML editor - for example WORD - to create [b:21xp61xq]/??z??p??z?/ [/b:21xp61xq]reports. [b:21xp61xq]/??z??p??z?/[/b:21xp61xq] report definition files are HTML files. [b:21xp61xq]/??z??p??z?/[/b:21xp61xq] report works with with Fivewin and mod harbour.
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Word for designing [img:39nx86c1]https&#58;//mybergland&#46;com/fwforum/izipizi/word4reportdesign&#46;jpg[/img:39nx86c1] source code [img:39nx86c1]https&#58;//mybergland&#46;com/fwforum/izipizi/headerfwcode&#46;jpg[/img:39nx86c1] preview [img:39nx86c1]https&#58;//mybergland&#46;com/fwforum/izipizi/headerpreview&#46;jpg[/img:39nx86c1]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Word for designing [img:2aumy77l]https&#58;//mybergland&#46;com/fwforum/izipizi/word4reportdesign&#46;jpg[/img:2aumy77l] source code [img:2aumy77l]https&#58;//mybergland&#46;com/fwforum/izipizi/headerfwcode&#46;jpg[/img:2aumy77l] preview [img:2aumy77l]https&#58;//mybergland&#46;com/fwforum/izipizi/headerpreview&#46;jpg[/img:2aumy77l]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
table header - table is autosizeing [img:11p551ec]https&#58;//mybergland&#46;com/fwforum/izipizi/tableheader&#46;jpg[/img:11p551ec] Here I add some styles cHtml += memoread(".\tagesGaesteListe\tablestyle.html") [img:11p551ec]https&#58;//mybergland&#46;com/fwforum/izipizi/tablestyleshield&#46;jpg[/img:11p551ec]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
table header - table is autosizeing [img:3sxyxw9r]https&#58;//mybergland&#46;com/fwforum/izipizi/tableheader&#46;jpg[/img:3sxyxw9r] Here I add some styles cHtml += memoread(".\tagesGaesteListe\tablestyle.html") [img:3sxyxw9r]https&#58;//mybergland&#46;com/fwforum/izipizi/tablestyleshield&#46;jpg[/img:3sxyxw9r]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Otto, Is there a option to show HTML code insite a dialog in Fivewin. I haven't looked yet at the forum posts, but for now I only would like to show a dialog or frame with the formatted html code (the result, what we see when it comes online) I generate html code from FW functions (not mod), but I would like to see the result in a frame or dialog
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello Mark, Please see this sample from FWH. C:\FWH\samples\webexp2.prg Best regards, Otto [code=fw:14qtvgd8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Using an ActiveX in a dialog.</span><br /><br /><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> oDlg, oActiveX<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Test"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> ACTIVEX oActiveX <span style="color: #0000ff;">ID</span> <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oDlg PROGID <span style="color: #ff0000;">"Shell.Explorer"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oActiveX&#<span style="color: #000000;">058</span>;nDlgCode = DLGC_WANTALLKEYS<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oActiveX&#<span style="color: #000000;">058</span>;Do<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Navigate2"</span>, <span style="color: #ff0000;">"http://www.google.com"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;</div>[/code:14qtvgd8]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Otto, these show html from internet site and link to it. (This question is also posted on a new function of Mr Rao from yesterday) Can we use this maybe for this purpose ? I want to show the composed html code that sits insite a memo field from a Xbrowse, so when i move in xbrowse , the html should also be repainted. in the dialog on a fixed say control maybe Mostly I found html vieuw options for websites ... screen = xbrowse and a say control. Het html will be mostly small table data that shows some product options. <table class="styled-table"><br><thead><br><tr><br><th>Catalogus</th><br><th>Omschrijving</th><br><th></th><br></tr><br></thead><br><tbody><br><td>De &#39;European Textile Catalogus&#39; Topcatalogus voor promotionele kleding</td><br><td></td><br></tr><br><tr><br><td>De &#39;Textile Europe&#39; top catalogus voor promotionele kleding<br /><br>&nbsp;</td><br><td></td><br></tr><br><tr class="active-row"><br><td>De &#39;Printwear&#39; catalogus.&nbsp; De referentie voor promotionele textiel</td><br><td></td><br></tr><br></tbody><br></table>
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello Mark, I am sure you can do this. But I think you should program it as a mod harbour application that you run in localhost. The / i zi pi zi / report definitely understands your file. I think the <br> you are using will all be pulled together and executed at the top of the table. The table is held together and not interrupted by <br>. Here you see how / i zi pi zi / links in your table into the report. cHtml += memoread(".\tagesGaesteListe\markhtm.html") Best regards, Otto [img:129qivic]https&#58;//mybergland&#46;com/fwforum/izipizi/markreport&#46;jpg[/img:129qivic]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Very nice!!! Will you share source code or you want money?
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello elvira, Thanks for your kind words. Sure, I'll share my code for free. But give me a few more days. At the moment there is no interest besides you and Cristobal. If it stays that way, I'll give you a private download link. Do you already have experience with HTML and CSS. It is unlikely how easy it is to use[b:rv4yzss8] / i zi pi zi / [/b:rv4yzss8]to create truly professional reports. Best regards, Otto
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
before - afterwards ( EasyReport - / i zi pi zi / Report) [img:3584bksl]https&#58;//mybergland&#46;com/fwforum/izipizi/before_%20afterwards&#46;jpg[/img:3584bksl]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Otto, I'm following this, but so far I don't see enough to know if I can use it. I see the result, but not the tool. Interested ? Perhaps, but I need to know more. Tim
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Looks very interesting <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [quote="Otto":ejrbr189]table header - table is autosizeing [img:ejrbr189]https&#58;//mybergland&#46;com/fwforum/izipizi/tableheader&#46;jpg[/img:ejrbr189] Here I add some styles cHtml += memoread(".\tagesGaesteListe\tablestyle.html") [img:ejrbr189]https&#58;//mybergland&#46;com/fwforum/izipizi/tablestyleshield&#46;jpg[/img:ejrbr189][/quote:ejrbr189]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello Tim, Thank you. How do you mean tool? Can you maybe post one of your reports? Then I could try to recreate this with / i zi pi zi /. Tool It depends on what you want to do. You can use Word or any other HTML editor, or just HTML code. Here I tested to replace an oReport. See report.prg in the Fivewin samples and compare this new code and the result. [img:2xsw1bto]https&#58;//mybergland&#46;com/fwforum/izipizi/report1&#46;jpg[/img:2xsw1bto] [img:2xsw1bto]https&#58;//mybergland&#46;com/fwforum/izipizi/report1print&#46;jpg[/img:2xsw1bto] This is the sample I started. [img:2xsw1bto]https&#58;//mybergland&#46;com/fwforum/izipizi/old&#46;jpg[/img:2xsw1bto] Best regards, Otto
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Tim, Look how easy-peasy you can achieve great effects. The source code is also easy to understand. For example, I mark all names that begin with "L". Best regards, Otto [img:zf4831h4]https&#58;//mybergland&#46;com/fwforum/izipizi/colored%20rows&#46;jpg[/img:zf4831h4]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello Aida, Thank you. You can use Word or any other HTML editor, or just HTML code. Here I tested to replace an oReport. See report.prg in the Fivewin samples and compare this new code and the result. [img:sdxulwsp]https&#58;//mybergland&#46;com/fwforum/izipizi/report1&#46;jpg[/img:sdxulwsp] [img:sdxulwsp]https&#58;//mybergland&#46;com/fwforum/izipizi/report1print&#46;jpg[/img:sdxulwsp] This is the sample I started. [img:sdxulwsp]https&#58;//mybergland&#46;com/fwforum/izipizi/old&#46;jpg[/img:sdxulwsp] Look how easy-peasy you can achieve great effects. The source code is also easy to understand. For example, I mark all names that begin with "L". Best regards, Otto [img:sdxulwsp]https&#58;//mybergland&#46;com/fwforum/izipizi/colored%20rows&#46;jpg[/img:sdxulwsp]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Now i see the potential of it ! Since the html laytout's can be anything from html code you can make stunning reports. We could even make a xbrowse with the data (dbf-fields) and the html tag's, so that the prg code will be less in writing... Was there anything needed for setup to jump into this project ? In FWH, NOT MOD
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Mark, No nothing.[b:2ba0stgd] We just didn't see the potential.[/b:2ba0stgd] The big advantage is that we can use the reports both in Fivewin and with mod Harbor. Please see the attached screen. Here the same report is opened via the web browser. [img:2ba0stgd]https&#58;//mybergland&#46;com/fwforum/izipizi/webreport&#46;jpg[/img:2ba0stgd]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello Mark, With my patcher, I can simplify the code. I know that Harbour can patch the code that is spread over several lines. But I don't remember the syntax. Text start / text end or something like that. Best regards, Otto [img:36rdwcis]https&#58;//mybergland&#46;com/fwforum/izipizi/paragraph&#46;jpg[/img:36rdwcis] [img:36rdwcis]https&#58;//mybergland&#46;com/fwforum/izipizi/patcher&#46;jpg[/img:36rdwcis]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Thank you very much. But will it work for complex designs, such an Invoice?
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello elvira, I would say yes. But please post a design template, and I try and test it. Best regards, Otto
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Otto, Can you post the .prg file , the html file so that we can copy them insite the sample folder and hit the build button in order to get a working program. Than we can see and play with the idea.
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello Mark, I think I'll create a few more examples for the time being and test / i zi pi zi / in real use. Maybe you have some templates that you would like to have solved. Best regards, Otto
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
I really liked it <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> , I hope I understand well how to do it <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Thank you. This is a sample!!! [img:8txyb412]https&#58;//i&#46;imgur&#46;com/Mlz8kuu&#46;jpg[/img:8txyb412]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello elvira, A missing printer or problems with the printer queue are reasons why customers call our support. Working on / i zi pi zi / report engine, I think a check if the default printer is ready is essential. I started with the attached code. I included a huge screen with a warning if no default printer or the selected printer is not ready. [img:1afuh6it]https&#58;//mybergland&#46;com/fwforum/druckertest&#46;jpg[/img:1afuh6it] I also started to take notes for the HTML report. [url:1afuh6it]https&#58;//winhotel&#46;space/izipizi/docu&#46;html[/url:1afuh6it] I think page break is key. Tomorrow I do a test for an invoice report. BTW the docu is made with my mod harbour project "portobello editor". [img:1afuh6it]https&#58;//mybergland&#46;com/fwforum/portobello&#46;jpg[/img:1afuh6it] Best regards, Otto [code=fw:1afuh6it]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<br />   <span style="color: #00C800;">local</span> aComboPrn := GetAllEntrys<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> I := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> hPRN_STATUS :=  <span style="color: #000000;">&#123;</span>=><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> cStatus := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">local</span> aPRNCheck := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> oPrn<br />   <span style="color: #00C800;">local</span> lshowPrinters := .t.<br />   *----------------------------------------------------------<br /><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"0"</span> <span style="color: #000000;">&#93;</span>           := <span style="color: #ff0000;">"PRINTER_STATUS_OK"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"1"</span> <span style="color: #000000;">&#93;</span>           := <span style="color: #ff0000;">"PRINTER_STATUS_PAUSED"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"2"</span> <span style="color: #000000;">&#93;</span>           := <span style="color: #ff0000;">"PRINTER_STATUS_ERROR"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"4"</span> <span style="color: #000000;">&#93;</span>           := <span style="color: #ff0000;">"PRINTER_STATUS_PENDING_DELETION"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"8"</span> <span style="color: #000000;">&#93;</span>           := <span style="color: #ff0000;">"PRINTER_STATUS_PAPER_JAM"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"16"</span> <span style="color: #000000;">&#93;</span>          := <span style="color: #ff0000;">"PRINTER_STATUS_PAPER_OUT"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"32"</span> <span style="color: #000000;">&#93;</span>          := <span style="color: #ff0000;">"PRINTER_STATUS_MANUAL_FEED"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"64"</span> <span style="color: #000000;">&#93;</span>          := <span style="color: #ff0000;">"PRINTER_STATUS_PAPER_PROBLEM"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"128"</span> <span style="color: #000000;">&#93;</span>         := <span style="color: #ff0000;">"PRINTER_STATUS_OFFLINE"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"256"</span> <span style="color: #000000;">&#93;</span>         := <span style="color: #ff0000;">"PRINTER_STATUS_IO_ACTIVE"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"512"</span> <span style="color: #000000;">&#93;</span>         := <span style="color: #ff0000;">"PRINTER_STATUS_BUSY"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"1024"</span> <span style="color: #000000;">&#93;</span>        := <span style="color: #ff0000;">"PRINTER_STATUS_PRINTING"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"2048"</span> <span style="color: #000000;">&#93;</span>        := <span style="color: #ff0000;">"PRINTER_STATUS_OUTPUT_BIN_FULL"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"4096"</span> <span style="color: #000000;">&#93;</span>        := <span style="color: #ff0000;">"PRINTER_STATUS_NOT_AVAILABLE"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"8192"</span> <span style="color: #000000;">&#93;</span>        := <span style="color: #ff0000;">"PRINTER_STATUS_WAITING"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"16384"</span> <span style="color: #000000;">&#93;</span>       := <span style="color: #ff0000;">"PRINTER_STATUS_PROCESSING"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"32768"</span> <span style="color: #000000;">&#93;</span>       := <span style="color: #ff0000;">"PRINTER_STATUS_INITIALIZING"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"65536"</span> <span style="color: #000000;">&#93;</span>       := <span style="color: #ff0000;">"PRINTER_STATUS_WARMING_UP"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"131072"</span> <span style="color: #000000;">&#93;</span>      := <span style="color: #ff0000;">"PRINTER_STATUS_TONER_LOW"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"262144"</span> <span style="color: #000000;">&#93;</span>      := <span style="color: #ff0000;">"PRINTER_STATUS_NO_TONER"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"524288"</span> <span style="color: #000000;">&#93;</span>      := <span style="color: #ff0000;">"PRINTER_STATUS_PAGE_PUNT"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"1048576"</span> <span style="color: #000000;">&#93;</span>     := <span style="color: #ff0000;">"PRINTER_STATUS_USER_INTERVENTION"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"2097152"</span> <span style="color: #000000;">&#93;</span>     := <span style="color: #ff0000;">"PRINTER_STATUS_OUT_OF_MEMORY"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"4194304"</span> <span style="color: #000000;">&#93;</span>     := <span style="color: #ff0000;">"PRINTER_STATUS_DOOR_OPEN"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"8388608"</span> <span style="color: #000000;">&#93;</span>     := <span style="color: #ff0000;">"PRINTER_STATUS_SERVER_UNKNOWN"</span><br />   hPRN_STATUS<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"16777216"</span> <span style="color: #000000;">&#93;</span>    := <span style="color: #ff0000;">"PRINTER_STATUS_POWER_SAVE"</span><br /><br />   <span style="color: #00C800;">if</span> lshowPrinters = .t.<br />      <span style="color: #00C800;">For</span> I:= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aComboPrn <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">if</span> PrnStatus<span style="color: #000000;">&#40;</span> aComboPrn<span style="color: #000000;">&#91;</span> I <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <> <span style="color: #000000;">0</span><br />            AADD<span style="color: #000000;">&#40;</span> aPRNCheck, <span style="color: #000000;">&#123;</span> aComboPrn<span style="color: #000000;">&#91;</span> I <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"Printer error "</span> + cStatus <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">endif</span><br />         cStatus := ALLTRIM <span style="color: #000000;">&#40;</span> STR<span style="color: #000000;">&#40;</span> PrnStatus<span style="color: #000000;">&#40;</span> aComboPrn<span style="color: #000000;">&#91;</span> I <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />         <span style="color: #00C800;">TRY</span><br />         AADD<span style="color: #000000;">&#40;</span> aPRNCheck, <span style="color: #000000;">&#123;</span> aComboPrn<span style="color: #000000;">&#91;</span> I <span style="color: #000000;">&#93;</span>, hPRN_STATUS<span style="color: #000000;">&#91;</span> cStatus<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />         CATCH<br />         AADD<span style="color: #000000;">&#40;</span> aPRNCheck, <span style="color: #000000;">&#123;</span> aComboPrn<span style="color: #000000;">&#91;</span> I <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"Status nicht definiert "</span> + cStatus <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      END<br />        <span style="color: #B900B9;">/*<br />        ? GetPrintDefault()<br />        ChangeStandardPrinter( aComboPrn[ I ] )<br />    ? ud_prngetname()<br />        Printersetup()<br />        */</span><br />   <span style="color: #00C800;">NEXT</span><br /><br />   <span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">&#40;</span> aPRNCheck, <span style="color: #ff0000;">"Printers installed - Status"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #00C800;">if</span> msgYesNo<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Change to printer "notexists"'</span>,<span style="color: #ff0000;">'Select printer'</span> <span style="color: #000000;">&#41;</span> = .t.<br />   ChangeStandardPrinter<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"notexists"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">If</span> GetPrintDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> = <span style="color: #000000;">0</span><br />   <span style="color: #B900B9;">//? "no default printer"</span><br />   MetroMsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Programmabbruch"</span>, <span style="color: #ff0000;">"WINDOWS: There is no default printer currently selected"</span> + CRLF +;<br />      <span style="color: #ff0000;">"Go into your Windows Control Panel and choose the Printer settings."</span> + CRLF + CRLF +;<br />      <span style="color: #ff0000;">"Right-click the printer that you want to use, and then click Set as Default Printer."</span>+ CRLF+;<br />      <span style="color: #ff0000;">"A check mark on the printer icon indicates that the printer is now the default printer."</span> + CRLF + CRLF +;<br />      <span style="color: #ff0000;">"If the customer requires help with this they should refer to their IT administrator."</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />   ? <span style="color: #ff0000;">"Default printer "</span> + ud_prngetname<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> GetAllEntrys<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>                         <span style="color: #B900B9;">//show all printers</span><br />   *----------------------------------------<br />   <span style="color: #00C800;">local</span> aDevices:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, cAllEntries, cEntry, I, cName, cPrn, cPort, J<br /><br />   cAllEntries := STRTRAN<span style="color: #000000;">&#40;</span> GetProfString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Devices"</span> <span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, CRLF <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">FOR</span> I:= <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> MlCount<span style="color: #000000;">&#40;</span> cAllEntries <span style="color: #000000;">&#41;</span><br />      cName := MemoLine<span style="color: #000000;">&#40;</span> cAllEntries,,I<span style="color: #000000;">&#41;</span><br />      cEntry := GetProfString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Devices"</span>,cName,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />      J := <span style="color: #000000;">2</span><br />      <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> ! EMPTY<span style="color: #000000;">&#40;</span>cPort := StrToken<span style="color: #000000;">&#40;</span>cEntry,J++,<span style="color: #ff0000;">","</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         *<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> TRIM<span style="color: #000000;">&#40;</span>cName<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  +<span style="color: #ff0000;">" , "</span>+TRIM<span style="color: #000000;">&#40;</span>cPort<span style="color: #000000;">&#41;</span><br />         AADD<span style="color: #000000;">&#40;</span>aDevices, TRIM<span style="color: #000000;">&#40;</span> cName <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDDO</span><br />   <span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> aDevices<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ChangeStandardPrinter<span style="color: #000000;">&#40;</span> cPrintername <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> coldprinter := prnGetName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>            <span style="color: #B900B9;">// default printer</span><br />   *----------------------------------------------------------<br /><br />   <span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span> cPrintername <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  > <span style="color: #000000;">0</span><br />      WriteProfString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"windows"</span>, <span style="color: #ff0000;">"device"</span>, cPrintername <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// change to new printer</span><br />      SetPrintDefault<span style="color: #000000;">&#40;</span> cPrintername <span style="color: #000000;">&#41;</span><br />      PrinterInit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> coldprinter <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ud_PrnGetName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> cret, oprn<br />   <span style="color: #0000ff;">PRINTER</span> oPrn<br />   cRet := oPrn:<span style="color: #000000;">getmodel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">endprint</span><br /><span style="color: #00C800;">return</span> cret<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MetroMsgInfo<span style="color: #000000;">&#40;</span> cTitel, cAnzeige1 <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> lVar        := .f.<br />   <span style="color: #00C800;">local</span> oDlg, oGet, oBTNNaviWeiter, oBTNNaviInfo, obtnAbbruch, oCbx<br />   <span style="color: #00C800;">local</span> cPassword   := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nWidth      := GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nHeight     := GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nLine       := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> nRowSpace   := <span style="color: #000000;">20</span><br />   <span style="color: #00C800;">local</span> nRowOffset  := <span style="color: #000000;">20</span><br />   <span style="color: #00C800;">local</span> cInfo       := <span style="color: #000000;">&#40;</span> procname<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"   "</span> + str<span style="color: #000000;">&#40;</span> procline<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> oFntMetroNormal2, oFntMetroMedium2,oFntMetroFLATBTN<br />   <span style="color: #00C800;">local</span> nRibbonTopClr :=   rgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">227</span>, <span style="color: #000000;">162</span>, <span style="color: #000000;">26</span><span style="color: #000000;">&#41;</span><br />   *----------------------------------------------------------<br />   <span style="color: #00C800;">DEFAULT</span> cTitel := <span style="color: #ff0000;">"Infobox"</span><br />   *----------------------------------------------------------<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFntMetroNormal2      <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;">-22</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFntMetroMedium2      <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;">-32</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFntMetroFLATBTN      <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;">-18</span><br /><br />   oFntMetroSay := TFont<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;">"Calibri"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-13</span>, .F.,.F.,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,,.F.,.F.,.F.,<span style="color: #000000;">0</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">1</span>,,<span style="color: #000000;">34</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//cAnzeige1 := ansiToOem(cAnzeige1)</span><br />   nLine := <span style="color: #000000;">16</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Auswahl"</span> ;<br />      <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">5</span> ;<br />      <span style="color: #0000ff;">TO</span> nHeight*<span style="color: #000000;">1</span>/<span style="color: #000000;">2</span>, nWidth + <span style="color: #000000;">6</span> ;<br />      <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_WHITE, nRibbonTopClr ;<br />      <span style="color: #0000ff;">FONT</span> oFntMetroFLATBTN<br /><br />   oDlg:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFntMetroNormal2 <span style="color: #000000;">&#41;</span><br /><br />   nLine := <span style="color: #000000;">0.5</span><br />   @ nRowOffset * nLine , nWidth/<span style="color: #000000;">5</span>/<span style="color: #000000;">2.05</span> ;<br />      <span style="color: #0000ff;">SAY</span> cTitel ;<br />      <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFntMetroMedium2 ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_WHITE, nRibbonTopClr<br /><br />   nLine := <span style="color: #000000;">2</span><br />   @ nRowOffset + nRowSpace * nLine,nWidth/<span style="color: #000000;">5</span>/<span style="color: #000000;">2.05</span> ;<br />      <span style="color: #0000ff;">SAY</span> cAnzeige1 ;<br />      <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFntMetroMedium2 ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_WHITE, nRibbonTopClr ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">600</span><br /><br />   *----------------------------------------------------------<br /><br />   @ <span style="color: #000000;">&#40;</span> nHeight*<span style="color: #000000;">1</span>/<span style="color: #000000;">2</span> - <span style="color: #000000;">45</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2.05</span>,nWidth/<span style="color: #000000;">5</span>/<span style="color: #000000;">2.05</span> ;<br />      FLATBTN oBTNNaviWeiter ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"OK"</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFntMetroFLATBTN ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">&#40;</span> <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span> /<span style="color: #000000;">2.05</span> ;<br />      <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lVar := .T., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">COLOR</span> nRibbonTopClr, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">210</span>, <span style="color: #000000;">210</span>, <span style="color: #000000;">210</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #00C800;">DEFAULT</span><br /><br /><br /><br />   @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> ;<br />      FLATBTN oBTNNaviInfo ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"+"</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFntMetroSay ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">32</span><span style="color: #000000;">&#41;</span> /<span style="color: #000000;">2.05</span> , <span style="color: #000000;">&#40;</span> <span style="color: #000000;">32</span><span style="color: #000000;">&#41;</span> /<span style="color: #000000;">2.05</span> ;<br />      <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> cInfo <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">COLOR</span> nRibbonTopClr, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">210</span>, <span style="color: #000000;">210</span>, <span style="color: #000000;">210</span> <span style="color: #000000;">&#41;</span><br /><br />   oBTNNaviInfo:<span style="color: #000000;">cTooltip</span> := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Info"</span><span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /><br /><br /><br /> </div>[/code:1afuh6it]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Good morning, elvira, Thank you for bringing the invoice form into play. I did a quick test. I took a template from office.com. ([url:53yijxph]https&#58;//templates&#46;office&#46;com/en-us/invoice-tm16392525[/url:53yijxph]) It's very similar to your bill. Instead of products, I inserted dummy lines and made a page break. Before printing, I choose the printer model. Everything works very well and is easy-peasy. Best regards, Otto [img:53yijxph]https&#58;//mybergland&#46;com/fwforum/htmlinvoice&#46;gif[/img:53yijxph]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello friends, I remembered that WORD 97 produced very clean, lean HTML source code. I searched the internet for "WORD 97 download" and found a download - Microsoft Word 97 (OEM) (ISO) . WORD 97 is a simple WYSIWYG editor for the report generator. Best regards, Otto
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Placeholders Word template [img:2he4sad6]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip6&#46;jpg[/img:2he4sad6] create placeholders [img:2he4sad6]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip1&#46;jpg[/img:2he4sad6] placeholders [img:2he4sad6]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip2&#46;jpg[/img:2he4sad6] paste placeholders [img:2he4sad6]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip5&#46;jpg[/img:2he4sad6] save as HTML [img:2he4sad6]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip4&#46;jpg[/img:2he4sad6] extract placeholders from HTML [img:2he4sad6]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip3&#46;jpg[/img:2he4sad6]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Placeholders Word template [img:2hx5ag78]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip6&#46;jpg[/img:2hx5ag78] create placeholders [img:2hx5ag78]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip1&#46;jpg[/img:2hx5ag78] placeholders [img:2hx5ag78]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip2&#46;jpg[/img:2hx5ag78] paste placeholders [img:2hx5ag78]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip5&#46;jpg[/img:2hx5ag78] save as HTML [img:2hx5ag78]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip4&#46;jpg[/img:2hx5ag78] extract placeholders from HTML [img:2hx5ag78]https&#58;//mybergland&#46;com/fwforum/izipizi/htmleditor_clip3&#46;jpg[/img:2hx5ag78]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Replace placeholder with data: [img:28fbrk9r]https&#58;//mybergland&#46;com/fwforum/htmleditor_clip2&#46;jpg[/img:28fbrk9r] [img:28fbrk9r]https&#58;//mybergland&#46;com/fwforum/htmleditor_clip3&#46;jpg[/img:28fbrk9r] sourcecode to replace "placeholders" [img:28fbrk9r]https&#58;//mybergland&#46;com/fwforum/htmleditor_clip4&#46;jpg[/img:28fbrk9r]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Replace placeholder with data: [img:1kpbpci5]https&#58;//mybergland&#46;com/fwforum/htmleditor_clip2&#46;jpg[/img:1kpbpci5] [img:1kpbpci5]https&#58;//mybergland&#46;com/fwforum/htmleditor_clip3&#46;jpg[/img:1kpbpci5] sourcecode to replace "placeholders" [img:1kpbpci5]https&#58;//mybergland&#46;com/fwforum/htmleditor_clip4&#46;jpg[/img:1kpbpci5]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Now changing design with WORD [img:38nbv7ns]https&#58;//mybergland&#46;com/fwforum/word&#46;jpg[/img:38nbv7ns] [img:38nbv7ns]https&#58;//mybergland&#46;com/fwforum/druck&#46;jpg[/img:38nbv7ns]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Now changing design with WORD [img:plbq0tve]https&#58;//mybergland&#46;com/fwforum/word&#46;jpg[/img:plbq0tve] [img:plbq0tve]https&#58;//mybergland&#46;com/fwforum/druck&#46;jpg[/img:plbq0tve]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Otto, I not Use Microsoft Office applications, and with me all my clients and friends we use alternative products, for free you sell your program to your client but then you tell him that he has to buy office to create reports? what a beautiful prospect what would this thing be? a form for not being autonomous? Fivewin needs a powerful report designer if you are drawing with Word then it means that you no longer use ER, but as for you it was more ultra now you do not use it anymore? you have to be consistent with yourself, you always said you use ER and it works fine for you now you can't use it with mod_harbour? please move this topic to Mod Harbour forum
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Otto, I not Use Microsoft Office applications, and with me all my clients and friends we use alternative products, for free you sell your program to your client but then you tell him that he has to buy office to create reports? what a beautiful prospect what would this thing be? a form for not being autonomous? Fivewin needs a powerful report designer if you are drawing with Word then it means that you no longer use ER, but as for you it was more ultra now you do not use it anymore? you have to be consistent with yourself, you always said you use ER and it works fine for you now you can't use it with mod_harbour? please move this topic to Mod Harbour forum
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello Silvio, /i zi pi zi/ is for FIVEWIN. And yes, you are right, I do no longer use ER. To create HTML reports is much easier and faster. You do not need WORD. You can use any editor to create HTML. BTW, what WORD processor do you use? Glad you take part in the discussion. Best regards, Otto
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Silvio, please see my answer in the English forum. Best regards, Otto
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
[quote="Otto":3dlmjxja]Hello Silvio, /i zi pi zi/ is for FIVEWIN. And yes, you are right, I do no longer use ER. To create HTML reports is much easier and faster. You do not need WORD. You can use any editor to create HTML. BTW, what WORD processor do you use? Glad you take part in the discussion. Best regards, Otto[/quote:3dlmjxja] Have you discovered HTML now? try HTML5 maybe you will find you can do a report designer <!-- m --><a class="postlink" href="https://sourceforge.net/projects/qtrpt/">https://sourceforge.net/projects/qtrpt/</a><!-- m -->
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello friends, I have the first response from my users. / * Hello Otto, great thank you! Would it be possible for the first column to be smaller? So in principle we wouldn't need it at all. I don't know what the CH actually means. ? And if you can, the font is larger for the room number, arrival and departure, half board and comments. We don't need the last 5 columns either (D + T + Aktion + Ki + EW) is above. * / The changes are easy. In the function that decides which columns are printed, the switches are simply set to "N" for no. [code=fw:9rnlzgaq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> check4prn<span style="color: #000000;">&#40;</span> nCol, cCol <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//               1234567890123456 </span><br /><span style="color: #00C800;">local</span> cPrint := <span style="color: #ff0000;">"NJJJJJJJJJJNNNNN"</span><br />    <br />    <span style="color: #00C800;">if</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cPrint, nCol, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <> <span style="color: #ff0000;">"J"</span><br />        cCol := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">endif</span><br />  <br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> cCol <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:9rnlzgaq] The styling is done in CSS. For example the column HP: .mytd { border: 1px solid #dddddd; text-align: center; padding: 4px; background: #A4C400; font-size: 18px; } [code=fw:9rnlzgaq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><style><br />        .mytd <span style="color: #000000;">&#123;</span><br />          border: 1px solid #dddddd;<br />          text-align: <span style="color: #0000ff;">center</span>;<br />          padding: 4px;<br />          background:  #A4C400;<br />          font-<span style="color: #0000ff;">size</span>: 18px;<br />        <span style="color: #000000;">&#125;</span>       <br />        .tdname  <span style="color: #000000;">&#123;</span><br />          font-<span style="color: #0000ff;">size</span>: 18px;<br />          border: 1px solid #dddddd;<br />          text-align: <span style="color: #0000ff;">left</span>;<br />          padding: 4px;<br />        <span style="color: #000000;">&#125;</span>       <br />        <br />        .tdmedium  <span style="color: #000000;">&#123;</span><br />          font-<span style="color: #0000ff;">size</span>: 22px;<br />          border: 1px solid #dddddd;<br />          text-align: <span style="color: #0000ff;">left</span>;<br />          padding: 4px;<br />        <span style="color: #000000;">&#125;</span>       <br />        <br />        .tdlarge <span style="color: #000000;">&#123;</span><br />          font-<span style="color: #0000ff;">size</span>: 26px;<br />          border: 1px solid #dddddd;<br />          text-align: <span style="color: #0000ff;">left</span>;<br />          padding: 4px;<br />        <span style="color: #000000;">&#125;</span>       <br />        <br /></style>    <br /><br />    <br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"<td>"</span> + cMarker+ <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"<td class='tdlarge'>"</span> + VRDZiNr + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"<td class='tdname'>"</span> + convertUmlaute<span style="color: #000000;">&#40;</span> VRDName <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">4</span>, <span style="color: #ff0000;">"<td class='tdmedium'>"</span> + VRDAnAbreise + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"<td>"</span> +VRDZF + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"<td>"</span> +VRDZFKi + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">7</span>, <span style="color: #ff0000;">"<td class='mytd'>"</span> + VRDHP + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"<td>"</span> +VRDHPKi + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">9</span>, <span style="color: #ff0000;">"<td>"</span> +VRDVP + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"<td>"</span> +VRDVPKi + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #ff0000;">"<td  class='tdname'>"</span> +convertUmlaute<span style="color: #000000;">&#40;</span>VRDBErmerkung<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span>, <span style="color: #ff0000;">"<td>"</span> +VRDEW + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span>, <span style="color: #ff0000;">"<td>"</span> +VRDKi + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, <span style="color: #ff0000;">"<td>"</span> +VRDAktion + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, <span style="color: #ff0000;">"<td>"</span> +VRDD + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span>, <span style="color: #ff0000;">"<td>"</span> +VRDT + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />                        <br /><br /> </div>[/code:9rnlzgaq] [img:9rnlzgaq]https&#58;//mybergland&#46;com/fwforum/tagesliste&#46;jpg[/img:9rnlzgaq] LG Otto
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello friends, I have the first response from my users. / * Hello Otto, great thank you! Would it be possible for the first column to be smaller? So in principle we wouldn't need it at all. I don't know what the CH actually means. ? And if you can, the font is larger for the room number, arrival and departure, half board and comments. We don't need the last 5 columns either (D + T + Aktion + Ki + EW) is above. * / The changes are easy. In the function that decides which columns are printed, the switches are simply set to "N" for no. [code=fw:21cr96qs]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> check4prn<span style="color: #000000;">&#40;</span> nCol, cCol <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//               1234567890123456 </span><br /><span style="color: #00C800;">local</span> cPrint := <span style="color: #ff0000;">"NJJJJJJJJJJNNNNN"</span><br />    <br />    <span style="color: #00C800;">if</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cPrint, nCol, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <> <span style="color: #ff0000;">"J"</span><br />        cCol := <span style="color: #ff0000;">""</span><br />    <span style="color: #00C800;">endif</span><br />  <br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> cCol <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:21cr96qs] The styling is done in CSS. For example the column HP: .mytd { border: 1px solid #dddddd; text-align: center; padding: 4px; background: #A4C400; font-size: 18px; } [code=fw:21cr96qs]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><style><br />        .mytd <span style="color: #000000;">&#123;</span><br />          border: 1px solid #dddddd;<br />          text-align: <span style="color: #0000ff;">center</span>;<br />          padding: 4px;<br />          background:  #A4C400;<br />          font-<span style="color: #0000ff;">size</span>: 18px;<br />        <span style="color: #000000;">&#125;</span>       <br />        .tdname  <span style="color: #000000;">&#123;</span><br />          font-<span style="color: #0000ff;">size</span>: 18px;<br />          border: 1px solid #dddddd;<br />          text-align: <span style="color: #0000ff;">left</span>;<br />          padding: 4px;<br />        <span style="color: #000000;">&#125;</span>       <br />        <br />        .tdmedium  <span style="color: #000000;">&#123;</span><br />          font-<span style="color: #0000ff;">size</span>: 22px;<br />          border: 1px solid #dddddd;<br />          text-align: <span style="color: #0000ff;">left</span>;<br />          padding: 4px;<br />        <span style="color: #000000;">&#125;</span>       <br />        <br />        .tdlarge <span style="color: #000000;">&#123;</span><br />          font-<span style="color: #0000ff;">size</span>: 26px;<br />          border: 1px solid #dddddd;<br />          text-align: <span style="color: #0000ff;">left</span>;<br />          padding: 4px;<br />        <span style="color: #000000;">&#125;</span>       <br />        <br /></style>    <br /><br />    <br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"<td>"</span> + cMarker+ <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"<td class='tdlarge'>"</span> + VRDZiNr + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"<td class='tdname'>"</span> + convertUmlaute<span style="color: #000000;">&#40;</span> VRDName <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">4</span>, <span style="color: #ff0000;">"<td class='tdmedium'>"</span> + VRDAnAbreise + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"<td>"</span> +VRDZF + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"<td>"</span> +VRDZFKi + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">7</span>, <span style="color: #ff0000;">"<td class='mytd'>"</span> + VRDHP + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"<td>"</span> +VRDHPKi + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">9</span>, <span style="color: #ff0000;">"<td>"</span> +VRDVP + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"<td>"</span> +VRDVPKi + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #ff0000;">"<td  class='tdname'>"</span> +convertUmlaute<span style="color: #000000;">&#40;</span>VRDBErmerkung<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span>, <span style="color: #ff0000;">"<td>"</span> +VRDEW + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span>, <span style="color: #ff0000;">"<td>"</span> +VRDKi + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, <span style="color: #ff0000;">"<td>"</span> +VRDAktion + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, <span style="color: #ff0000;">"<td>"</span> +VRDD + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />cText += check4prn<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span>, <span style="color: #ff0000;">"<td>"</span> +VRDT + <span style="color: #ff0000;">"</td>"</span> + CRLF <span style="color: #000000;">&#41;</span><br />                        <br /><br /> </div>[/code:21cr96qs] [img:21cr96qs]https&#58;//mybergland&#46;com/fwforum/tagesliste&#46;jpg[/img:21cr96qs] LG Otto
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello friends, I think the easiest way for the invoice address is to pass an address block from the program. I change the placeholders and only pass an address block. Please check out the attached video. Best regards, Otto [url:2c8lar22]https&#58;//mybergland&#46;com/fwforum/htmladresse&#46;mp4[/url:2c8lar22]
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello, Is there a sample prg to test? Thank you
/??z??p??z?/ Reportgenerator for FIVEWIN and mod harbour
Hello, I am working on a sample. Page and printer setup is ready. So, I have all the necessary components. Best regards, Otto [img:2qk57nth]https&#58;//mybergland&#46;com/fwforum/setuppage&#46;gif[/img:2qk57nth]
/B Harbour Compiler option generated a unresolved external
Hello FiveWin / Antonio, I am trying to compile with /B option but the linker generated the following error. Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland Error: Unresolved external '_HB_FUN_HB_DECODE' referenced from C:\FWH\LIB\FIVEH.LIB|XBROWSE Environment: FWH 11.06, Boralnd 586 and harbour included in FWh package. What causes this and what is the work around? Thank you, Jose
/B Harbour Compiler option generated a unresolved external
Jose, Please link xhb.lib from Harbour too
/B Harbour Compiler option generated a unresolved external
Hi Antonio, Thanks for the quick reply. I link XHB.LIB and it builds the exe, but when I run the exe it is not showing. How could I invoke the application build with the debug (/B) option ? Do I need another application like the CLD.EXE with Clipper to run the exe in debugging mode? Thank you and regards, JOse
/B Harbour Compiler option generated a unresolved external
Jose, Just compile using /b and FiveWin will link the debugger automatically. Please place a MsgInfo( "here" ) at the beginning of your main PRG and check if it gets called.
/B Harbour Compiler option generated a unresolved external
Antonio, With /B option the msginfo box doesn't show up nor the application. But without /B it shows up and the application runs well. The FWDbg.dll is also in the default folder. What I am probably missing? Thanks, Jose
/B Harbour Compiler option generated a unresolved external
Jose, Please try it with samples/tutor02.prg and check if it works buildh.bat tutor02 /b
/B Harbour Compiler option generated a unresolved external
Hi Antonio, The Tutor02 works fine. I linked gtwin.lib and added -Gn -aa linker switch as shown in BuildH.Bat. My application now shows some life but with a bunch of errors. I think it's just the switches and settings but I can't find anymore from BuildH.bat that I can copy to my .MAK file. Below are portions of my MAK file and runtime errors: I hope there is something we can tweak. Thank you. Jose Portion of Runtime errors: Unrecoverable error 9003: Too many recursive error handler calls Called from ENABLE(0) Called from TDBG:DBGCONTROL(525) in .\source\classes\FWDBG.PRG Called from TDBG:EXEC(633) in .\source\classes\FWDBG.PRG Called from __DBGENTRY(97) in .\source\classes\FWDBG.PRG Called from ALERT(3900) in .\PCREGW.PRG Called from DEFERROR(0) in ../../../errsys.prg Called from (b)ERRORSYS(0) in ../../../errsys.prg Called from ENABLE(0) Called from TDBG:DBGCONTROL(525) in .\source\classes\FWDBG.PRG Called from TDBG:EXEC(633) in .\source\classes\FWDBG.PRG Called from __DBGENTRY(97) in .\source\classes\FWDBG.PRG Called from ALERT(3900) in .\PCREGW.PRG Called from DEFERROR(0) in ../../../errsys.prg Called from (b)ERRORSYS(0) in ../../../errsys.prg Called from ENABLE(0) Called from TDBG:DBGCONTROL(525) in .\source\classes\FWDBG.PRG Called from TDBG:EXEC(633) in .\source\classes\FWDBG.PRG Called from __DBGENTRY(97) in .\source\classes\FWDBG.PRG Called from ALERT(3900) in .\PCREGW.PRG Called from DEFERROR(0) in ../../../errsys.prg Called from (b)ERRORSYS(0) in ../../../errsys.prg Called from ENABLE(0) Library and switch portion of my MAk file: echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc echo $(HBDIR)\lib\hbvm.lib + >> b32.bc echo $(HBDIR)\lib\gtwin.lib + >> b32.bc echo $(HBDIR)\lib\gtgui.lib + >> b32.bc echo $(HBDIR)\lib\hblang.lib + >> b32.bc echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc echo $(HBDIR)\lib\rddntx.lib + >> b32.bc echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc echo $(HBDIR)\lib\hbsix.lib + >> b32.bc echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc echo $(HBDIR)\lib\hbpp.lib + >> b32.bc echo $(HBDIR)\lib\hbwin.lib + >> b32.bc echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc echo $(HBDIR)\lib\hbct.lib + >> b32.bc echo $(HBDIR)\lib\xhb.lib + >> b32.bc echo $(BCDIR)\lib\cw32.lib + >> b32.bc echo $(BCDIR)\lib\import32.lib + >> b32.bc echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc IF EXIST pcreg.res echo pcreg.res >> b32.bc $(BCDIR)\bin\ilink32 -Tpe -s @b32.bc > link.log # $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc > link.log # del b32.bc .PRG.OBJ: $(HBDIR)\bin\harbour $< /dFIVEWIN /dWIN /b /N /W1 /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include > comp.log $(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c
03h 00h 00h 00h como converter para hexadecimal?
Pessoal como mandar 03h 00h 00h 00h como hexadecimal?Veja o que diz o suporte:Suporte On-Line - GERTEC> O envio dos comandos tem que ser em hexadecimais. Exemplo: Suporte On-Line - GERTEC> O GetIdentify é composto de 4 bytes: 03h 00h 00h 00h.
03h 00h 00h 00h como converter para hexadecimal?
Disculpa si no entendí, no se portugues pero espero que algo de esto te sirva, funciona en xharbour supongo también en harbourmsgInfo( 0x03000000 )msgInfo( hexToNum( "03000000" ) )msgInfo( numToHex( 50331648 ) )
03h 00h 00h 00h como converter para hexadecimal?
Obrigado Quique.
1 Question
Ok if i get this right, this FWPPC is a program that runs on a PocketPC, where u can write and compile code directly, without PC is this true? and if it is where can i get this FWPPC?
1 Question
> Ok if i get this right, this FWPPC is a program that runs on a PocketPC, where u can write and compile code directly, without PC > No. You write and compile the code at the PC. Then you get a native Pocket PC application that can run on the Pocket PC or from the Microsoft Pocket PC emulator. > and if it is where can i get this FWPPC? You may order it from <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w --> purchase section.
1 Question
ok this s**, i need a program that can write and compile just on ppc anyone knows?
1 Question
Gapipro, You may use Pocket GCC or other compiler. You may find it in internet search engine. PS. We don't think about FWPPC that is "s**". This is proffesional software. Regards Pawel
1 Question
ok, I have that compiler but doesn't work, the CMD doesn't open and i don't know why. I have Ipaq 1950 with windows mobile 5. I didn't say that this software s**, I just said that becouse all compilers need computer and can't work alone on the ppc. If you have any other program that is running alone on ppc tell me plz? thanks
1 Question
anyone else?
1-to-many like Foxpro
Hi, Does the exist a command like 'SET SKIP TO ' like in foxpro? If we browse in the main database, the record stays the same in the main database, and only the child database is skipping for the number of records that match the relation with the main database. I saw something like SCOPED relation, but that is not the same as the 1-to-many command in Foxpro [url:712f38c2]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=221800&sid=3c2b29d525eb35873bcdbb3792cc56dc&sid=25c46c31fe1e767d08ae1588e662fc02#p221800[/url:712f38c2]
1-to-many like Foxpro
Do you want two or more child browses for one parent browse?
1-to-many like Foxpro
Nages, The purpose is to 'export' an excel with all the colums. So the colums from the parent, en those of the child. If the parent have 5 child-records, there will 5 lines. Those of the parent will be the same, only the child fields will be different The problem is the child database have also a 1 child, also that one have a child... Sometimes 50 childs.... I know that the excel file will be large, but I need it in excel. The custumer need it for engineering purpose...
1-to-many like Foxpro
Create a temp database in the format you need. Then write some code to post all the data you need into the temp database. Then open the temp database and export it to Excel.
1-to-many like Foxpro
James, That's what I did now, but it's very slow. I was hoping then it was faster with a 1-to-many relation. I did it in foxpro, and it was mush faster, but I want it in FWH...
1-to-many like Foxpro
Marc, Are you saying there could be 50 children of the parent, and each one of those could have 50 children? That would be 50*50 = 2,500 children of the top parent. Then I assume there could be another layer that could also have 50 children. That would be 50 * 2,500 = 125,000, Wow! And that is just for one parent! Creating an Excel file containing all that data is extremely inefficient. That is why relational databases were born. If it was my client, the first thing I would be asking is what are you trying to accomplish with this? It seems it would be much easier and more efficient to write a program to provide whatever answer the client needs (without storing hundreds of thousands of records, of mostly redundant data). Looking at hundreds of thousands of rows in Excel would make my eyes bleed...
1-to-many like Foxpro
James, Not every child have 50 childeren. There is 1 main database, with 1 child, that child have also 1 child, that one also.... It's a database with connections of function blocks of a process automation system (Honeywell). In the the child database is a field with the 'From'-block and a filed with a 'To'-block. The child is always the same table that is opened 50 times. With a relation between the 'from' and the 'to' field. It's an ERDB-type-database. Depending of the complexity of the control, there can be 50 connections after each other. Sometimes only 3, like an imput block, a controller block and an output block. But sometimes there are also interlocks, logic,... in between [quote="James Bott":3cq36yw8]Marc, Are you saying there could be 50 children of the parent, and each one of those could have 50 children? That would be 50*50 = 2,500 children of the top parent. Then I assume there could be another layer that could also have 50 children. That would be 50 * 2,500 = 125,000, Wow! And that is just for one parent! Creating an Excel file containing all that data is extremely inefficient. That is why relational databases were born. If it was my client, the first thing I would be asking is what are you trying to accomplish with this? It seems it would be much easier and more efficient to write a program to provide whatever answer the client needs (without storing hundreds of thousands of records, of mostly redundant data). Looking at hundreds of thousands of rows in Excel would make my eyes bleed...[/quote:3cq36yw8]
1-to-many like Foxpro
This is a very,very simple example. This is the configuration to document. [img:zn57i1yo]http&#58;//www&#46;vms&#46;be/tmp/Example&#46;jpg[/img:zn57i1yo] This is the main database with the inputs [img:zn57i1yo]http&#58;//www&#46;vms&#46;be/tmp/MAIN&#46;jpg[/img:zn57i1yo] This is the child database with all the connection [img:zn57i1yo]http&#58;//www&#46;vms&#46;be/tmp/CHILD&#46;jpg[/img:zn57i1yo] This is the result I want to generate [img:zn57i1yo]http&#58;//www&#46;vms&#46;be/tmp/OUTPUT&#46;jpg[/img:zn57i1yo] They want to see to what output an input is connected.
1-to-many like Foxpro
Unless we are very clear with your requirements, we can not suggest what is appropriate for you. We can only suggest some approaches. We have created three tables: [url=https&#58;//imageshack&#46;com/i/po9nFPUpj:3f0hriyq][img:3f0hriyq]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/924/9nFPUp&#46;jpg[/img:3f0hriyq][/url:3f0hriyq] [code=fw:3f0hriyq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</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;field COUNTRY,REGION<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aData<br /><br />&nbsp; &nbsp;CreateTables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;USE REGION <span style="color: #00C800;">NEW</span> VIA <span style="color: #ff0000;">"DBFCDX"</span><br />&nbsp; &nbsp;SET ORDER <span style="color: #0000ff;">TO</span> TAG CODE<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;USE COUNTRY <span style="color: #00C800;">NEW</span> VIA <span style="color: #ff0000;">"DBFCDX"</span><br />&nbsp; &nbsp;SET ORDER <span style="color: #0000ff;">TO</span> TAG CODE<br />&nbsp; &nbsp;SET RELATION <span style="color: #0000ff;">TO</span> REGION INTO REGION<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;USE CITY <span style="color: #00C800;">NEW</span> VIA <span style="color: #ff0000;">"DBFCDX"</span><br />&nbsp; &nbsp;SET ORDER <span style="color: #0000ff;">TO</span> TAG COUNTRY<br />&nbsp; &nbsp;SET RELATION <span style="color: #0000ff;">TO</span> COUNTRY INTO COUNTRY<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">SELECT</span> CITY<br />&nbsp; &nbsp;FW_DbfToExcel<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"REGION->REGION AS REGION"</span>,<span style="color: #ff0000;">"COUNTRY->COUNTRY AS CONTRY"</span>, <span style="color: #ff0000;">"CITY"</span>, <span style="color: #ff0000;">"CODE AS AIRPORT"</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: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CreateTables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aRegion &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"EU"</span>, <span style="color: #ff0000;">"Europe"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"NA"</span>, <span style="color: #ff0000;">"North America"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aCountry := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SP"</span>, <span style="color: #ff0000;">"EU"</span>, <span style="color: #ff0000;">"Spain"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"IT"</span>, <span style="color: #ff0000;">"EU"</span>, <span style="color: #ff0000;">"Italy"</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"US"</span>, <span style="color: #ff0000;">"NA"</span>, <span style="color: #ff0000;">"USA"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"CA"</span>, <span style="color: #ff0000;">"NA"</span>, <span style="color: #ff0000;">"Canada"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aCity &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MAD"</span>, <span style="color: #ff0000;">"SP"</span>, <span style="color: #ff0000;">"Madrid"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"AGP"</span>, <span style="color: #ff0000;">"SP"</span>, <span style="color: #ff0000;">"Málaga"</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TRN"</span>, <span style="color: #ff0000;">"IT"</span>, <span style="color: #ff0000;">"Turin"</span> &nbsp;<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"VCE"</span>, <span style="color: #ff0000;">"IT"</span>, <span style="color: #ff0000;">"Venice"</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"JFK"</span>, <span style="color: #ff0000;">"US"</span>, <span style="color: #ff0000;">"New York"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"BOS"</span>, <span style="color: #ff0000;">"US"</span>, <span style="color: #ff0000;">"Boston"</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"YOW"</span>, <span style="color: #ff0000;">"CA"</span>, <span style="color: #ff0000;">"Ottawa"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"YUL"</span>, <span style="color: #ff0000;">"CA"</span>, <span style="color: #ff0000;">"Montriel"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"REGION.DBF"</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"CODE"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"REGION"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">15</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"TMP"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_ArrayToDbf<span style="color: #000000;">&#40;</span> aRegion <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_CdxCreate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CLOSE TMP<br /><br />&nbsp; &nbsp;DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"COUNTRY.DBF"</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"CODE"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"REGION"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"COUNTRY"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">15</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"TMP"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_ArrayToDbf<span style="color: #000000;">&#40;</span> aCountry <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_CdxCreate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CLOSE TMP<br /><br />&nbsp; &nbsp;DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CITY.DBF"</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"CODE"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"COUNTRY"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"CITY"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">15</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"TMP"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_ArrayToDbf<span style="color: #000000;">&#40;</span> aCity <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_CdxCreate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CLOSE TMP<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:3f0hriyq] [url=https&#58;//imageshack&#46;com/i/po7JVucsp:3f0hriyq][img:3f0hriyq]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/924/7JVucs&#46;png[/img:3f0hriyq][/url:3f0hriyq]
1-to-many like Foxpro
At this point (Current version) it is still so that we can only have 1 parent to 1 child relation and not 1 parent to 2/3 childs ?
1-to-many like Foxpro
You have to add ADDITIVE for the relation to the second child [quote="Marc Venken":kgdnzaav]At this point (Current version) it is still so that we can only have 1 parent to 1 child relation and not 1 parent to 2/3 childs ?[/quote:kgdnzaav]
1-to-many like Foxpro
[code=fw:5i4sl9mv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</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;field OUT,FTO<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aData &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aRow<br /><br />&nbsp; &nbsp;CreateTables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;USE MAIN <span style="color: #00C800;">NEW</span> SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br />&nbsp; &nbsp;SET ORDER <span style="color: #0000ff;">TO</span> TAG <span style="color: #0000ff;">NAME</span><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !MAIN-><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; aRow &nbsp;:= <span style="color: #000000;">&#123;</span> MAIN->NAME, MAIN->OUT <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; GetConnections<span style="color: #000000;">&#40;</span> aData, aRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MAIN-><span style="color: #000000;">&#40;</span> DBSKIP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">enddo</span><br /><br />&nbsp; &nbsp;XBROWSER aData<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> GetConnections<span style="color: #000000;">&#40;</span> aData, aRow <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cSeek &nbsp; &nbsp;:= ATail<span style="color: #000000;">&#40;</span> aRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> a<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cAlias<br /><br />&nbsp; &nbsp;USE CHILD <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span> cAlias := cGetNewAlias<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CH"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br />&nbsp; &nbsp;SET ORDER <span style="color: #0000ff;">TO</span> TAG <span style="color: #0000ff;">FROM</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DBSEEK<span style="color: #000000;">&#40;</span> cSeek <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->FROM == cSeek<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;a &nbsp;:= AClone<span style="color: #000000;">&#40;</span> aRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> a, <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->FTO <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GetConnections<span style="color: #000000;">&#40;</span> aData, a <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DBSKIP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">enddo</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aData, aRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>-><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 /><span style="color: #00C800;">return</span> aRow<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CreateTables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aMain := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT1"</span>,<span style="color: #ff0000;">"ORA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT1"</span>,<span style="color: #ff0000;">"NANDA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT2"</span>,<span style="color: #ff0000;">"ORA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT3"</span>,<span style="color: #ff0000;">"NANDA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT4"</span>,<span style="color: #ff0000;">"NANDA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT5"</span>,<span style="color: #ff0000;">"ONDELAYA"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aChild:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"ORA"</span>,<span style="color: #ff0000;">"OUT1"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"ORA"</span>,<span style="color: #ff0000;">"XORA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"NANDA"</span>,<span style="color: #ff0000;">"XORA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"ONDELAYA"</span>,<span style="color: #ff0000;">"RTRIGA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"XORA"</span>,<span style="color: #ff0000;">"OUT2"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"RTRIGA"</span>,<span style="color: #ff0000;">"OUT3"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MAIN.DBF"</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"NAME"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"OUT"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"TMP"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_ArrayToDbf<span style="color: #000000;">&#40;</span> aMain <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_CdxCreate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CLOSE TMP<br /><br />&nbsp; &nbsp;DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CHILD.DBF"</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"FROM"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"FTO"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"TMP"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_ArrayToDbf<span style="color: #000000;">&#40;</span> aChild <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FW_CdxCreate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CLOSE TMP<br /><br /><span style="color: #B900B9;">// &nbsp; XBROWSER "MAIN.DBF"</span><br /><span style="color: #B900B9;">// &nbsp; XBROWSER "CHILD.DBF"</span><br /><br />&nbsp; &nbsp;CLOSE <span style="color: #00C800;">DATA</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:5i4sl9mv] [url=https&#58;//imageshack&#46;com/i/pmnqH5YPp:5i4sl9mv][img:5i4sl9mv]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/nqH5YP&#46;png[/img:5i4sl9mv][/url:5i4sl9mv]
1-to-many like Foxpro
Now the same program works for more levels. Let us change the child table as [url=https&#58;//imageshack&#46;com/i/pmos0Ex2p:94409bwv][img:94409bwv]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/os0Ex2&#46;png[/img:94409bwv][/url:94409bwv] Result: [url=https&#58;//imageshack&#46;com/i/poNEDqv5p:94409bwv][img:94409bwv]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/924/NEDqv5&#46;png[/img:94409bwv][/url:94409bwv]
1-to-many like Foxpro
It' working fine. The only problem is when there is a backward connection. Then it stays in a loop. There must be a seek if than block is already connected before in that line, and stop by adding ex. (LOOP) into the record. If there is the text (LOOP), the seek doesn't find any connection like that [img:1qqyxdak]http&#58;//www&#46;vms&#46;be/tmp/Example2&#46;jpg[/img:1qqyxdak]
1-to-many like Foxpro
Please try this: [code=fw:3twua4xe]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   field OUT,FTO<br />   <span style="color: #00C800;">local</span> aData    := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> aRow<br /><br />   CreateTables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   USE MAIN <span style="color: #00C800;">NEW</span> SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br />   SET ORDER <span style="color: #0000ff;">TO</span> TAG <span style="color: #0000ff;">NAME</span><br />   GO TOP<br /><br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !MAIN-><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 />      aRow  := <span style="color: #000000;">&#123;</span> MAIN->NAME, MAIN->OUT <span style="color: #000000;">&#125;</span><br />      GetConnections<span style="color: #000000;">&#40;</span> aData, aRow <span style="color: #000000;">&#41;</span><br />      MAIN-><span style="color: #000000;">&#40;</span> DBSKIP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">enddo</span><br /><br />   XBROWSER aData<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> GetConnections<span style="color: #000000;">&#40;</span> aData, aRow <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> cSeek    := ATail<span style="color: #000000;">&#40;</span> aRow <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> a<br />   <span style="color: #00C800;">local</span> cAlias<br /><br />   USE CHILD <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span> cAlias := cGetNewAlias<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CH"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br />   SET ORDER <span style="color: #0000ff;">TO</span> TAG <span style="color: #0000ff;">FROM</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DBSEEK<span style="color: #000000;">&#40;</span> cSeek <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->FROM == cSeek<br />         a  := AClone<span style="color: #000000;">&#40;</span> aRow <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">if</span> AScan<span style="color: #000000;">&#40;</span> a, <span style="color: #000000;">&#123;</span> |x| x == <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->FTO <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />            AAdd<span style="color: #000000;">&#40;</span> a, <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->FTO <span style="color: #000000;">&#41;</span><br />            AAdd<span style="color: #000000;">&#40;</span> a, <span style="color: #ff0000;">"[LOOP]"</span> <span style="color: #000000;">&#41;</span><br />            AAdd<span style="color: #000000;">&#40;</span> aData, a <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">else</span><br />            AAdd<span style="color: #000000;">&#40;</span> a, <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->FTO <span style="color: #000000;">&#41;</span><br />            GetConnections<span style="color: #000000;">&#40;</span> aData, a <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">endif</span><br />         <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DBSKIP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>  <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">enddo</span><br />   <span style="color: #00C800;">else</span><br />      AAdd<span style="color: #000000;">&#40;</span> aData, aRow <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>-><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 /><span style="color: #00C800;">return</span> aRow<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CreateTables<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> aMain := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT1"</span>,<span style="color: #ff0000;">"ORA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT1"</span>,<span style="color: #ff0000;">"NANDA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT2"</span>,<span style="color: #ff0000;">"ORA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT3"</span>,<span style="color: #ff0000;">"NANDA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT4"</span>,<span style="color: #ff0000;">"NANDA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"INPUT5"</span>,<span style="color: #ff0000;">"ONDELAYA"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> aChild:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"ORA"</span>,<span style="color: #ff0000;">"OUT1"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"ORA"</span>,<span style="color: #ff0000;">"XORA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"NANDA"</span>,<span style="color: #ff0000;">"XORA"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"ONDELAYA"</span>,<span style="color: #ff0000;">"RTRIGA"</span><span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"XORA"</span>,<span style="color: #ff0000;">"OUT2"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"RTRIGA"</span>,<span style="color: #ff0000;">"OUT3"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"OUT3"</span>,<span style="color: #ff0000;">"OUT4"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"OUT3"</span>,<span style="color: #ff0000;">"OUT5"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"OUT5"</span>,<span style="color: #ff0000;">"RTRIGA"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><br />   DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MAIN.DBF"</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"NAME"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"OUT"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"TMP"</span> <span style="color: #000000;">&#41;</span><br />   FW_ArrayToDbf<span style="color: #000000;">&#40;</span> aMain <span style="color: #000000;">&#41;</span><br />   FW_CdxCreate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   CLOSE TMP<br /><br />   DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CHILD.DBF"</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"FROM"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"FTO"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"TMP"</span> <span style="color: #000000;">&#41;</span><br />   FW_ArrayToDbf<span style="color: #000000;">&#40;</span> aChild <span style="color: #000000;">&#41;</span><br />   FW_CdxCreate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   CLOSE TMP<br /><br /><span style="color: #B900B9;">//   XBROWSER "MAIN.DBF"</span><br />   XBROWSER <span style="color: #ff0000;">"CHILD.DBF"</span><br /><br />   CLOSE <span style="color: #00C800;">DATA</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:3twua4xe] [url=https&#58;//imageshack&#46;com/i/pmQqITTep:3twua4xe][img:3twua4xe]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/QqITTe&#46;png[/img:3twua4xe][/url:3twua4xe]
10 Advantages Windows 8 Tablets Have...
I just came across this interesting article. 10 Advantages Windows 8 Tablets Have Over the Competition [url:3bndf5hg]http&#58;//www&#46;zdnet&#46;com/10-advantages-windows-8-tablets-have-over-the-ipad-and-android-7000018732/#photo[/url:3bndf5hg] Regards, James
10 Reasons Why Tablets Will Succeed
<!-- m --><a class="postlink" href="http://www.pcmag.com/article2/0,2817,2353365,00.asp">http://www.pcmag.com/article2/0,2817,2353365,00.asp</a><!-- m -->