topic
stringlengths
1
63
text
stringlengths
1
577k
Campos en TDatabase
Saludos amigos En TDatabase es posible leer campos de esta manera [code:h0j4o8ag]use cDbf database oDbf Msginfo( oDbf:Campox )[/code:h0j4o8ag] he revisado la clase pero no identifico la manera en como se crea este metodo. Podrian darme una mano con esto? Gracias anticipadas Williams Pacheco
Campos en TDatabase
Williams, Se utiliza la técnica del error handler: ERROR HANDLER OnError( uParam1 ) Al intentar acceder al nombre del campo se genera un error, ya que no existe esa DATA, y el sistema de gestión de errores del motor de clases de Harbour lo reconduce al método OnError(), desde allí se accede al campo que se esté usando. Revisa el código del método OnError().
Campos en TDatabase
With xHarbour Regards Maurizio ------------------------------------------------- oDbf := NewScatter() FUNCtion NewScatter() Local aVars := {=>} LOcal nField := FCount() LOcal nX := 1 FOR nX := 1 TO nField aVars[FIELDNAME(nX)] := FieldGet(nX) NEXT RETU aVars Function Gather(aVars) lOCAL Nx := 1 AEval(aVars, {|x, i| FieldPut(i, aVars[i]) } ) RETUrn TRUE
Campos en TDatabase
Muchas gracias Voy a chequear
Campos en TDatabase
W Podés probar con TDbf de Manu Expósito que te da eso y mucho mas! <!-- m --><a class="postlink" href="http://www.fivewin.info/html/downloads.php?category=FiveWin%20users%20contributions&id=280">http://www.fivewin.info/html/downloads. ... ons&id=280</a><!-- m --> Saludos
Campos memo
Hola a todos. Tengo una dbf con varios campos memo y de vez en cuando aparecen datos cambiados de un memo a otro, creo que esta roto el archivo dbt, pero como repararlo sin perder datos, el viejo filefix de norton anda muy bien con las dbf pero no asi con los dbt. Probe pasar los datos a un archivo igual pero vacio, y sin embargo el problema persiste. Si alguien sabe como salir de esto, muy agradecido. Saludos Jorge Jaurena
Campos memo
Jorge, Que build de Harbour ó xHarbour estás usando ? De que fecha ?
Campos memo
Estoy usando Harbour 41.0 el copyright dice 1999-2002.
Campos memo
Jorge, Como ves, es bastante antiguo y se han modificado mucho los RDDs desde entonces. Actualízate a un build más reciente. En la sección whatsnew de estos foros tienes builds recientes que puedes descargar.
Campos memo
Antonio: Estamos utilizando la versión FWH/FWHX 7.01 January/2007 y aún así seguimos teniendo problemas con los campos memos, es decir, en reiteradas oportunidades cuando grabamos un memo en un registro aparece en otro, y estamos compilando con el Harbour que viene en esa versión. Ya hay alguna solución respecto a este tema? Ya que tenemos problemas con muchos de nuestros clientes que utilizan nuestros sistemas. El problema persiste ya sea utilizando el RDD de ADS como sin utilizarlo. Desde ya muchas gracias. Saludos Esteban
Campos memo
Jorge, Es preciso que construyais un ejemplo pequeño y autocontenido que reproduzca el problema, sin usar FWH, para que podamos reportarlo en la lista de desarrollo de Harbour y lo revisen Es extraño puesto que nadie más ha reportado problemas con los campos memo, y más aún si habeis probado con ADS, pero no por eso es imposible
Campos memo
[code:9ehjv7qy]// ALTA, MODIFICACION Y ELIMINAR Function ABMBanco&#40;oDbf,oLbx,oDlg,nKey&#41; Local oDlg1,Btn1,Btn2,OldOrd,Reg,SiNo,VecLoc&#91;0&#93;,VecProv&#91;0&#93;,; vCod,vRaz,vDir,vPro,vLoc,vTel,vCui,vPos,; oCod,oRaz,oDir,oPro,oLoc,oTel,oCui,oPos Reg&#58;=oDbf&#58;Recno&#40;&#41; CargoVec_Ban&#40;oDbf,oDbfLoc,@VecLoc,"L"&#41; CargoVec_Ban&#40;oDbf,oDbfProv,@VecProv,"P"&#41; IF nKey<>46 OldOrd&#58;=oDbf&#58;IndexOrder&#40;&#41; oDbf&#58;SetOrder&#40;1&#41; IF nKey=45 DEFINE DIALOG oDlg1 RESOURCE "ABM_BANCOS" OF oDlg TITLE "ALTA DE BANCOS" oDbf&#58;GoBottom&#40;&#41; oDbf&#58;Blank&#40;&#41; vCod&#58;=oDbf&#58;CODIGO+1 vRaz&#58;=SPACE&#40;30&#41; vDir&#58;=SPACE&#40;30&#41; SELECT LOCALIDA oDbfLoc&#58;GoTop&#40;&#41; vLoc&#58;=TRAN&#40;oDbfLoc&#58;CODIGO,"######"&#41;+" "+ oDbfLoc&#58;DESCRIP SELECT PROVINC oDbfProv&#58;GoTop&#40;&#41; vPro&#58;=TRAN&#40;oDbfProv&#58;CODIGO,"######"&#41;+" "+ oDbfProv&#58;DESCRIP SELECT BANCOS vPos&#58;=0 vTel&#58;=SPACE&#40;30&#41; vCui&#58;=SPACE&#40;13&#41; oDlg1&#58;Update&#40;&#41; ENDIF IF nKey=13 &#46;OR&#46; nKey=1 &#46;OR&#46; nKey=77 DEFINE DIALOG oDlg1 RESOURCE "ABM_BANCOS" OF oDlg TITLE "MODIFICACION DE BANCOS" oDbf&#58;Load&#40;&#41; vCod&#58;=oDbf&#58;CODIGO vRaz&#58;=oDbf&#58;RAZONSOC vDir&#58;=oDbf&#58;DIRECCION SELECT LOCALIDA oDbfLoc&#58;Seek&#40;oDbf&#58;LOCALIDA&#41; IF !oDbfLoc&#58;Eof&#40;&#41; vLoc&#58;=TRAN&#40;oDbfLoc&#58;CODIGO,"######"&#41;+" "+ oDbfLoc&#58;DESCRIP ELSE vLoc&#58;=SPACE&#40;30&#41; ENDIF SELECT PROVINC oDbfProv&#58;Seek&#40;oDbf&#58;PROVINCIA&#41; IF !oDbfProv&#58;Eof&#40;&#41; vPro&#58;=TRAN&#40;oDbfProv&#58;CODIGO,"######"&#41;+" "+ oDbfLoc&#58;DESCRIP ELSE vPro&#58;=SPACE&#40;30&#41; ENDIF SELECT BANCOS vPos&#58;=oDbf&#58;CODPOSTAL vTel&#58;=oDbf&#58;TELEFONO vCui&#58;=oDbf&#58;CUIT ENDIF REDEFINE BTNBMP Btn1 ID 200 OF oDlg1 RESOURCE "FLOPPY" LEFT; ACTION GraboBanco&#40;nKey,vCod,oDbf,vRaz,vDir,vLoc,vPro,vPos,vTel,vCui&#41;,; oDlg1&#58;End&#40;&#41;; PROMPT "Grabar" REDEFINE BTNBMP Btn2 ID 201 OF oDlg1 RESOURCE "SALIR" LEFT; ACTION oDlg1&#58;End&#40;&#41;; PROMPT "Salir" IF nKey=1 Btn1&#58;Disable&#40;&#41; ENDIF REDEFINE GET oCod VAR vCod ID 100 OF oDlg1 PICTURE "######" WHEN&#40;nKey=45&#41;; VALID&#123;||VerCodigo&#40;vCod,oDbf&#41;&#125; REDEFINE GET oRaz VAR vRaz ID 101 OF oDlg1 PICTURE "@!" REDEFINE GET oDir VAR vDir ID 102 OF oDlg1 PICTURE "@!" REDEFINE COMBOBOX oLoc VAR vLoc ITEMS VecLoc ID 103 OF oDlg1; WHEN&#123;||IniVectores&#40;oLoc,VecLoc,oDbf&#58;LOCALIDA&#41;&#125; REDEFINE COMBOBOX oPro VAR vPro ITEMS VecProv ID 104 OF oDlg1; WHEN&#123;||IniVectores&#40;oPro,VecProv,oDbf&#58;PROVINCIA&#41;&#125; REDEFINE GET oPos VAR vPos ID 105 OF oDlg1 PICTURE "######" VALID&#40;oDbf&#58;CODPOSTAL>=0&#41; REDEFINE GET oTel VAR vTel ID 106 OF oDlg1 PICTURE "@!" REDEFINE GET oCui VAR vCui ID 107 OF oDlg1 PICTURE "##-########-#" REDEFINE GET oDbf&#58;OBSERVA MEMO ID 108 OF oDlg1 ACTIVATE DIALOG oDlg1 CENTERED ENDIF IF nKey=46 SiNo&#58;=MsgNoYes&#40;"Esta seguro que desea eliminar el registro?",; "Por favor, seleccione"&#41; IF SiNo oDbf&#58;RecLock&#40;&#41; oDbf&#58;Delete&#40;&#41; oDbf&#58;Unlock&#40;&#41; ENDIF ENDIF oDbf&#58;SetOrder&#40;OldOrd&#41; oDbf&#58;GoTo&#40;Reg&#41; oLbx&#58;Refresh&#40;&#41; oLbx&#58;SetFocus&#40;&#41; Return nil // // GRABO EN LA BASE Function GraboBanco&#40;nKey,vCod,oDbf,vRaz,vDir,vLoc,vPro,vPos,vTel,vCui&#41; IF nKey=45 oDbf&#58;Append&#40;&#41; ELSE oDbf&#58;RecLock&#40;&#41; ENDIF oDbf&#58;CODIGO &#58;=vCod oDbf&#58;RAZONSOC &#58;=vRaz oDbf&#58;DIRECCION &#58;=vDir oDbf&#58;LOCALIDA &#58;=VAL&#40;SUBSTR&#40;vLoc,1,6&#41;&#41; oDbf&#58;PROVINCIA &#58;=VAL&#40;SUBSTR&#40;vPro,1,6&#41;&#41; oDbf&#58;CODPOSTAL &#58;=vPos oDbf&#58;TELEFONO &#58;=vTel oDbf&#58;CUIT &#58;=vCui oDbf&#58;Save&#40;&#41; oDbf&#58;Unlock&#40;&#41; Return nil //[/code:9ehjv7qy] Te envío esta porcion de código donde hay un campo memo, "El de observación" no se si esto es lo que me estás pidiendo. Saludos, Esteban
Can I use TXBrowse class from Resource?
I'm very impress with TXBrowse but I've used TWbrowse from Resource? How can I replace TWbrowse from resource with TXBrowse? If it's possible, could I have an example pls. Regards, Dutch
Can I use TXBrowse class from Resource?
Dutch: Try using oBrw:CreateFromResource( 10 ) // 10 is your browse ID Instead oBrw:CreateFromCode() Regards
Can I use TXBrowse class from Resource?
Hello Dutch, I see, you are changing from TW / TC-Browse to xBrowse. You can have a look at the topic DB-Tools. It is a nice sample, what you can do. In the moment, it is a little bit to early, to put the source in the forum, because it is still a lot to do. It might give you a overview of the handling. Greetings from germany Uwe
Can I use TXBrowse class from Resource?
You should also change wbrowse to xbrowse in the resource file.
Can I use TXBrowse class from Resource?
Hello NageswaraRao, would you be so kind to post a little rc- and prg-file with a demo for fwcodesnips.com. Thanks in advance Otto
Can I use TXBrowse class from Resource?
Hello Otto, here is a small rc and prg sample [code:x7f8hudx]Test DIALOG DISCARDABLE 39, 40, 429, 272 STYLE WS_POPUP|WS_CAPTION|WS_SYSMENU CAPTION "Test" FONT 8, "Verdana" BEGIN CONTROL "", 110, "TOutLook2003", 0x00800000, 3, 4, 111, 250 CONTROL "Exit", 1001, "Button", WS_TABSTOP, 381, 234, 45, 20 CONTROL "", 1000, "msctls_progress32", 0x00000000, 120, 238, 255, 16 CONTROL "", 5000, "TXBrowse", WS_TABSTOP, 120, 6, 306, 224 END [/code:x7f8hudx] [code:x7f8hudx]DEFINE DIALOG oDlg RESOURCE "Test" &#46;&#46;&#46;&#46; &#58;&#58;oBrw &#58;= TXBrowse&#40;&#41;&#58;New&#40; oDlg &#41; &#46;&#46;&#46;&#46; &#58;&#58;oBrw&#58;CreateFromResource&#40; 5000 &#41; [/code:x7f8hudx]
Can I use TXBrowse class from Resource?
Hello Stefan, Thank you. BTW, do you know how I could extend the VSX resource editor that I can select "TXBrowse"? At the moment I can use copy and paste from a other project. But it is not elegant. Regards, Otto
Can I use TXBrowse class from Resource?
Dear StefanHaupt, Thanks, I've got it. Dear Antonio, In xbrowse.ch is not including REDEFINE command. Have you done the transalator command for REDEFINE? or I have to do by ourselve. Thanks&Regards, Dutch
Can I use TXBrowse class from Resource?
Otto, [url=http&#58;//imageshack&#46;us:3hrtpfyr][img:3hrtpfyr]http&#58;//img512&#46;imageshack&#46;us/img512/3840/ottooe3&#46;png[/img:3hrtpfyr][/url:3hrtpfyr]
Can I use TXBrowse class from Resource?
Dutch, > In xbrowse.ch is not including REDEFINE command. We are going to implement it asap,
Can I use TXBrowse class from Resource?
Thank you, Antonio, I am surprised you can do this without adding a own control to the TOOLBOX. Great. Are you using VSX much? Regards, Otto
Can I use TXBrowse class from Resource?
Otto, > I am surprised you can do this without adding a own control to the TOOLBOX. > You can do the same using Borland resources workshop <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> > Are you using VSX much ? Sometimes, to learn how to use it.
Can I use TXBrowse class from Resource?
[quote="dutch":54l3n8ts]Dear StefanHaupt, In xbrowse.ch is not including REDEFINE command. Have you done the transalator command for REDEFINE? or I have to do by ourselve. Dutch[/quote:54l3n8ts] Actually you can use the same command for resources also like this: [code:54l3n8ts] @ 0,0 XBROWSE FIELDS <fileds> HEADERS <headers,&#46;&#46;&#46;> PIXEL OF oDllg ALIAS <alias> < your other code for other xbrowse set up if any > oBrw&#58;CreateFromResource&#40; <ID> &#41; // instead of oBrw&#58;CreateFromCode&#40;&#41; // do not use oDlg&#58;oClient &#58;= oBrw ACTIVATE DIALOG oDlg CETNERED [/code:54l3n8ts] When you use oBrw:CreateFromResource( <ID> ) the @ <row>,<col> are ignored. You have to use CreateFromResource( <ID> ) after all your other code speicifications for your xbrowse.
Can I use TXBrowse class from Resource?
NageswaraRao, We should better have a REDEFINE XBROWSE ... to avoid confusions
Can I use TXBrowse class from Resource?
Dear Antonio & nageswaragunupudi & Stefan Thanks for your valuable help. Regards, Dutch
Can I use TXBrowse class from Resource?
Dear nageswaragunupudi, [quote:2g8xxvww]Actually you can use the same command for resources also like this: Code: @ 0,0 XBROWSE FIELDS <fileds> HEADERS <headers,...> PIXEL OF oDllg ALIAS <alias> < your other code for other xbrowse set up if any > oBrw:CreateFromResource( <ID> ) // instead of oBrw:CreateFromCode() // do not use oDlg:oClient := oBrw ACTIVATE DIALOG oDlg CETNERED When you use oBrw:CreateFromResource( <ID> ) the @ <row>,<col> are ignored. You have to use CreateFromResource( <ID> ) after all your other code speicifications for your xbrowse.[/quote:2g8xxvww] It has strange behavier as - GoDown() after bottom line will show the data from the line before bottom line but it's ok when put bChange := {|| oBrw:Refresh() } - ON DBLCLIK is not working but it's ok when use oBrw:bLDblClick := {||..} Regards, Dutch
Can I use TXBrowse class from Resource?
Mr Dutch > GoDown() after bottom line will show the data from the line before bottom line but it's ok when put bChange := {|| oBrw:Refresh() } > I too have noticed some painting problems when we press down arrow key continuously when we reach the end of the table. Seems this is an issue to be resolved. I would like to look into the behavior in greater detail and report here seeking a solution. I am not sure but I noticed this problem only when I use txbrowse from resource but not when I create from code. May I know your experience? As I said already, I am not very sure. I have to narrow down the problem which happens to me occasionally. > ON DBLCLIK is not working > This is not implemented in the command translate as of now. Hope these two issues will be resolved soon by FWH
Can I use TXBrowse class from Resource?
Thanks nageswaragunupudi Regards, Dutch
Can :bRClickData coexist with :bPopUp on xBrowse?
Hi. I'm looking to execute a code block when rightclicking on a specific column, as in: [code=fw:b3ppqyok]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />   WITH OBJECT ::<span style="color: #000000;">oGrid</span><br />      :<span style="color: #000000;">MedRec</span>:<span style="color: #000000;">bRClickData</span>   := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">ChngMRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oGrid</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oGrid</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:b3ppqyok] But for the rest of the columns I'd like to have a popup menu, as in: [code=fw:b3ppqyok]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   WITH OBJECT ::<span style="color: #000000;">oGrid</span><br />      :<span style="color: #000000;">bPopUp</span> := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">ContextMenu</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">MedRec</span>:<span style="color: #000000;">bRClickData</span>   := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">ChngMRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oGrid</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oGrid</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:b3ppqyok] the problem is that :bPopUp takes precedence. Is it possible to have :bPopUp execute only when :bRclickData is NIL? Reinaldo.
Can :bRClickData coexist with :bPopUp on xBrowse?
bPopup takes precedence over bRClickData. So for the same column, bRClickData does not work if bPopUp is defined. For your requirement, you may assign the context menu block to all individual columns except the one for which you want bRClickData instead of to the browse object. [code=fw:1wmszlwe]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH OBJECT ::<span style="color: #000000;">oGrid</span><br />      :<span style="color: #000000;">bPopUps</span> := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">ContextMenu</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #B900B9;">// NOTE: bPopups NOT :bPopup</span><br />      <br />   WITH OBJECT :<span style="color: #000000;">MedRec</span><br />      :<span style="color: #000000;">bPopUp</span>          := <span style="color: #00C800;">nil</span><br />      :<span style="color: #000000;">bRClickData</span>   := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">ChngMRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br />END<br />&nbsp;</div>[/code:1wmszlwe]
Can :bRClickData coexist with :bPopUp on xBrowse?
Mr. Rao; Excellent suggestion. Thank you, Reinaldo.
Can Colorized this border ?
could i program the color of this border? [img:ohpdrhkf]https&#58;//i&#46;postimg&#46;cc/QNJKdhC1/bb&#46;jpg[/img:ohpdrhkf]
Can Colorized this border ?
Show how you made this edge. on this forum, there are programmers, not soothsayers. Muestre cómo hizo este borde. en este foro, hay programadores, no adivinos. Te he pedido varias veces que siempre publiques el código. I have asked you several times to always post the code.
Can Colorized this border ?
[quote="karinha":1eza9pc7]Show how you made this edge. on this forum, there are programmers, not soothsayers. Muestre cómo hizo este borde. en este foro, hay programadores, no adivinos. Te he pedido varias veces que siempre publiques el código. I have asked you several times to always post the code.[/quote:1eza9pc7] You said right they are not fortune tellers but programmers Dijiste bien que no son adivinos sino programadores this is a simple buttonbar esta es una barra de botones simple which code should i display? ¿Qué código debo mostrar? [code=fw:1eza9pc7]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBarCat <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">60</span> &nbsp;<span style="color: #000000;">2015</span> &nbsp; BOTTOM BORDER</div>[/code:1eza9pc7]
Can Colorized this border ?
ok. sirve para otro usuário.
Can Colorized this border ?
Cuando alguien pide un ejemplo, debería publicarse, más o menos como si lo estuviera publicando ahora. Si el ejemplo no funciona para usted, funcionará para otro usuario del foro. Vea si este código le ayuda. When someone asks for an example, it should get posted, more or less like I'm posting it now. If the example doesn't work for you, it will work for another forum user. See if this code helps you. [code=fw:1dgzhl7o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// \SAMPLES\COLORBAR.PRG - <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --></span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#Define</span> CLR_LGREEN &nbsp; &nbsp; nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">190</span>, <span style="color: #000000;">215</span>, <span style="color: #000000;">190</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> aPubGrad &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>| lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lInvert, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> / <span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">253</span>, <span style="color: #000000;">222</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">231</span>, <span style="color: #000000;">151</span> <span style="color: #000000;">&#41;</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: #000000;">2</span> / <span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">215</span>, &nbsp;<span style="color: #000000;">84</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">162</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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: #000000;">&#123;</span> <span style="color: #000000;">1</span> / <span style="color: #000000;">2</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">219</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">244</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">207</span> - <span style="color: #000000;">50</span>, <span style="color: #000000;">221</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</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: #000000;">1</span> / <span style="color: #000000;">2</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">201</span> - <span style="color: #000000;">50</span>, <span style="color: #000000;">217</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd<br /><span style="color: #00C800;">STATIC</span> oDlg<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> oBar, cTitle, nRet<br /><br />&nbsp; &nbsp;cTitle := <span style="color: #ff0000;">"Color in ButtonBar in Dialog"</span><br /><br />&nbsp; &nbsp;SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> cTitle<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar _3D <span style="color: #0000ff;">OF</span> oWnd<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> ColorBar1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> cTitle NOINSET CLOCK DATE KEYBOARD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> ColorBar1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont, oBold, oBar, cTitle, oImp, oExit<br /><br />&nbsp; &nbsp;cTitle := <span style="color: #ff0000;">"Color in ButtonBar"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>, <span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> cTitle<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar _3D <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>, <span style="color: #000000;">70</span> <span style="color: #000000;">2007</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBar<br /><br />&nbsp; &nbsp; &nbsp; oBar:<span style="color: #000000;">bClrGrad</span> := aPubGrad<br /><br />&nbsp; &nbsp; &nbsp; oBar:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; oBar:<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; oBar:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oBar:<span style="color: #000000;">nClrText</span> := CLR_CYAN<br />&nbsp; &nbsp; &nbsp; oBar:<span style="color: #0000ff;">Adjust</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oImp <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span> &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\p</span>rinter.bmp"</span> FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> Imprimir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oImp:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Impresion"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oExit <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span> &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\E</span>xit.bmp"</span> FLAT &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oExit:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Exit"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Imprimir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;? <span style="color: #000000;">&#91;</span>Impresion<span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// FIN / END</span><br />&nbsp;</div>[/code:1dgzhl7o] Regards, saludos.
Can Colorized this border ?
[quote="karinha":1xp9xy4j]Cuando alguien pide un ejemplo, debería publicarse, más o menos como si lo estuviera publicando ahora. Si el ejemplo no funciona para usted, funcionará para otro usuario del foro. Vea si este código le ayuda. When someone asks for an example, it should get posted, more or less like I'm posting it now. If the example doesn't work for you, it will work for another forum user. See if this code helps you. [code=fw:1xp9xy4j]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// \SAMPLES\COLORBAR.PRG - <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --></span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#Define</span> CLR_LGREEN     nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">190</span>, <span style="color: #000000;">215</span>, <span style="color: #000000;">190</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> aPubGrad        <span style="color: #000000;">&#123;</span>| lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lInvert, ;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> / <span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">253</span>, <span style="color: #000000;">222</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">231</span>, <span style="color: #000000;">151</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span> / <span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">215</span>,  <span style="color: #000000;">84</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">162</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  ;<br />                        <span style="color: #000000;">&#125;</span>, ;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> / <span style="color: #000000;">2</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">219</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">244</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">207</span> - <span style="color: #000000;">50</span>, <span style="color: #000000;">221</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> / <span style="color: #000000;">2</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">201</span> - <span style="color: #000000;">50</span>, <span style="color: #000000;">217</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  ;<br />                        <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd<br /><span style="color: #00C800;">STATIC</span> oDlg<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> oBar, cTitle, nRet<br /><br />   cTitle := <span style="color: #ff0000;">"Color in ButtonBar in Dialog"</span><br /><br />   SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> cTitle<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar _3D <span style="color: #0000ff;">OF</span> oWnd<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> ColorBar1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> cTitle NOINSET CLOCK DATE KEYBOARD<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> ColorBar1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oFont, oBold, oBar, cTitle, oImp, oExit<br /><br />   cTitle := <span style="color: #ff0000;">"Color in ButtonBar"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <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;">-16</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>, <span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL ;<br />      <span style="color: #0000ff;">TITLE</span> cTitle<br /><br />   oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar _3D <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>, <span style="color: #000000;">70</span> <span style="color: #000000;">2007</span><br /><br />   WITH OBJECT oBar<br /><br />      oBar:<span style="color: #000000;">bClrGrad</span> := aPubGrad<br /><br />      oBar:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#125;</span><br />      oBar:<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#125;</span><br /><br />      oBar:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br /><br />      oBar:<span style="color: #000000;">nClrText</span> := CLR_CYAN<br />      oBar:<span style="color: #0000ff;">Adjust</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   END<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oImp <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span>       ;<br />      FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\p</span>rinter.bmp"</span> FLAT ;<br />      <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> Imprimir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   oImp:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Impresion"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oExit <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span>       ;<br />      FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\E</span>xit.bmp"</span> FLAT    ;<br />      <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   oExit:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Exit"</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Imprimir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   ? <span style="color: #000000;">&#91;</span>Impresion<span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// FIN / END</span><br /> </div>[/code:1xp9xy4j] Regards, saludos.[/quote:1xp9xy4j] dear sir i didn't ask to move an example to color the buttonbar. my request was quite different. Once again I ask you to be punctual on the answers (if you want to help) and not to answer with other arguments or other things that I have never asked you. I only asked if it was possible to color the border of the buttonbar, I didn't ask what you answered
Can Colorized this border ?
Silvio, my solution is tested on all 4 positions possible to define : pensize, color and the pen transparentlevel [img:5gr3pt56]http&#58;//www&#46;service-fivewin&#46;de/images/Silvio1&#46;png[/img:5gr3pt56] [img:5gr3pt56]http&#58;//www&#46;service-fivewin&#46;de/images/Btnbar1&#46;png[/img:5gr3pt56] regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Can Colorized this border ?
I resolved thanks
Can FW also read a intire online webshop ?
Today I was totaly surpriced that a colluege of mine presented me a exel file with the content of my online webshop !! All catagories and all product info is inside the exel file. So, he was able with a Exel Macro to read my webshop. How great is this Can this be done also with FW ? shop = www(dot)maveco-webshop(dot)be Note : I just did some googleling and it seems to be called : website scraping... interesting
Can FW also read a intire online webshop ?
Yes, interesting. By the way, can you provide us the link to your webshop?
Can FW also read a intire online webshop ?
<!-- m --><a class="postlink" href="https://www.maveco-webshop.be">https://www.maveco-webshop.be</a><!-- m --> Maybe the code of mr. Rao's and Uwe for retrieving the topics from this forum are the base of this new setup ?
Can FW also read a intire online webshop ?
Here is the basic code from Mr. Rao for reading the forum This code is used inside a loop to get all forum topics... <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=">viewtopic.php?f=3&t=</a><!-- l -->" + cValToChar( nTopic ) How do we find the code from a webshop that is needed for the loop in order to get all the product data ? <!-- m --><a class="postlink" href="https://www.maveco-webshop.be/">https://www.maveco-webshop.be/</a><!-- m --> (here is extra code needed) + a counter like nTopic Any idea to get me started ? [code=fw:2s43j20t]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">static</span> nLastTopic := <span style="color: #000000;">33420</span> &nbsp;<span style="color: #B900B9;">// rage of topics</span><br /><span style="color: #00C800;">static</span> nFirstopic := <span style="color: #000000;">33400</span><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;SET DATE BRITISH<br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DELETED <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;RDDSETDEFAULT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SAMPLES.DBF"</span>, <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TOPICNO"</span>, &nbsp; <span style="color: #ff0000;">'N'</span>, &nbsp;<span style="color: #000000;">6</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TOPIC"</span>, &nbsp; &nbsp; <span style="color: #ff0000;">'C'</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"AUTHOR"</span>, &nbsp; &nbsp;<span style="color: #ff0000;">'C'</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DATE"</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">'D'</span>, &nbsp;<span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"CODE"</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">'M'</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"DB"</span> <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 DB<br /><br />&nbsp; &nbsp;USE SAMPLES EXCLUSIVE VIA <span style="color: #ff0000;">"DBFCDX"</span><br /><br />&nbsp; &nbsp;ForumSamples<span style="color: #000000;">&#40;</span> nLastTopic, nFirsTopic <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;BrowseSamples<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> BrowseSamples<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oFont, oBold, oMono, oGet, oBrw<br /><br />&nbsp; &nbsp;SET ORDER <span style="color: #0000ff;">TO</span> TAG TOPICNO<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-18</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oMono <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Lucida Console"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">900</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"SAMPLES IN FWH FORUMS"</span><br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">90</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE <span style="color: #ff0000;">"SAMPLES"</span> ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">"TOPICNO"</span>, <span style="color: #ff0000;">"DATE"</span>, <span style="color: #ff0000;">"AUTHOR"</span> ;<br />&nbsp; &nbsp; &nbsp; AUTOSORT ;<br />&nbsp; &nbsp; &nbsp; LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLROWRC<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bChange</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lIncrFilter</span> &nbsp; := .t.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bSeek</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> |c| <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> BrwFilter<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">SAY</span> TRIM<span style="color: #000000;">&#40;</span> SAMPLES->TOPIC <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">860</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Filter containing all words any where"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">60</span>,<span style="color: #000000;">340</span> <span style="color: #0000ff;">SAY</span> oBrw:<span style="color: #000000;">oSeek</span> <span style="color: #0000ff;">PROMPT</span> oBrw:<span style="color: #000000;">cSeek</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">540</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_HRED,CLR_YELLOW<br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">90</span>,<span style="color: #000000;">420</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"CODE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">460</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">120</span>,<span style="color: #000000;">420</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> SAMPLES->CODE <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">460</span>,<span style="color: #000000;">540</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; MEMO READONLY <span style="color: #0000ff;">FONT</span> oMono <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bPainted</span> := <span style="color: #000000;">&#123;</span> || oDlg:<span style="color: #000000;">Box</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59</span>,<span style="color: #000000;">339</span>,<span style="color: #000000;">81</span>,<span style="color: #000000;">881</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><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;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oMono, oBold<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;">function</span> BrwFilter<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lFound &nbsp; := .t.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aTokens<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cSaveFilter := DBFILTER<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nSaveRec &nbsp; &nbsp;:= RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cFilter &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .t.<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;c &nbsp;:= UPPER<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aTokens &nbsp;:= HB_ATokens<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each c in aTokens<br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> cFilter, <span style="color: #ff0000;">"'"</span> + c + <span style="color: #ff0000;">"' $ UPPER( DBRECORDINFO( 9 ) )"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;cFilter &nbsp;:= FW_ArrayAsList<span style="color: #000000;">&#40;</span> cFilter, <span style="color: #ff0000;">" .AND. "</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET FILTER <span style="color: #0000ff;">TO</span> &cFilter<br />&nbsp; &nbsp;GO TOP<br />&nbsp; &nbsp;lFound &nbsp; := <span style="color: #000000;">&#40;</span> OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> lFound<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ForumSamples<span style="color: #000000;">&#40;</span> nTopic, nLast <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cTopic, cUrl, cPageURL, cUser, cText, cCode, nPage, nPages, n, cLeft, dDate<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nTopic &nbsp; := <span style="color: #000000;">33507</span>, nLast := nTopic - <span style="color: #000000;">50</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> nTopic := nTopic <span style="color: #0000ff;">to</span> nLast step <span style="color: #000000;">-1</span><br /><br />&nbsp; &nbsp; &nbsp; nPage &nbsp; &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; cUrl &nbsp;:= TopicNoToURL<span style="color: #000000;">&#40;</span> nTopic <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cPageURL := cUrl + <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nPage > <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&start="</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> nPage * <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgRun<span style="color: #000000;">&#40;</span> cPageURL, <span style="color: #ff0000;">"READING FORUM PAGE"</span>, <span style="color: #000000;">&#123;</span> || ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cText := WebPageContents<span style="color: #000000;">&#40;</span> cPageUrl, .t. <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nPage == <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPages &nbsp; := PageCount<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cTopic &nbsp; := textbetween<span style="color: #000000;">&#40;</span> ctext, <span style="color: #ff0000;">"<h2>"</span>, <span style="color: #ff0000;">"</h2>"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cTopic &nbsp; := textbetween<span style="color: #000000;">&#40;</span> cTopic, <span style="color: #ff0000;">">"</span>, <span style="color: #ff0000;">"</a>"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n &nbsp; &nbsp; := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !Empty<span style="color: #000000;">&#40;</span> cCode := TextBetween<span style="color: #000000;">&#40;</span> cText, <span style="color: #ff0000;">"<code>"</span>, <span style="color: #ff0000;">"</code>"</span>, n, @cLeft <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cUser := GetUserName<span style="color: #000000;">&#40;</span> cLeft, @dDate <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dDate := CTOD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= ExtractPrgCode<span style="color: #000000;">&#40;</span> cCode <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DBAPPEND<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->TOPICNO := nTopic<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->TOPIC &nbsp; := cTopic<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->AUTHOR &nbsp;:= cUser<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->DATE &nbsp; &nbsp;:= dDate<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->CODE &nbsp; &nbsp;:= cCode<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">enddo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPage++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nPage > nPages<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXIT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">enddo</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span> nTopic<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;">function</span> TopicNoToURL<span style="color: #000000;">&#40;</span> nTopic <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> &nbsp; <span style="color: #ff0000;">"http://forums.fivetechsupport.com/viewtopic.php?f=3&t="</span> + cValToChar<span style="color: #000000;">&#40;</span> nTopic <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> TextBetween<span style="color: #000000;">&#40;</span> cText, cStartTag, cCloseTag, nPos, cLeft, cRight <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cRet &nbsp;:= <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !<span style="color: #000000;">&#40;</span> cStartTag $ cText <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cLeft &nbsp; &nbsp;:= cText<br />&nbsp; &nbsp; &nbsp; cRight &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;cRight &nbsp; := AfterAtNum<span style="color: #000000;">&#40;</span> cStartTag, cText, &nbsp;nPos <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cRet &nbsp; &nbsp; := BeforAtNum<span style="color: #000000;">&#40;</span> cCloseTag, cRight, <span style="color: #000000;">1</span> &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> PCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; cLeft &nbsp; &nbsp;:= BeforAtNum<span style="color: #000000;">&#40;</span> cStartTag, cText, &nbsp;nPos <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cRight &nbsp; := AfterAtNum<span style="color: #000000;">&#40;</span> cCloseTag, cRight, <span style="color: #000000;">1</span> &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cRet<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ExtractPrgCode<span style="color: #000000;">&#40;</span> cCode <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nFrom, nUpto, cLeft, cRight, cToken<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nFor<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aSubs := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'<br />'</span>,CRLF <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'&nbsp;'</span>,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'ÿ'</span>,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'&quot;'</span>,<span style="color: #ff0000;">'"'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aSubs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp;:= StrTran<span style="color: #000000;">&#40;</span> cCode, aSubs<span style="color: #000000;">&#91;</span> nFor, <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aSubs<span style="color: #000000;">&#91;</span> nFor, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !Empty<span style="color: #000000;">&#40;</span> cToken := TextBetween<span style="color: #000000;">&#40;</span> cCode, <span style="color: #ff0000;">"<"</span>, <span style="color: #ff0000;">">"</span>, <span style="color: #000000;">1</span>, @cLeft, @cRight <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp;:= cLeft + cRight<br />&nbsp; &nbsp;<span style="color: #00C800;">enddo</span><br /><br />&nbsp; &nbsp;aSubs := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'&gt;'</span>, <span style="color: #ff0000;">">"</span> &nbsp;<span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'&lt;'</span>, <span style="color: #ff0000;">"<"</span> &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aSubs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp;:= StrTran<span style="color: #000000;">&#40;</span> cCode, aSubs<span style="color: #000000;">&#91;</span> nFor, <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aSubs<span style="color: #000000;">&#91;</span> nFor, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !Empty<span style="color: #000000;">&#40;</span> cToken := TextBetween<span style="color: #000000;">&#40;</span> cCode, <span style="color: #ff0000;">"&#"</span>, <span style="color: #ff0000;">";"</span>, <span style="color: #000000;">1</span>, @cLeft, @cRight <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cToken &nbsp; := Chr<span style="color: #000000;">&#40;</span> Val<span style="color: #000000;">&#40;</span> cToken <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp;:= cLeft + cToken + cRight<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">enddo</span><br /><br /><span style="color: #00C800;">return</span> cCode<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> PageCount<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nAt<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nPages &nbsp; := <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Page <strong>"</span>, cText <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; cText &nbsp; &nbsp;:= <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nAt + <span style="color: #000000;">14</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nPages &nbsp; := Val<span style="color: #000000;">&#40;</span> AfterAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<strong>"</span>, cText, <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;">endif</span><br /><br /><span style="color: #00C800;">return</span> nPages<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> GetUserName<span style="color: #000000;">&#40;</span> cText, dDate <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c1 &nbsp; &nbsp;:= <span style="color: #ff0000;">"/memberlist.php?mode=viewprofile&amp;u="</span> <span style="color: #B900B9;">//2342">cnavarro</a></strong> &raquo; Tue Jan 17</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c2 &nbsp; &nbsp;:= <span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"username]<br />&nbsp; &nbsp;local nAt &nbsp; := RAT( c1, cText )<br />&nbsp; &nbsp;local n2 &nbsp; &nbsp;:= RAT( c2, cText )<br />&nbsp; &nbsp;local cUser := "</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp;local cDate<br /><br />&nbsp; &nbsp;nAt &nbsp; &nbsp; &nbsp;:= Max( nAt, n2 )<br />&nbsp; &nbsp;if nAt > 0<br />&nbsp; &nbsp; &nbsp; cText &nbsp; &nbsp;:= SubStr( cText, nAt, 200 )<br />&nbsp; &nbsp; &nbsp; cUser &nbsp; &nbsp;:= TextBetween( cText, "</span>><span style="color: #ff0000;">", "</span><<span style="color: #ff0000;">", 1 )<br />&nbsp; &nbsp; &nbsp; cDate &nbsp; &nbsp;:= AllTrim( TextBetween( cText, "</span>&raquo;<span style="color: #ff0000;">", "</span></p><span style="color: #ff0000;">" ) )<br />&nbsp; &nbsp; &nbsp; cDate &nbsp; &nbsp;:= Upper( AfterAtNum( "</span> <span style="color: #ff0000;">", cDate, 1 ) )<br />&nbsp; &nbsp; &nbsp; dDate &nbsp; &nbsp;:= uCharToVal( cDate, 'D' )<br />&nbsp; &nbsp;endif<br /><br />return cUser<br /><br />//----------------------------------------------------------------------------//<br /><br /></span></div>[/code:2s43j20t]
Can FW also read a intire online webshop ?
This seems to be the part of code that would be needed in order to read the webshop, but it is giving no data. <!-- m --><a class="postlink" href="https://www.maveco-webshop.be/bedrijfskleding/broek/?page=2">https://www.maveco-webshop.be/bedrijfsk ... ek/?page=2</a><!-- m --> If I copy this code into Chrome, then it shows data, but into the program I see zero
Can FW also read a intire online webshop ?
I did some more testing, but i get no data in the cText. Is it possible that the function Webpagecontents is not able to retrive the data when it is a https (notice the s) site? with http seems to give data ... //cData = "https://www.maveco-webshop.be/" cData = "http://forums.fivetechsupport.com/" //cData = "http://www.kaboutersopglabbeek.be/" MsgRun( cPageURL, "READING FORUM PAGE", { || ; cText := WebPageContents( cData, .t. ) ; } ) msginfo(cText)
Can FW also read a intire online webshop ?
The function reads the contents of "https" also. [code=fw:4czhpv5d]<div class="fw" id="{CB}" style="font-family: monospace;">FW_MEMOEDIT<span style="color: #000000;">&#40;</span> WebPageContents<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"https://www.maveco-webshop.be/"</span>, .t. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:4czhpv5d] [url=https&#58;//imageshack&#46;com/i/poiKJhcXp:4czhpv5d][img:4czhpv5d]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/924/iKJhcX&#46;png[/img:4czhpv5d][/url:4czhpv5d] This page has 11 tables. [code=fw:4czhpv5d]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; cText := WebPageContents<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"https://www.maveco-webshop.be/"</span>, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;? OCCURS<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"</table>"</span>, cText <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:4czhpv5d] Result : 11 Next read all the 11 tables one by one and parse each table to find what we want.
Can FW also read a intire online webshop ?
How could i do the folowing ? assume is have a start description field like "Safety shoes S3 with composit upper and kevlar sole type 1254" Then I have a huge dbf with several field like 'description' and 'memo' and 'reference' .... How can I put in a array or dbf ALL the records that meet one of the words from the start desc. field ? So all records containing "Safety" or "shoes" or "composit" or "kevlar", .... should go in 1 array/browse in order to link one of them to the start description. In this function I will also put a array of words that are not seeked for like (S3, and, in, ..) words that are to commen in many descriptions will be skipped. Any Idea how to start ?
Can FW also read a intire online webshop ?
I'm trying to analyse the function below and see that this is the string that is build up when typing words in Xbrowse cFilter will look like this --->> 'DASSY' $ UPPER( DBRECORDINFO( 9 ) ) .AND. 'BARI' $ UPPER( DBRECORDINFO( 9 ) ) What is DBRECORDINFO(9) doing ? Looking into all field <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> What I finaly would like todo is : cLookup = "Dassy, S3, 1523, Shoe, Safety" cLookupfield = "Description" and all records with words into cLookup should be added to the result xbrowse filter (maybe looking only in the cLookupfield) [code=fw:3a5vceio]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> BrwFilter<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> lFound   := .t.<br />   <span style="color: #00C800;">local</span> aTokens<br />   <span style="color: #00C800;">local</span> cSaveFilter := DBFILTER<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nSaveRec    := RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> cFilter     := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> .t.<br />   <span style="color: #00C800;">endif</span><br /><br />   c  := UPPER<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br />   aTokens  := HB_ATokens<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">for</span> each c in aTokens<br />      AAdd<span style="color: #000000;">&#40;</span> cFilter, <span style="color: #ff0000;">"'"</span> + c + <span style="color: #ff0000;">"' $ UPPER( DBRECORDINFO( 9 ) )"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">next</span><br /><br />   cFilter  := FW_ArrayAsList<span style="color: #000000;">&#40;</span> cFilter, <span style="color: #ff0000;">" .AND. "</span> <span style="color: #000000;">&#41;</span><br /><br />   SET FILTER <span style="color: #0000ff;">TO</span> &cFilter<br />   GO TOP<br />   lFound   := <span style="color: #000000;">&#40;</span> OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> lFound</div>[/code:3a5vceio]
Can FW also read a intire online webshop ?
[quote:polo7eyv]cFilter will look like this --->> 'DASSY' $ UPPER( DBRECORDINFO( 9 ) ) .AND. 'BARI' $ UPPER( DBRECORDINFO( 9 ) ) What is DBRECORDINFO(9) doing ? Looking into all field <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [/quote:polo7eyv] This is the full record as a string. You are in the right direction. You will need to case-insensitive comparision. Use FW_AtX() You can search for an array of words in a string
Can FW also read a intire online webshop ?
Alternatively [code=fw:z3pok9an]<div class="fw" id="{CB}" style="font-family: monospace;">hb_wildMatchI<span style="color: #000000;">&#40;</span> cPattern, cString <span style="color: #000000;">&#41;</span></div>[/code:z3pok9an] <!-- m --><a class="postlink" href="http://kresin.ru/en/hrbfaq_3.html#Doc13_9">http://kresin.ru/en/hrbfaq_3.html#Doc13_9</a><!-- m -->
Can FW also read a intire online webshop ?
[quote="hmpaquito":2gnte96h]Alternatively [code=fw:2gnte96h]<div class="fw" id="{CB}" style="font-family: monospace;">hb_wildMatchI<span style="color: #000000;">&#40;</span> cPattern, cString <span style="color: #000000;">&#41;</span></div>[/code:2gnte96h] <!-- m --><a class="postlink" href="http://kresin.ru/en/hrbfaq_3.html#Doc13_9">http://kresin.ru/en/hrbfaq_3.html#Doc13_9</a><!-- m -->[/quote:2gnte96h] Interesting site... Can all hb functions be used in FW
Can FW also read a intire online webshop ?
Is there also a HTML class ? I found this : <!-- m --><a class="postlink" href="https://github.com/harbour/core/blob/master/tests/html.prg">https://github.com/harbour/core/blob/ma ... s/html.prg</a><!-- m --> Is there a more complete version ? Not for writing, but read a html page and extract all stuff from it. <title>test</title> etc... I can do it with the sample code here, but who knows... maybe a better class exsist to work/expand .
Can FW also read a intire online webshop ?
Today I found this code in java. It should show the tags in a html page. I can read the tags in FW when i know te name of them en take the text between the corresponding text. Do we have a corresponding function like getelementbytagname ? [code=fw:tjyt8q3f]<div class="fw" id="{CB}" style="font-family: monospace;"><br />let tags = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span>tag <span style="color: #0000ff;">of</span> document.body.getElementsByTagName<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'*'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />  <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!tags.includes<span style="color: #000000;">&#40;</span>tag.tagName<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    tags.push<span style="color: #000000;">&#40;</span>tag.tagName<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br />console.log<span style="color: #000000;">&#40;</span>tags<span style="color: #000000;">&#41;</span><br /> </div>[/code:tjyt8q3f] <!-- m --><a class="postlink" href="https://stackoverflow.com/questions/60235906/how-to-get-a-list-of-unique-tags-used-on-a-html-file">https://stackoverflow.com/questions/602 ... -html-file</a><!-- m -->
Can FW also read a intire online webshop ?
[code=fw:1zpicl8u]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> GetTag<span style="color: #000000;">&#40;</span> cTag, cHtml, nPos <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText := BeforAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"</"</span> + cTag + <span style="color: #ff0000;">">"</span>, cHtml, IfNil<span style="color: #000000;">&#40;</span> nPos, <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;">local</span> nAt<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nAt &nbsp; := <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> RAT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<"</span> + cTag + <span style="color: #ff0000;">" "</span>, cText <span style="color: #000000;">&#41;</span>, RAT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<"</span> + cTag + <span style="color: #ff0000;">">"</span>, cText <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cText := AfterAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">">"</span>, <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nAt + Len<span style="color: #000000;">&#40;</span> cTag <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cText</div>[/code:1zpicl8u]
Can Fivewin be used for process IO hardware ?
Just wonder if Fivewin can be used as platform (graphics layout) for processing utilities ? I'v done some very small testing with Arduino I/O board, but FW is more fun in visuals and keeping data. At this point I would like to know if I can get FW to know if a beam (ex. laser) is broken by trespassing the laser. The laser can give a electric signal (by a IO port) Maybe there is some hardware out there that can communicate with FW. I didn't find mutch in the topic. Just wonder ... Marc
Can Fivewin be used for process IO hardware ?
Marc, This seems to be the way to go: [url:32d7vmze]http&#58;//xanthium&#46;in/Serial-Port-Programming-using-Win32-API[/url:32d7vmze] Seen here: [url:32d7vmze]https&#58;//forum&#46;arduino&#46;cc/index&#46;php?topic=438190&#46;0[/url:32d7vmze]
Can Fivewin be used for process IO hardware ?
Yes, this is a point for information about IO and so on. <!-- m --><a class="postlink" href="https://xanthium.in/cross-platform-attiny-2313a-rs485-communication-with-pc-led-control-csharp-dot-net">https://xanthium.in/cross-platform-atti ... rp-dot-net</a><!-- m --> From the Site : The Control Software that runs on Windows PC is written in C# and runs on the .Net Framework. My Q : In the forum I have seens that FW needs activeX and no .net. This is still so anno 2018 ? Control software is written in C# using Visual Studio community edition IDE. My Q : Visual studio is also used by people on the forum. So FW can maybe being used to interface ? This is how the software looks like : //| Compiler : AVR GCC (WinAVR) | //| Microcontroller : ATtiny2313A [code=fw:1gil98ks]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <stdint.h><br /><span style="color: #00D7D7;">#include</span> <avr/io.h><br /><span style="color: #00D7D7;">#include</span> <util/delay.h><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"RS485.h"</span><br />int main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    char <span style="color: #00C800;">data</span> = <span style="color: #ff0000;">' '</span>;<br />    uint16_t Baud = <span style="color: #000000;">12</span>;             <span style="color: #B900B9;">// from datasheet for Clock = 1Mhz,4800bps</span><br />    <br />    DDRB |= <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB2<span style="color: #000000;">&#41;</span> | <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB3<span style="color: #000000;">&#41;</span> |<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB4<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// PB2,PB3,PB4 all output</span><br />    DDRD |= <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PD5<span style="color: #000000;">&#41;</span>;                      <span style="color: #B900B9;">// PD5 all output</span><br />    <br />    PORTB = 0x00;<br />    PORTD = 0x00;<br />    <br />    RS485_init<span style="color: #000000;">&#40;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#41;</span>;                 <span style="color: #B900B9;">// intialize RS485 Port @4800bps</span><br />    <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#123;</span><br />        <span style="color: #00C800;">data</span>  = RS485_Receive_Byte<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;   <span style="color: #B900B9;">// Wait for PC to send data via  RS485 port </span><br />    <br />        <span style="color: #B900B9;">// use a switch to select appropriate action receiving commands from PC </span><br />        <span style="color: #00C800;">switch</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">data</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />                <span style="color: #00C800;">case</span> <span style="color: #ff0000;">'A'</span>:   PORTB |= <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB3<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Switch ON LED D4</span><br />                            <span style="color: #00C800;">break</span>;<br />                    <br />                <span style="color: #00C800;">case</span> <span style="color: #ff0000;">'B'</span>:   PORTB |= <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB4<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Switch ON LED D5</span><br />                            <span style="color: #00C800;">break</span>;<br />                    <br />                <span style="color: #00C800;">case</span> <span style="color: #ff0000;">'C'</span>:   PORTB |= <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB2<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Switch ON LED D2</span><br />                            <span style="color: #00C800;">break</span>;<br />                    <br />                <span style="color: #00C800;">case</span> <span style="color: #ff0000;">'D'</span>:   PORTD |= <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PD5<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Switch ON LED D3</span><br />                            <span style="color: #00C800;">break</span>;<br />                    <br />                <span style="color: #00C800;">default</span>:    PORTB &= ~<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB3<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Switch OFF LED D4</span><br />                            PORTB &= ~<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB4<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Switch OFF LED D5</span><br />                            PORTB &= ~<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB2<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Switch OFF LED D2</span><br />                            PORTD &= ~<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PD5<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Switch OFF LED D3</span><br />                            <span style="color: #00C800;">break</span>;<br />            <span style="color: #000000;">&#125;</span><span style="color: #B900B9;">//end of switch</span><br />    <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br />    <br />    <br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//used for indicating where the code is at a given time ,Debugging purpose only</span><br />void LED_Debug_Blink<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    char i = <span style="color: #000000;">0</span>;<br />    <br />    DDRB  |=  <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB3<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// PB3 Output</span><br />    <br />    <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span>i=<span style="color: #000000;">0</span>;i<<span style="color: #000000;">2</span>;i++<span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#123;</span><br />        PORTB |=  <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB3<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// PB3 = High,Lights up D4</span><br />        _delay_ms<span style="color: #000000;">&#40;</span><span style="color: #000000;">500</span><span style="color: #000000;">&#41;</span>;<br />        PORTB &=  ~<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<PB3<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">//PB3 = Low,Switch OFF D4</span><br />        _delay_ms<span style="color: #000000;">&#40;</span><span style="color: #000000;">500</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #000000;">&#125;</span><br />    <br /><span style="color: #000000;">&#125;</span><br /><br /> </div>[/code:1gil98ks] Now before I proceed : I have seen FWH connect to different stuff with calls do DLL's and more stuff. Is it so that if a connection can be make, maybe like above, we could use a Tbtnbmp or other controle and execute it.
Can Fivewin be used for process IO hardware ?
Marc, You don't need C# at all for this to work: [url:2w25s51q]http&#58;//xanthium&#46;in/Serial-Port-Programming-using-Win32-API[/url:2w25s51q] C# is based on .NET virtual machine and it is not compatible with Harbour
Can Fivewin be used for process IO hardware ?
Antonio, Could Fivewin for Linux be used for this?
Can Fivewin be used for process IO hardware ?
George, Linux C serial communication with arduino [url:369g5895]http&#58;//forum&#46;arduino&#46;cc/index&#46;php?topic=45115&#46;0[/url:369g5895]
Can Fivewin be used for process IO hardware ?
Maybe there is a easy way of doing what I want. I want to count how many times a laserbeam is interupted. With that count, I need to present data on screen with FW. Fw can open a cashdrawer and also read data from a scanner (barcode) This is done by COM port. There is surely hardware on the internet that can give a signal (laser beam) that FW can read from comport. This idea is correct not ? Than I can look this way. The previous is much more complex. Marc
Can Fivewin be used for process IO hardware ?
There is a sample from Enrico that read/write to COM <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=4378&hilit=read+comport">viewtopic.php?f=3&t=4378&hilit=read+comport</a><!-- l --> A com port is reading text data, but can also read a power signal ? It has to open a cashdrawer with a power signal) BTW : I have no background on technics... MENUITEM "DrawerOpen" ACTION Drawer('Open Drawer','COM1',4800,chr(27)+chr(112)+chr(0)+chr(7)+chr(35),'','') [code=fw:1xbxpv0v]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Drawer<span style="color: #000000;">&#40;</span>x0,x1,x2,x3,x4,x5<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> cDcb, nBytes<br />   <span style="color: #00C800;">local</span> nComm := OpenComm<span style="color: #000000;">&#40;</span> alltrim<span style="color: #000000;">&#40;</span>x1<span style="color: #000000;">&#41;</span>,x2, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nError<br /><br />   <span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span>x1<span style="color: #000000;">&#41;</span> .or. alltrim<span style="color: #000000;">&#40;</span>x1<span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">'-'</span> .or. alltrim<span style="color: #000000;">&#40;</span>x1<span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">'SCREEN'</span><br />     <span style="color: #00C800;">return</span> .t.<br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> upper<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">left</span><span style="color: #000000;">&#40;</span>x1,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">'LPT'</span><br />     BuildCommDcb<span style="color: #000000;">&#40;</span> alltrim<span style="color: #000000;">&#40;</span>x1<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">":"</span>+str<span style="color: #000000;">&#40;</span>x2,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">",n,8,1"</span>, @cDcb <span style="color: #000000;">&#41;</span><br />     SetCommState<span style="color: #000000;">&#40;</span> cDcb <span style="color: #000000;">&#41;</span><br />     cNxLine=CRLF<br />   <span style="color: #00C800;">else</span><br />     <span style="color: #00C800;">if</span> alltrim<span style="color: #000000;">&#40;</span>x1<span style="color: #000000;">&#41;</span><><span style="color: #ff0000;">'SCREEN'</span><br />       x3=padl<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">left</span><span style="color: #000000;">&#40;</span>x3,<span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">20</span>,<span style="color: #ff0000;">' '</span><span style="color: #000000;">&#41;</span><br />       x4=padl<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">left</span><span style="color: #000000;">&#40;</span>x4,<span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">20</span>,<span style="color: #ff0000;">' '</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">endif</span><br />     cNxLine=CHR<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">if</span> ! BuildCommDcb<span style="color: #000000;">&#40;</span> alltrim<span style="color: #000000;">&#40;</span>x1<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">":"</span>+str<span style="color: #000000;">&#40;</span>x2,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">",n,8,1"</span>, @cDcb <span style="color: #000000;">&#41;</span><br />      nError = GetCommError<span style="color: #000000;">&#40;</span> nComm <span style="color: #000000;">&#41;</span><br />      Msgwait<span style="color: #000000;">&#40;</span> x0+<span style="color: #ff0000;">" : BuildCommDcb Error: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">endif</span><br /><br />    <span style="color: #00C800;">if</span> ! SetCommState<span style="color: #000000;">&#40;</span> cDcb <span style="color: #000000;">&#41;</span><br />      nError = GetCommError<span style="color: #000000;">&#40;</span> nComm <span style="color: #000000;">&#41;</span><br />      Msgwait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SetCommState Error: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> .t.<br />    <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span>x5<span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">for</span> iii=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>x5<span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nBytes := WriteComm<span style="color: #000000;">&#40;</span> nComm, x5<span style="color: #000000;">&#91;</span>iii<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> < <span style="color: #000000;">0</span><br />         nError = GetCommError<span style="color: #000000;">&#40;</span> nComm <span style="color: #000000;">&#41;</span><br />         Msgwait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"WriteComm Error: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">else</span><br />         Msgwait<span style="color: #000000;">&#40;</span> x0+<span style="color: #ff0000;">' : Ok'</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">endif</span><br />     <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">else</span><br />     <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nBytes := WriteComm<span style="color: #000000;">&#40;</span> nComm, x3+cNxLine <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> < <span style="color: #000000;">0</span><br />       nError = GetCommError<span style="color: #000000;">&#40;</span> nComm <span style="color: #000000;">&#41;</span><br />       Msgwait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"WriteComm Error: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">else</span><br />       Msgwait<span style="color: #000000;">&#40;</span> x0+<span style="color: #ff0000;">' : Ok'</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// important, do not change the delay</span><br />     <span style="color: #00C800;">endif</span><br />     <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span>x4<span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nBytes := WriteComm<span style="color: #000000;">&#40;</span> nComm, x4+cNxLine <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> < <span style="color: #000000;">0</span><br />         nError = GetCommError<span style="color: #000000;">&#40;</span> nComm <span style="color: #000000;">&#41;</span><br />         Msgwait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"WriteComm Error: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">else</span><br />         Msgwait<span style="color: #000000;">&#40;</span> x0+<span style="color: #ff0000;">' : Ok'</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">endif</span><br />     <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> FlushComm<span style="color: #000000;">&#40;</span> nComm, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><br />      nError = GetCommError<span style="color: #000000;">&#40;</span> nComm <span style="color: #000000;">&#41;</span><br />      Msgwait<span style="color: #000000;">&#40;</span> x0+<span style="color: #ff0000;">" : FlushComm Error: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">01</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> ! CloseComm<span style="color: #000000;">&#40;</span> nComm <span style="color: #000000;">&#41;</span><br />      nError = GetCommError<span style="color: #000000;">&#40;</span> nComm <span style="color: #000000;">&#41;</span><br />      Msgwait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CloseComm Error: "</span> + Str<span style="color: #000000;">&#40;</span> nError <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">''</span>,.<span style="color: #000000;">01</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:1xbxpv0v] So in this code there is the power signal to open the drawer. This kind of sensor could give a powersignal to the COM port [img:1xbxpv0v]https&#58;//www&#46;maveco&#46;be/fivewin/deur&#46;jpg[/img:1xbxpv0v] It is that signal that I want to track and use in a FW app.
Can Fivewin be used for process IO hardware ?
Reading about COM port is telling me that I need to look for the right PIN's from the Com-connector. that is used for power signal in/out Has anyone done this for a application ?
Can Fivewin be used for process IO hardware ?
I believe that I have seen gauges and meters somewhere on the forum ? Anybody now where ? Meters like this ? I would like to look into them. [img:1lysiepq]https&#58;//www&#46;maveco&#46;be/fivewin/arduino&#46;jpg[/img:1lysiepq]
Can I Manage gotfocus event of TwBrowse (Std.)
Hello All, Can I control gotfocus event of TwBrwse (standard). Typically I wish to set filter when listbox receives focus. I am trying to use Listbox in Tab of Folder. Can somebody help ? TIA Milan.
Can I Manage gotfocus event of TwBrowse (Std.)
oBrw:bGotFocus EMG
Can I Manage gotfocus event of TwBrowse (Std.)
[quote="EnricoMaria":2rizgdrg]oBrw:bGotFocus EMG[/quote:2rizgdrg] Dear Enrico, No it does not work. I am using Nov-2005 build. With best regards, Milan.
Can I Modify Error Log info?
Dear All, Can I modify the message or information of contact to my info? [url=http&#58;//image&#46;ohozaa&#46;com/view2/y6kUC2HRV98mlIMd:1qxw2oe3][img:1qxw2oe3]http&#58;//image&#46;ohozaa&#46;com/i/d78/irRGOn&#46;jpg[/img:1qxw2oe3][/url:1qxw2oe3]
Can I Modify Error Log info?
Dutch, It seems as you are not using FWH's standard errorsys. FWH errorsys full source code is available at: FWH\source\function\errsysw.prg
Can I Modify Error Log info?
Dear Antonio, I've got it now, it is the replacement errsysw.prg from Uwe source code function (PickDate). [quote="Antonio Linares":kqmr61cn]Dutch, It seems as you are not using FWH's standard errorsys. FWH errorsys full source code is available at: FWH\source\function\errsysw.prg[/quote:kqmr61cn]
Can I Modify Error Log info?
this is the current dialog of error of fivewin, this is create in source\function\errsysw.prg [img:2drfld09]http&#58;//i&#46;imgur&#46;com/QJoV5hc&#46;png[/img:2drfld09] yours is diferent.
Can I Modify Error Log info?
Dear Carlos, Thank you so much, I've got it now. [quote="carlos vargas":1cgb8orn]this is the current dialog of error of fivewin, this is create in source\function\errsysw.prg [img:1cgb8orn]http&#58;//i&#46;imgur&#46;com/QJoV5hc&#46;png[/img:1cgb8orn] yours is diferent.[/quote:1cgb8orn]
Can I attach files?
Is there any possibility to attach files to messages on the forum? Vladimir Grigoriev
Can I attach files?
Vladimir, You have to host your file in a place like <!-- w --><a class="postlink" href="http://www.hyperupload.com">www.hyperupload.com</a><!-- w --> and then copy here the link they provide you.
Can I attach files?
Thanks Antonio. You are just in time as usual. Vladimir Grigoriev
Can I avoid console window when I run FWH application ?
Hello All, When I run an FWH application, a console window also pop up along with main window. Can I avoid it ? I am using May 2006 build. TIA Milan.
Can I avoid console window when I run FWH application ?
Milan, Please use GTGUI.lib instead of GTWIN.lib.
Can I avoid console window when I run FWH application ?
Dear Antonio, I am still getting two windows open after linking GtGui.Lib instead of GtWin.Lib. Do I need to do anything else ? TIA Milan.
Can I avoid console window when I run FWH application ?
Milan, Please check that you are using these flags when calling ilink32: ilink32 -Gn -aa -Tpe -s -v ... What Windows version are you using ? Can you reproduce it using a FWH sample ?
Can I avoid console window when I run FWH application ?
Dear Antonio, Yes it did solve the problem. Thanks a lot. With best regards, Milan.
Can I change DATA ::oMnuHeight ?
Dear Antonio, How can I set the menu height? Because I set oMenu:oMnuHeight, it doesn't effect. It still cannot set now. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=31117">viewtopic.php?f=3&t=31117</a><!-- l --> Thanks.
Can I change DATA ::oMnuHeight ?
Currently the menu height is calculated by the Height of the selected font for the menu. The property (oMnuHeight) has been added to establish in the near future the top of the menuitems regardless of the height of the font Currently oMnuHeight nonfunctional regards [code=fw:29v0rcbh]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#xcommand <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">&#91;</span> <oObjMenu> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <of: <span style="color: #0000ff;">OF</span>, <span style="color: #0000ff;">WINDOW</span>, <span style="color: #0000ff;">DIALOG</span>, CONTROL> <oCtrl> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <popup: <span style="color: #000000;">POPUP</span>> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <l2007: <span style="color: #000000;">2007</span>, _2007> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <l2010: <span style="color: #000000;">2010</span>, _2010> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> COLORMENU  <nClrMenu> ,<nClrMenutxt> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> COLORSELECT  <nClrHiLi> ,<nClrHiLf> ,<nClrHitx> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> COLORBMP  <nClrToBa> ,<nClrBkBa> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> COLORSEPARATOR  <nClrHiBr> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <lMenuBar: <span style="color: #000000;">MENUBAR</span>> <span style="color: #000000;">&#93;</span> ;<br /><br />             <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">&#93;</span> ;<br /><br />             <span style="color: #000000;">&#91;</span> <lColors: <span style="color: #000000;">COLORS</span>> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <lVert: <span style="color: #000000;">LINESVERT</span>> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <l2013: <span style="color: #000000;">2013</span>, _2013> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <l2015: <span style="color: #000000;">2015</span>, _2015> <span style="color: #000000;">&#93;</span> ;<br /> </div>[/code:29v0rcbh]
Can I change DATA ::oMnuHeight ?
Dear Canavarro, Thanks FYI.
Can I change ODBC Data Source Configon the fly? *Got it*
Dear All, I use Crystal Report with MySql. Can I change MySql/ODBC Data source configuration such as below by our program? - Data Source Name - TCP/IP Address - User - Password Thanks in advance.
Can I change ODBC Data Source Configon the fly? *Got it*
I found page to update MySql ODBC by programming. [url:brgt3d71]https&#58;//dev&#46;mysql&#46;com/doc/connector-odbc/en/connector-odbc-examples-programming-vb-rdo&#46;html[/url:brgt3d71] How to do with FWH? Thanks in advance.
Can I change ODBC Data Source Configon the fly? *Got it*
I Use oDSN := TDSN():Create( cODBC, "mastroODBC",cDbName ,cServer, cUser,1, 'C:\Program Files (x86)\MySQL\Connector ODBC 3.51\myodbc3.dll', val(nPort), cPassword ) Maurizio <!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->
Can I change ODBC Data Source Configon the fly? *Got it*
[quote="Maurizio":2njgw69s]I Use oDSN := TDSN():Create( cODBC, "mastroODBC",cDbName ,cServer, cUser,1, 'C:\Program Files (x86)\MySQL\Connector ODBC 3.51\myodbc3.dll', val(nPort), cPassword ) Maurizio <!-- m --><a class="postlink" href="http://www.nipeservice.com">http://www.nipeservice.com</a><!-- m -->[/quote:2njgw69s] Thank you so much, Maurizio. It's the one that I need. Where is TDSN Class?
Can I change ODBC Data Source Configon the fly? *Got it*
look at <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=18619&p=97790&hilit=create+odbc#p97790">viewtopic.php?f=6&t=18619&p=97790&hilit=create+odbc#p97790</a><!-- l --> Maurizio
Can I change ODBC Data Source Configon the fly? *Got it*
Thanks once again, Maurizio
Can I change ODBC Data Source Configon the fly? *Got it*
Hello Dutch , what version of crystal report do you use ? I use 8.5 and I have no problem creating the setup for customers . I would like to use s 10 but I can't create the setup <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Maurizio
Can I change ODBC Data Source Configon the fly? *Got it*
Dear Maurizio, I use CR XI R6 SP6 (11.5). Please check this site for runtime setup. [url:3jbc7mfu]http&#58;//www&#46;vdf-guidance&#46;com/ContribPage&#46;asp?Page=HOWTOPRNTCRXIRTI&ContribRecId=109[/url:3jbc7mfu] [quote="Maurizio":3jbc7mfu]Hello Dutch , what version of crystal report do you use ? I use 8.5 and I have no problem creating the setup for customers . I would like to use s 10 but I can't create the setup <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Maurizio[/quote:3jbc7mfu]
Can I change my IP address with Fivewin/Harbour?
Dear Members, Can I change my IP address with FiveWin/Harbours? I am using Internet by ISP company. If possible, please let me have some sample or link on IP Change. Thanks.
Can I change my IP address with Fivewin/Harbour?
[code=fw:2rn6m9c1]<div class="fw" id="{CB}" style="font-family: monospace;">cAdapterType:=<span style="color: #ff0000;">"Local Area Connection"</span><br />cIP:=<span style="color: #ff0000;">"192.168.0.200"</span><br />cSubNet:=<span style="color: #ff0000;">"255.255.255.0"</span><br />cGateWay:=<span style="color: #ff0000;">"192.168.0.1"</span><br /><br />oShell = CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Wscript.Shell"</span><span style="color: #000000;">&#41;</span><br />oShell:<span style="color: #000000;">Run</span> <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'netsh interface ipv4 set address name="'</span>+cAdapterType+<span style="color: #ff0000;">'" source=static address='</span>+cIP+<span style="color: #ff0000;">' mask='</span>+cSubNet+<span style="color: #ff0000;">' gateway='</span>+cGateWay,<span style="color: #000000;">0</span>,.T. <span style="color: #000000;">&#41;</span><br />oShell:<span style="color: #000000;">Run</span> <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'netsh interface ipv4 set dns name = "'</span>+cAdapterType+<span style="color: #ff0000;">'" source = static addr ='</span>+cDns1,<span style="color: #000000;">0</span>,.T. <span style="color: #000000;">&#41;</span></div>[/code:2rn6m9c1] Regards [b:2rn6m9c1]Anser[/b:2rn6m9c1]
Can I change my IP address with Fivewin/Harbour?
Thanks so much Mr.anserkk! I was in business travel, and found your answer today...
Can I change standard CursorWait() to another animation?
I would like to change standard hourglass to another modern animation? Thanks in advance,
Can I change standard CursorWait() to another animation?
Dutch, Please review FWH\samples\win32.prg Also check the free tool AniTuner from this URL: [url:3cs4ksbf]https&#58;//torry&#46;net/pages&#46;php?id=1520[/url:3cs4ksbf]
Can I change standard CursorWait() to another animation?
Dear Antonio, Thanks for an idea.
Can I change the DIALOG TITLE to Non-Standard Windows?
Dear All, Can I change (define) DIALOG TITLE BAR to another style? I try to put this after DEFINE DIALOG but not successful. [code=fw:21zzz3mk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MYDIALOG"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"My New Style Dialog"</span><br /><br />NewDlg<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> NewDlg<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />oDlg:<span style="color: #000000;">nStyle</span> := nOr<span style="color: #000000;">&#40;</span> WS_CHILD, WS_POPUP <span style="color: #000000;">&#41;</span> <br />oDlg:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rtrim<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">cCaption</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">153</span>,<span style="color: #000000;">217</span>, <span style="color: #000000;">234</span><span style="color: #000000;">&#41;</span>,nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">162</span>, <span style="color: #000000;">232</span><span style="color: #000000;">&#41;</span>,,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// nAlign 2 = CENTER (I think)</span><br />oDlg:<span style="color: #000000;">SayBitmap</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nTop</span><span style="color: #000000;">+5</span>, oDlg:<span style="color: #000000;">nWidth</span><span style="color: #000000;">-15</span>, <span style="color: #ff0000;">'EXIT'</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span></div>[/code:21zzz3mk] Thanks for any help and idea.