topic
stringlengths
1
63
text
stringlengths
1
577k
repintado de xbrowse detalle
hola a todos tengo algo peculiar, tengo 2 oBrw el primero maestro y el 2do detalle , en bchange del primero scopeo el detalle, pero el alcunas ocaciones de 3 registros del detalle solo muestra 2 cuando son 3, o 4 de 5, etc.si navego con el teclado, pero si navego con el raton (dando click en el browse del maestro) si muestra el detalle completo ....!!! ¿?
repintado de xbrowse detalle
Que código usas en el ON CHANGE del xbrowse maestro ?
repintado de xbrowse detalle
hola maestro oBrwCli:bChange:={|| (factura->(quickscope(empresa->clave+cliente->clave)),; nSumaFacturas := 0,; oBrw2:gotop(),; oBrw2:refresh(),; oDlg:UpDate() )} saludos
repintado de xbrowse detalle
Yo lo hago así y funciona perfectamente: [code=fw:2be21ow3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />oBrwCli:<span style="color: #000000;">bChange</span>:=<span style="color: #000000;">&#123;</span>|| Actualiza<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br />********************************<br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Actualiza<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />********************************<br />factura-><span style="color: #000000;">&#40;</span>ordscope<span style="color: #000000;">&#40;</span>TOPSCOPE, empresa->clave+cliente->clave<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />factura-><span style="color: #000000;">&#40;</span>ordscope<span style="color: #000000;">&#40;</span>BOTTOMSCOPE, empresa->clave+cliente->clave<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />factura-><span style="color: #000000;">&#40;</span>DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oBrw2:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrw2:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2be21ow3]
repintado de xbrowse detalle
gracias por tu respuesta Manuel, pero sigue igual....¿?
repintado de xbrowse detalle
Hola de nuevo Miguel: Creo recordar haber tenido un problema parececido y que había que seleccionar previamente el area de trabajo antes de pintar el browse (aunque en mi caso lo hago con listbox). Algo así como esto. DbSelectArea("Clientes") Redefine ListBox ....... ............................. DbSelectArea("Detalle1") Redefine ListBox ....... ........................... DbSelectArea("Detalle2") Redefine ListBox ....... ............................ y por último después de pintados los browses volvemos el area al maestro. DbSelectArea("Clientes")
repintado de xbrowse detalle
Gracias por tu tiempo Manuel Tomando en cuenta lo que me comentas hice lo sigte: oBrwCli:bChange:={|| factura->(actualiza(@oBrw2))} en lugar de: oBrwCli:bChange:={|| actualiza(@oBrw2)} y problema resuelto!!!! Gracias de nuevo atte Miguel Salas
replace value on xbrowse ( tdatabase)
I open the reserva.dbf with Tdatabase and build axbrowse [img:2kdvpvn3]https&#58;//i&#46;postimg&#46;cc/bYH0TzvQ/Prenota-2&#46;jpg[/img:2kdvpvn3] I need to calc the days on the Seven column ( red column) WITH OBJECT oBrowse:aCols[ 7] :bEditValue := TotalDays(oBrowse) END I tried with ( [b:2kdvpvn3]but not run ok [/b:2kdvpvn3]) Function TotalDays(oBrowse) local nRecord := oBrowse:narrayat local dStart := oBrowse:aArrayData[nRecord][5] local dEnd := oBrowse:aArrayData[nRecord][6] local nGiorni:= (dEnd-dStart)+1 *oBrowse:aCols[7]:VarPut(nGiorni) return nGiorni any solution ?
replace value on xbrowse ( tdatabase)
Silvio, Maybe a good solution is to change the data/header that the column is showing the calculated data automatic when you setup the browse. I have seen code like this : ADD TO oBrw HEADER "NET" DATA ROUND( oBrw:aRow[5] * oBrw:aRow[7] - oBrw:aRow[ 8 ], 0 ) ; PICTURE "999,999,999"
replace value on xbrowse ( tdatabase)
.Or. [code=fw:3ms5dpev]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />WITH OBJECT :<span style="color: #000000;">PRIJS</span><br />    :<span style="color: #000000;">nEditType</span>     := EDIT_GET<br />    :<span style="color: #000000;">bOnChange</span>     := <span style="color: #000000;">&#123;</span> |oCol,uOldVal| Herberekening<span style="color: #000000;">&#40;</span> oLbxdet, oCol:<span style="color: #000000;">Value</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />    :<span style="color: #000000;">bKeyChar</span>      := <span style="color: #000000;">&#123;</span> |k| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> k == VK_RETURN, <span style="color: #000000;">&#40;</span> oLbxdet:<span style="color: #000000;">GoRight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />ENDWITH<br /><br /><br /><span style="color: #00C800;">function</span> Herberekening<span style="color: #000000;">&#40;</span>oBrw,oCol<span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> nTotaal:=<span style="color: #000000;">0</span><br />  nTotaal = <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">BES</span>:<span style="color: #000000;">value</span> * oBrw:<span style="color: #000000;">prijs</span>:<span style="color: #000000;">value</span><span style="color: #000000;">&#41;</span> - ;<br />            <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">BES</span>:<span style="color: #000000;">value*oBrw</span>:<span style="color: #000000;">prijs</span>:<span style="color: #000000;">value</span><span style="color: #000000;">&#41;</span>*oBrw:<span style="color: #000000;">kor</span>:<span style="color: #000000;">value</span>/<span style="color: #000000;">100</span><span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #000000;">totaal</span>:<span style="color: #000000;">varput</span><span style="color: #000000;">&#40;</span>nTotaal<span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #000000;">BACK</span>:<span style="color: #000000;">varput</span><span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">BES</span>:<span style="color: #000000;">value</span> - oBrw:<span style="color: #000000;">LEV</span>:<span style="color: #000000;">value</span><span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> .t.<br /><br /><br /><br /> </div>[/code:3ms5dpev]
replace value on xbrowse ( tdatabase)
[code=fw:rn0dkerz]<div class="fw" id="{CB}" style="font-family: monospace;">oBrowse:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">&#123;</span> || oBrowse:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> - oBrowse:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:rn0dkerz]
replace value on xbrowse ( tdatabase)
[quote="nageswaragunupudi":ts0x1hgp][code=fw:ts0x1hgp]<div class="fw" id="{CB}" style="font-family: monospace;">oBrowse:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">&#123;</span> || oBrowse:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> - oBrowse:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:ts0x1hgp][/quote:ts0x1hgp] thanks rao I sent you the test
report
saludos, se puede cambiar el tamanio de la hoja en treport? con la otra clase se puede con esto oPrn:SetPage(5) //LEGAL oPrn:SetLandScape(), pero en Report como? , como se puede poner encabezados como los superheaders del tsbrowse? gracias arnulfo
report
[quote="Arvisnet":1d7xumee]saludos, se puede cambiar el tamanio de la hoja en treport? con la otra clase se puede con esto oPrn:SetPage(5) //LEGAL oPrn:SetLandScape(), pero en Report como? , como se puede poner encabezados como los superheaders del tsbrowse? gracias arnulfo[/quote:1d7xumee] Arvisnet, [code:1d7xumee]oReport&#58;oDevice&#58;setpage&#40;&#41; oReport&#58;oDevice&#58;SetLandScape&#40;&#41;[/code:1d7xumee]
report
Hola Foro entregue una aplicación y cuando comenzaron a ingresar artículos, el propietario quiere tirar una lista de precios, y se encuentra con el siguiente problema: el reporte solo emite las hojas con numero impares las pares no se pueden ver ni por pantalla con preview ni por impresora... si alguien tiene la soluccion se les agradece uso fwh12_9 desde ya muchas gracias.
report
al parecer el problema esta en la configuración de la impresora propiamente tal. prueba tu informe a otra impresora, como una virtual en PDF, y revisa tu preview si esta completo. de no ser asi, coloca el trozo de código en donde defines el reporte para revisarlo y ayudarte. saludos
report en xbrowse
estoy usando el metodo report de xbrowse de fwh0803en browses en los cuales tengo campos con imagines me da este error:[code:2l6npt00]Application =========== Path and name&#58; c&#58;\lavwin\wp32\WP32&#46;Exe &#40;32 bits&#41; Size&#58; 6,391,808 bytes Time from start&#58; 0 hours 0 mins 30 secs Error occurred at&#58; 23/07/2008, 12&#58;29&#58;42 Error description&#58; Error BASE/1004 Class&#58; 'NIL' has no exported method&#58; EVAL Args&#58; &#91; 1&#93; = U Stack Calls =========== Called from&#58; => EVAL&#40;0&#41; Called from&#58; RCOLUMN&#46;PRG => TRCOLUMN&#58;STABILIZE&#40;0&#41; Called from&#58; REPORT&#46;PRG => &#40;b&#41;TREPORT&#58;STABILIZE&#40;0&#41; Called from&#58; => AEVAL&#40;0&#41; Called from&#58; REPORT&#46;PRG => TREPORT&#58;STABILIZE&#40;0&#41; Called from&#58; REPORT&#46;PRG => TREPORT&#58;ACTIVATE&#40;0&#41; Called from&#58; xbrowse&#46;prg => TXBROWSE&#58;REPORT&#40;3464&#41; Called from&#58; view_clf&#46;prg => &#40;b&#41;VIEWCLF2&#40;5032&#41; Called from&#58; BTNBMP&#46;PRG => TBTNBMP&#58;CLICK&#40;0&#41; Called from&#58; BTNBMP&#46;PRG => TBTNBMP&#58;LBUTTONUP&#40;0&#41; Called from&#58; => TWINDOW&#58;HANDLEEVENT&#40;0&#41; Called from&#58; CONTROL&#46;PRG => TCONTROL&#58;HANDLEEVENT&#40;0&#41; Called from&#58; BTNBMP&#46;PRG => TBTNBMP&#58;HANDLEEVENT&#40;0&#41; Called from&#58; WINDOW&#46;PRG => _FWH&#40;0&#41; Called from&#58; => WINRUN&#40;0&#41; Called from&#58; WINDOW&#46;PRG => TMDIFRAME&#58;ACTIVATE&#40;0&#41; Called from&#58; wp32&#46;prg => MAIN&#40;473&#41;[/code:2l6npt00]Alguna idea?Saludos
report en xbrowse
me contesto yo mismo.resuelto compilando con FWH0805saludosP.D. que lío cada vez que trato de actualizar todo el sistema a la ultima versión que tengo de FW....
report to excel or dbf
hi. Has any body writen code so that treport class generates either a dbf or a xls file of the same report being generated? Reinaldo.
report xbrowse method
How I can use the method report on xbrowse ? I try with Action oApp:oGrid:Report( "Elenco Mezzi", .t., .t., ) but not run why ?
report xbrowse method
Report is working for me. It does not run only if it can not find printer. Please see these lines in the report method: [code:2k2jhmh9] oPrn &#58;= PrintBegin&#40; nil, ; // document &#46;F&#46;, ; // luser lPreview, nil, ; // xmodel lModal, &#46;F&#46; &#41; // lselect if oPrn&#58;hDC == 0 return &#46;f&#46; // < --- Your program may be returning here endif [/code:2k2jhmh9]
report xbrowse method
but if use obrw:report() it must run ok or not ?
report xbrowse method
It runs, if printer is attached
report xbrowse method
I try but it make error see it please DEFINE VMENUITEM OF oApp():oCont2 CAPTION "Stampa Elenco Automezzi" IMAGE "BB12" Action oApp:oGrid:Report( "Elenco Mezzi", .t., .t., ) [code:3cgw2ece] Application =========== Path and name&#58; C&#58;\work\prg\VDSWIN\VdsWin&#46;Exe &#40;32 bits&#41; Size&#58; 2,529,792 bytes Time from start&#58; 0 hours 0 mins 6 secs Error occurred at&#58; 07/03/2008, 10&#58;53&#58;26 Error description&#58; Error BASE/1004 Class&#58; 'NIL' has no exported method&#58; EVAL Args&#58; &#91; 1&#93; = U Stack Calls =========== &#91;b&#93;Called from&#58; => EVAL&#40;0&#41; Called from&#58; RCOLUMN&#46;PRG => TRCOLUMN&#58;STABILIZE&#40;0&#41; Called from&#58; REPORT&#46;PRG => &#40;b&#41;TREPORT&#58;STABILIZE&#40;0&#41; Called from&#58; => AEVAL&#40;0&#41; Called from&#58; REPORT&#46;PRG => TREPORT&#58;STABILIZE&#40;0&#41; Called from&#58; REPORT&#46;PRG => TREPORT&#58;ACTIVATE&#40;0&#41; Called from&#58; XBROWSE&#46;PRG => TXBROWSE&#58;REPORT&#40;0&#41; Called from&#58; ASS510&#46;prg => &#40;b&#41;CAW510&#40;272&#41;&#91;/b&#93; Called from&#58; VMenu&#46;prg => TVMENU&#58;EVALACTION&#40;1700&#41; Called from&#58; VMenu&#46;prg => TVMENU&#58;LBUTTONUP&#40;1398&#41; Called from&#58; => TWINDOW&#58;HANDLEEVENT&#40;0&#41; Called from&#58; CONTROL&#46;PRG => TCONTROL&#58;HANDLEEVENT&#40;0&#41; Called from&#58; VMenu&#46;prg => TVMENU&#58;HANDLEEVENT&#40;905&#41; Called from&#58; WINDOW&#46;PRG => _FWH&#40;0&#41; Called from&#58; => WINRUN&#40;0&#41; Called from&#58; WINDOW&#46;PRG => TWINDOW&#58;ACTIVATE&#40;0&#41; Called from&#58; main&#46;prg => TAPPLICATION&#58;ACTIVATE&#40;269&#41; Called from&#58; main&#46;prg => MAIN&#40;55&#41;[/code:3cgw2ece] [/b]
report xbrowse method
Hello Silvio,I get the same error here.Do you found a solution.Regards,Otto
report xbrowse method
Otto, Silvio,Could you please provide a small PRG to reproduce the error ? thanks
report xbrowse method
Thank you Antonio.I sent a sample to reproduce the error to NageswaraRao.I am sure he resolves the problem. Let’s wait for his answer.Regards,Otto
report xbrowse method
Otto,Would you mind to copy it here ? thanks
report xbrowse method
Dear Antonio, Dear Otto,I remove the method Report from xbrowse and I add with another Methodbecause he method of Nas have problemsIF you go here you can see my method <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/forums/viewtopic.php?t=5861&highlight=xbrowse+report">http://www.fivetechsoft.com/forums/view ... wse+report</a><!-- m --> I publish it before of NageswaraRao But Antonio Not pubblished it ! this run ok !!![code:3fdfqitr] METHOD Print&#40; lPreview, lModal, cTitle &#41; CLASS TXBrowse local oPrn, oRep, oCol local aCols local xValue local cAlias local nFor, nLines, nLine, nBookMark DEFAULT lPreview &#58;= &#46;t&#46;,; lModal &#58;= &#46;f&#46;,; cTitle &#58;= &#58;&#58;oWnd&#58;cCaption If Empty&#40; cTitle &#41; cTitle &#58;= "No Title" Endif If lPreview If lModal PRINTER oPrn NAME cTitle PREVIEW MODAL else PRINTER oPrn NAME cTitle PREVIEW Endif else PRINTER oPrn NAME cTitle Endif If oPrn&#58;hDC == 0 return &#46;f&#46; Endif If !Empty&#40; &#58;&#58;cAlias &#41; cAlias &#58;= DbSelectArea&#40; &#58;&#58;cAlias &#41; Endif REPORT oRep TITLE "*** " + cTitle + " ***", "" ; HEADER DToC&#40; Date&#40;&#41; &#41; + "-" + Left&#40;Time&#40;&#41;, 5&#41;, "" RIGHT ; FOOTER "#&#58; " + Str&#40; oRep&#58;nPage, 3 &#41; CENTER; TO DEVICE oPrn aCols &#58;= &#58;&#58;GetVisibleCols&#40;&#41; for nFor &#58;= 1 to len&#40; aCols &#41; If !aCols&#91;nFor&#93;&#58;lHide oCol &#58;= oRep&#58;AddColumn&#40; TrColumn&#40;&#41;&#58;New&#40; &#123; FInfo1&#40;aCols, nFor&#41; &#125; ,,; &#123; FInfo2&#40;aCols, nFor&#41; &#125;,,,,,,,,,, oRep &#41; &#41; xValue &#58;= Eval&#40;aCols&#91;nFor&#93;&#58;bStrData&#41; nLines &#58;= MlCount&#40;xValue, 250&#41; oCol&#58;nPad &#58;= aCols&#91;nFor&#93;&#58;nDataStrAlign + 1 If nLines > 1 oCol&#58;aData &#58;= Array&#40;nLines&#41; oCol&#58;aPicture &#58;= Afill&#40;Array&#40;nLines&#41;, ""&#41; For nLine &#58;= 1 to nLines oCol&#58;aData&#91;nLine&#93; &#58;= FInfo3&#40;aCols, nFor, nLine&#41; Next Endif Endif next ENDREPORT nBookMark &#58;= Eval&#40; &#58;&#58;bBookMark &#41; If &#58;&#58;aArrayData != nil &#46;and&#46; len&#40; &#58;&#58;aArrayData &#41; > 0 &#58;&#58;nArrayAt &#58;= 1 oRep&#58;bSkip &#58;= &#123; || &#58;&#58;nArrayAt++ &#125; ACTIVATE REPORT oRep WHILE &#58;&#58;nArrayAt <= len&#40; &#58;&#58;aArrayData &#41; ON END &#58;&#58;nArrayAt &#58;= 1 else ACTIVATE REPORT oRep Endif Eval&#40;&#58;&#58;bBookMark, nBookMark &#41; If !Empty&#40; cAlias &#41; DbSelectArea&#40; cAlias &#41; Endif return &#46;t&#46; [/code:3fdfqitr]
report xbrowse method
Falconi,Since xBrowse can now also handle database objects, it would be nice if your report method could handle them too.I also suggest adding a gotop() before the report and saving and restoring the current recno().James
report xbrowse method
I would not have made this posting except for the reason that my name is mentioned above.The present report method of xbrowse is working quite well for me. I find it quite versatile. It can handle arrays, rdd and also objects. That too objects of any kind. It can handle grouping and subgrouping comfortably. If we select only some rows of the browse with shift-click / ctrl-click, it prints only those selected rows. Users are extremely happy with this feature.Possible that in some cases there is the error that is reported which I hope Mr Antonio will fix it, if we provide him with a sample.It is true Mr Otto mentioned to me about his problem, but he did not send his sample to me so far. Even if he sent I don't know if I could find a solution.The print method published by Mr Silvio is verbatim reproduction the print method in the old xbrowse of Ozlib, including a bug in it. ( In the olden days I used to use a corrected version ). I changed to FWH xbrowse long back following my decision not to use 3rd party libraries. Glad FWH improved xbrowse a lot.The report method of FWH is definitely far advanced with very useful features and the coding approach is totally data source neutral unlike the code posted as comparision. That means the report method will work the same way whatever is the data source.
report xbrowse method
It is found that this error is occurring when for a column only bBmpData is assigned, leaving bEditValue and bStrData as NIL. This problem is fixed in FWH 8.05, by skipping such columns in the report method.Temporary fix is to hide such columns before using report method.
report xbrowse method
Thanks Mr Antonio. This explains why I never got this problem. All my browses have bEditValue assigned. Even when I use bitmaps it depeneded on the bEditValue.
report xbrowse method
Mr James[quote="James Bott":1mb9xfri]Falconi, Since xBrowse can now also handle database objects, it would be nice if your report method could handle them too. I also suggest adding a gotop() before the report and saving and restoring the current recno(). James[/quote:1mb9xfri]XBrowse Report method does this gracefully.
report xbrowse method
Dear nageswaragunupudi,Sorry I have Never had the OZLIB xbrowse and I not Know if there was a ozlib ??this method is made by me and my friend luigi.
report xbrowse method
Interesting to know. Ozlib's TXBrowse Print method matches the code posted here, exactly alphabet by alphabet including spaces, line spaces, capitalizations, function names, caplitalization of function names, indenting, etc. Here is copy of the method from OZlib's xbrowse.[code:xgcvl3xj] METHOD Print&#40; lPreview, lModal, cTitle &#41; CLASS TXBrowse local oPrn, oRep, oCol local aCols local xValue local cAlias local nFor, nLines, nLine, nBookMark DEFAULT lPreview &#58;= &#46;t&#46;,; lModal &#58;= &#46;f&#46;,; cTitle &#58;= &#58;&#58;oWnd&#58;cCaption If lPreview If lModal PRINTER oPrn NAME cTitle PREVIEW MODAL else PRINTER oPrn NAME cTitle PREVIEW Endif else PRINTER oPrn NAME cTitle Endif If oPrn&#58;hDC == 0 return &#46;f&#46; Endif If !Empty&#40; &#58;&#58;cAlias &#41; cAlias &#58;= DbSelectArea&#40; &#58;&#58;cAlias &#41; Endif REPORT oRep TITLE "*** " + cTitle + " ***", "" ; HEADER DToC&#40; Date&#40;&#41; &#41; + "-" + Left&#40;Time&#40;&#41;, 5&#41;, "" RIGHT ; FOOTER "#&#58; " + Str&#40; oRep&#58;nPage, 3 &#41; CENTER; TO DEVICE oPrn aCols &#58;= &#58;&#58;GetVisibleCols&#40;&#41; for nFor &#58;= 1 to len&#40; aCols &#41; If !aCols&#91;nFor&#93;&#58;lHide oCol &#58;= oRep&#58;AddColumn&#40; TrColumn&#40;&#41;&#58;New&#40; &#123; FInfo1&#40;aCols, nFor&#41; &#125; ,,; &#123; FInfo2&#40;aCols, nFor&#41; &#125;,,,,,,,,,, oRep &#41; &#41; xValue &#58;= Eval&#40;aCols&#91;nFor&#93;&#58;bStrData&#41; nLines &#58;= MlCount&#40;xValue, 250&#41; oCol&#58;nPad &#58;= aCols&#91;nFor&#93;&#58;nDataStrAlign + 1 If nLines > 1 oCol&#58;aData &#58;= Array&#40;nLines&#41; oCol&#58;aPicture &#58;= Afill&#40;Array&#40;nLines&#41;, ""&#41; For nLine &#58;= 1 to nLines oCol&#58;aData&#91;nLine&#93; &#58;= FInfo3&#40;aCols, nFor, nLine&#41; Next Endif Endif next ENDREPORT nBookMark &#58;= Eval&#40;&#58;&#58;bBookMark&#41; If len&#40; &#58;&#58;aArrayData &#41; > 0 &#58;&#58;nArrayAt &#58;= 1 oRep&#58;bSkip &#58;= &#123; || &#58;&#58;nArrayAt++ &#125; ACTIVATE REPORT oRep WHILE &#58;&#58;nArrayAt <= len&#40; &#58;&#58;aArrayData &#41; ON END &#58;&#58;nArrayAt &#58;= 1 else ACTIVATE REPORT oRep Endif Eval&#40;&#58;&#58;bBookMark, nBookMark &#41; If !Empty&#40; cAlias &#41; DbSelectArea&#40; cAlias &#41; Endif return &#46;t&#46; [/code:xgcvl3xj]The line " If len( ::aArrayData ) > 0" in the OzLib's version used to give an error and this is fixed in the code posted earlier as "If ::aArrayData != nil .and. len( ::aArrayData ) > 0".Great Coincidence !!!
report xbrowse method
I not Know what you say I found this source in my old cds when I use clipperIf you say that the method is of Ozlib ok but your method run ok ?I made error on errorsoApp:oGrid:Report( "Elenco Mezzi", .t., .t., ) [code:1vl85qoy] Application =========== Path and name&#58; C&#58;\work\prg\VDSWIN\VdsWin&#46;Exe &#40;32 bits&#41; Size&#58; 2,529,792 bytes Time from start&#58; 0 hours 0 mins 6 secs Error occurred at&#58; 07/03/2008, 10&#58;53&#58;26 Error description&#58; Error BASE/1004 Class&#58; 'NIL' has no exported method&#58; EVAL Args&#58; &#91; 1&#93; = U Stack Calls =========== &#91;b&#93;Called from&#58; => EVAL&#40;0&#41; Called from&#58; RCOLUMN&#46;PRG => TRCOLUMN&#58;STABILIZE&#40;0&#41; Called from&#58; REPORT&#46;PRG => &#40;b&#41;TREPORT&#58;STABILIZE&#40;0&#41; Called from&#58; => AEVAL&#40;0&#41; Called from&#58; REPORT&#46;PRG => TREPORT&#58;STABILIZE&#40;0&#41; Called from&#58; REPORT&#46;PRG => TREPORT&#58;ACTIVATE&#40;0&#41; Called from&#58; XBROWSE&#46;PRG => TXBROWSE&#58;REPORT&#40;0&#41; Called from&#58; ASS510&#46;prg => &#40;b&#41;CAW510&#40;272&#41;&#91;/b&#93; Called from&#58; VMenu&#46;prg => TVMENU&#58;EVALACTION&#40;1700&#41; Called from&#58; VMenu&#46;prg => TVMENU&#58;LBUTTONUP&#40;1398&#41; Called from&#58; => TWINDOW&#58;HANDLEEVENT&#40;0&#41; Called from&#58; CONTROL&#46;PRG => TCONTROL&#58;HANDLEEVENT&#40;0&#41; Called from&#58; VMenu&#46;prg => TVMENU&#58;HANDLEEVENT&#40;905&#41; Called from&#58; WINDOW&#46;PRG => _FWH&#40;0&#41; Called from&#58; => WINRUN&#40;0&#41; Called from&#58; WINDOW&#46;PRG => TWINDOW&#58;ACTIVATE&#40;0&#41; Called from&#58; main&#46;prg => TAPPLICATION&#58;ACTIVATE&#40;269&#41; Called from&#58; main&#46;prg => MAIN&#40;55&#41;[/code:1vl85qoy]when you create a method you must try also with another prg because the sample run ok but our prg not run okif you want i can send you all ASS510.prg I not have problems to sent it to youSince this error made on Fri Mar 07, 2008 and the method not corrected alsowe must give to our customers our application and we cannot give an application with errors.Now I corrected my souirce with another PRINTER fUNCTION non using report method but why ?
report xbrowse method
Hello Silvio,have you tried the fix Antonio posted?Regards,Otto
report xbrowse method
Hello NagesWaraRao,I resent the email. Did you get it?Thanks in advanceOtto
report xbrowse method
where is the fix ?
report xbrowse method
[quote:1qz1f4bw]It is found that this error is occurring when for a column only bBmpData is assigned, leaving bEditValue and bStrData as NIL. This problem is fixed in FWH 8.05, by skipping such columns in the report method. Temporary fix is to hide such columns before using report method. _________________ regards, saludos Antonio Linares <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w -->[/quote:1qz1f4bw]
report's saybitmap method
Hello, this bug has many years, until now I don't know how can I fix this The saybitmap method don't work with bitmap from resources, this work properly with bmp files directly. Maybe some body have the solution? best regards Marcelo
report's saybitmap method
It seems to work fine here: [code=fw:30p3p3cx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> oPrn<br /><br />    <span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br />        <span style="color: #0000ff;">PAGE</span><br />            oPrn:<span style="color: #000000;">SayBitmap</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"OPEN"</span>, <span style="color: #000000;">1000</span>, <span style="color: #000000;">1000</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">ENDPAGE</span><br />    <span style="color: #0000ff;">ENDPRINT</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:30p3p3cx] This is the RC file: [code=fw:30p3p3cx]<div class="fw" id="{CB}" style="font-family: monospace;">OPEN BITMAP <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>pen.bmp"</span></div>[/code:30p3p3cx] EMG
report's saybitmap method
Enrico, yes from printer class this work ok, but not from the report class, this is strange, because the report class use printer class inside, but from report this not work reagards Marcelo
report's saybitmap method
It doesn't work because TReport sets the resource to prev32.dll hiding the currently active resource file. EMG
report's saybitmap method
Enrico yuo are right, I move prev32.dll to prev.red and add to my project, and delete all the reference to external resource in rpreview.prg, then I have a more compact enviroment and I can work with resources in report, thanks for your time This means that I was wrong and no FW regards Marcelo
report: no mostrar campos en 0
Funcionó perfecto !!! Muchisimas gracias Garbi ! Saludos !
report: no mostrar campos en 0
Hola gente ! Mi pregunta es muy sencilla y seguro casi todos la saben. ¿ cuando hago un report: como hago para que no se vean los campos = 0 ? Gracias !
report: no mostrar campos en 0
Puedes probar con : Picture "@Z"
report:sayBitmap que requisitos de bmp tiene
Holas,estoy tras imprimir unos logos en los reportes, pero es muy raro el metodo :sayBitmap de la clase report actua muy raro, algunos bmps los imprime (bajando la cantidad de colores) y otros nada que ver no los muestra. Tambien intente oreport:oDevice:Saybitmap y lo mismo solo ese bmp que imprimo directo con el report se lo visualiza aqui y ningun otro.Alguien tiene una explicacion de esto, creo que ya lo expuse mucho tiempo atras, pero no he conseguido solucionarlo.saludosMarcelo
report:sayBitmap que requisitos de bmp tiene
Una cosa importante que olvide, el problema es cuando el BMP esta en un archivo de recuros, no asi cuando es un archivo suelto, es decir file.bmp, en ese caso no hay problemasaludosMarcelo
reporte
Tengo un sistema que compilado que solo me imprime las paginas 1,3,5,etc....y no las pares, le quite el foot, el group, el font, y sigue igual estoy usando fw12.9 el mismo sistema compilado con versiones anteriores funcionaba bien..... compilo co rpreview del fw12.9 y uso la dll del fw12.9 la verdad se que otros ya tuvieron ese inconveniente solo que no encuentro como lo solucionaron.. si alguien se acuerda bienvenida la solución me estoy matando con esto....
reporte a excel (Resuelto)
Hola, estoy teniendo este mensaje al mandar a excel todos los reportes de la aplicación en una terminal puntual. Error description: Error Excel.Application:WORKBOOKS:ADD:ACTIVESHEET:CELLS/0 S_OK: _FORMULA Ahora, ocurre algo interesante, el sistema está en red, y el error solo se produce en una terminal específica y no en todas, las otras 6 que usan el programa no dan problemas.
reporte a excel (Resuelto)
Jose... ¿Esa terminal tiene la misma versión de paquete office? ¿El mismo Sistema Operativo? ¿Probaste poner MsgInfo() como flags para ver en qué linea genera el error?
reporte a excel (Resuelto)
Gracias por tu respuesta, recien me reintegro a mis labores por un tema familiar, voy a estar haciendo algunas pruebas, y verificando, en principio es el mismo S.O. pero voy a reinstalar el office y ver que pasa <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Luego les cuento. Un abrazo
reporte a excel (Resuelto)
Hola, luego de sufrimiento, sangre, sudor y lágrimas..... (capaz que no tanto, pero en fin hubo que buscar y buscar....) Este error se genera cuando en el windows donde se genera el reporte el caracter separador de listas ( en panel de control>>Configuración Regional ) es igual al del punto decimal o al de separador de miles. Si hacemos la configuración regional asegurando que el caracter decimal, el separador de miles y el separador de listas sean diferentes, el problema queda resuelto.
reporte a excel (Resuelto)
[quote="jose_murugosa":1m9zkbh0] Si hacemos la configuración regional asegurando que el caracter decimal, el separador de miles y el separador de listas sean diferentes, el problema queda resuelto.[/quote:1m9zkbh0] Hola José. Reabro este post solo para agradecerte. Resulta que hace unos 6 meses instalé un pequeño programa en un cpu con Windows Server 2008, al cual accesan desde terminales con windows 8 y Office 2010. El programa funcionó sin problemas hasta hace unas dos horas que el cliente solicitó mi presencia porque la exportación oBrw:ToExcel les estaba "dando" el error que describiste. Hice los cambios según tus sugerencias... y todo volvió a la normalidad. El porqué había dejado de funcionar... no lo sé. (Algun programa externo cambió la configuracion regional???). El cliente usa el mismo sistema operativo desde que le instalé. Muchas gracias, nuevamente. Saludos.
reporte a excel (Resuelto)
Francisco, Que gran placer saber que en alguna modesta manera pueda haberte ayudado por este medio, no hay nada que agradecer, me he valido de sugerencias de todos aquí en el foro, y una de las cosas que valoro, es el gran espiritu de colaboración de todos nuestros colegas, incluyéndote. Un fuerte abrazo <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
reporte con txtprev deja una linea en blanco
Amigos actualice de la version fw5 , harbour compiler alpha build 45.0 a fwh8.11 al xharbour compiler 1.1.0 y todo el programa funciona igual a excepcion de mis reportes que estan hecho con la clase txtprev Deja un interlineado en cada linea de impresión Adjunto un ejemplo de reporte (bueno queria pegar dos fotos pero no pude) Antes xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxx ----- -------------- --------------------------- xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxx Despues ( actualizado a la fwh8.11 al xharbour compiler 1.1.0) xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxx --------> (Deja un espacio en blanco en cada linea de impresión xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxx ----- ------------- ---------------------------- xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxx No se que debo de modificar para arreglar este problema Gracias x su ayuda
reporte con txtprev deja una linea en blanco
Hola El problema se produjo en una version de FWH en la clase TTxtFile() que colocaba automaticamante un salto linea CRLF luego en posteriores versiones se corrigio revisa la clase, en el [b:1cf6oy2b]METHOD BuildDbfTmp()[/b:1cf6oy2b] donde dice patricio por ahi debes revisar [code=fw:1cf6oy2b]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><span style="color: #00C800;">METHOD</span> BuildDbfTmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTxtPreview<br />..<br />..<br />  <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">NOWAIT</span><br /><br />   CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   nPag= <span style="color: #000000;">0</span><br />   cTxt= <span style="color: #ff0000;">""</span><br />   lFim= .F.<br /><br />   <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> .T.<br /><br />      cLine = oFile:<span style="color: #000000;">cLine</span> + CRLF <span style="color: #B900B9;">//version 9.4</span><br />      cTxt += cLine <span style="color: #B900B9;">//+ Space(5) // +CRLF  ==>Patricio se cambio ya que con la version 9.3 no funciona</span><br /><br />      oFile:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1cf6oy2b]
reporte con txtprev deja una linea en blanco
Gracias Patricio ese era mi problema un millon de gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
reportes grupos con 2 renglones
Hola; tengo un reporte y necesito que agrupe los datos, pero que muestre 2 renglones en lo que seria la cabecere de cada grupo. Ej. cuenta descrip debe haber asiento 1, fecha 25/03/2008 concepto: asiento de ventas marzo 110010 cuenta caja 1500 120010 a cuenta banco 500 130010 a cuenta banco 1000 total 1500 1500 yo hago esto: REPORT oReport TITLE " "," ","LIBRO DIARIO - Empresa: "+XDESCRIEMPRE,"Desde: "+dtoc(xfecdesde)+" Hasta: "+dtoc(xfechasta) CENTER ; CAPTION "Libro Diario "; HEADER "Fecha: "+DToC(DATE()) RIGHT; FOOTER "Pagina: "+STR(oReport:nPage,3) CENTER; FONT oFon1, oFon2, oFon3; PEN oPen2, oPen1; PREVIEW // COLUMN TITLE "Fecha" DATA asientos->Fec SIZE 10 COLUMN TITLE "Cuenta" DATA asientos->Cta SIZE 6 COLUMN TITLE "Descripcion" DATA IIF(asientos->DH = 'H',space(3)+"a "+left(asientos->Desc,27),left(asientos->Desc,30)); SIZE 30 COLUMN TITLE "Debe " DATA IIF(asientos->DH = 'D',asientos->Cant,' ') PICTURE "999999999.99" ; SIZE 15 RIGHT TOTAL // GRID COLUMN TITLE "Haber " DATA IIF(asientos->DH = 'H',asientos->Cant,' ') PICTURE "999999999.99" ; SIZE 15 RIGHT TOTAL // GRID COLUMN TITLE "Concepto" DATA left(asientos->conc,25) ; SIZE 25 GROUP oRptGrp ON PADL(YEAR(ASIENTOS->FEC),4,'0')+PADL(MONTH(ASIENTOS->FEC),2,'0')+PADL(DAY(ASIENTOS->FEC),2,'0')+asientos->cod+str(asientos->Doc) HEADER "Cod: "+asientos->cod+" Num.: "+alltrim(str(asientos->doc))+" Fecha: "+dtoc(asientos->fec)+" - "+ alltrim(asientos->descasi) FOOTER " "+asientos->conc END REPORT ACTIVATE REPORT oReport ON INIT oReport:oTitle:aFont[1] := { || 3 }; ON STARTPAGE StartPage(oReport) Necesito que en HEADER del GOUP oRptGrp, el alltrim(asientos->descasi) este en el 2° renglon, y el resto en el 1°. Si alguien me puede dar una mano, se lo agradecere. Atte. Diego
reporto error RPREVIEW
Estando en el preview si slecciono para que me muetre dos paginas juntas me tira este error [code=fw:31zlx46j]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> &nbsp;No exported <span style="color: #00C800;">method</span>: <span style="color: #0000ff;">REFRESH</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> <span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\RPREVIEW.PRG => TPREVIEW:<span style="color: #000000;">TWOPAGES</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1114</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\RPREVIEW.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TPREVIEW_BUILDMENU<span style="color: #000000;">&#40;</span> <span style="color: #000000;">739</span> <span style="color: #000000;">&#41;</span></div>[/code:31zlx46j]
reporto error RPREVIEW
Ejemplo? hga un DEMO siempre! Regards, saludos.
reposting a video from 2017
Hello friends, I am reposting a video from 2017. It is such a nice memory! Best regards, Otto [url:10k9dsq0]https&#58;//mybergland&#46;com/fwforum/meeting&#46;mp4[/url:10k9dsq0]
reposting a video from 2017
<!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
reposting a video from 2017
Hello friends, I want to thank everyone for reading the post. As some of you might know, we host something special every year. In 2017, it was the Fivewin Meeting, then the Photo Weeks, and this year, for example, the concerts with the buskers from Dublin. With the repost, we wanted to see if there was any interest in a new edition. But it doesn't seem like there is. So, we will shift our planning to a different focus. Warm regards, Otto [url:3oqvf14t]https&#58;//pustertal-online&#46;com/index&#46;prg?recnr=781[/url:3oqvf14t] [url:3oqvf14t]https&#58;//pustertal-online&#46;com/index&#46;prg?recnr=970[/url:3oqvf14t] [url:3oqvf14t]https&#58;//fotosafari-dolomiten&#46;com/[/url:3oqvf14t]
reposting a video from 2017
I wish the sweet 2017 repeated soon. This time to learn mod-harbour from you among many other things.
reproducir video
Hola , alguien puede ayudarme a reproducir por codigo un video "avi", y si necesito alguna dll o alguna clase... gracias y Feliz Navidad y un Propero año nuevo
reproducir video
Yadira, Tienes un ejemplo en FWH\samples\TestVid.prg <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
request for Tcalex
How I can make to have this modify [img:dmnznl1u]https&#58;//i&#46;postimg&#46;cc/mkJvZbSV/test-a&#46;jpg[/img:dmnznl1u] I would like to highlight the object as a figure with a rectangular and round box and add the other information below ( I drawed it)
request for Tcalex
Silvio, Many of us use the Codejock library for a calendar. You can find a very complete copy of the code in the Samples folder ( schedule.prg ). Although this is not tCalex, perhaps how it is implemented will give you some ideas on how to do what you want. Tim
request for Tcalex
tim, I'm trying to use tCalex. finally after two years i corrected many problems. the app init to run ok but need also other modifies. on tje picture you can see (i drawed it) i need a box colored with the subject and then i wish show (on week and day display more data info ) .I think the gurus are able to make it , I not found the part of code where tcalex show that text or create that box tab perhaps we can modify it with polygon function to draw a good tab.
request: ALTER TABLE
Dear FiveTeam, Can new SQL command ALTER TABLE be implemented for next reléase?. Thank you a lot.
request: ALTER TABLE
Eu não entendo. Você quer utilizar o comando nativo SQL ALTER TABLE? utilizando TDOLPHIN/SQLRDD/SQLLIB?
request: ALTER TABLE
Mr. Nages has created some SQL commands for Fivewin to work with SQL and ADO. They work great but it is missing ALTER TABLE.
required changes to migrate from FWH 32 to 64 bits
If you are using a RC file and you use a manifest file, then this change is required in the RC file: [code=fw:1lbnwba5]<div class="fw" id="{CB}" style="font-family: monospace;">#ifdef __FLAT__<br />   <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"./WinXP/WindowsXP.Manifest"</span><br />#endif<br /><br />#ifdef __64__<br />   <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WinXP/WindowsXP.Manifest64"</span><br />#endif</div>[/code:1lbnwba5] If you link the old one (32 bits) by mistake, your EXE will not start and you will get an error that your app can't be executed
resedit command
Silvo I don't know if this is exactly what you are looking for .. I use a modified Rc2Dll32.bat to copy all my .rc files together and then compile them with Borland into a single .res. I then add the .res to the xMate compile list. [code=fw:1i5eei3p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@Echo Off<br />: <span style="color: #000000;">RC</span> file <span style="color: #0000ff;">to</span> <span style="color: #000000;">32</span> bits .res<br />: <span style="color: #000000;">syntax</span>: <span style="color: #000000;">rc2dll32</span>.bat Your_rc_file  !!! without the .RC extension<br /><br />DEL VehW32.RC<br />DEL VehW32.RES<br /><br />COPY *.RC VehW32.RC<br /><br />:  create a monolithic .res <span style="color: #0000ff;">from</span> all my .rc<br />C:\BORLAND\BCC70\BIN\brc32 -r %<span style="color: #000000;">1</span>.rc<br /><br />:  cleanup<br />del *.iL?<br />del *.map<br />del *.obj<br />del *.~rc<br />del *.rws<br />del *.tds<br />echo done!<br /> </div>[/code:1i5eei3p] Rick Lipkin
resedit command
someone Know the command I can insert on xmate to compile a exe with resources ? with Pelles I use c:\work\PellesC\Bin\PORC.EXE %RC% /I c:\work\pellesc\include /I c:\work\pellesc\include\win
resedit command
Seems like a lot of work. With xBuild you just add the .rc file(s) and Pelles does all the work ( xHarbour ) With Harbour / MSVC 2015, we just add the .rc to the script and have specified the the rc executable supplied by Microsoft ... Easy enough all the way around.
resedit command
Tim Yes, you can add each .rc to your compile list .. just too many to keep up with .. Since .rc is just a text file anyway .. I just copy them all together into one monolithic .rc .. so I just have one file to add to my compile list.. either as one single .rc or compiled as .res. I think with xMate you can call out to any external program ( .bat ) and run pre-compile .. just never tried to figure it out. Rick Lipkin
resedit command
I use Ultra Edit Studio so it would be no problem. However, I only use one large .rc file. Any resource in it can be found instantly. I just look at the resource name in the .prg, then do a quick find to move to it in the .rc.
resedit command
simple add the resource file to the project like a prg, and you can add as many as you need
resedit command
I use Xmate to build exe , lib and dll from I use fivewin for habour and I used it also with fivewin with ca-clipper with success from many years. I use Pellesc but now I wish use ( I want try) Resedit but I not Know how compile rc file from xmate with Resedit
resedit command
[quote="Marcelo Via Giglio":3uixb6sk]simple add the resource file to the project like a prg, and you can add as many as you need[/quote:3uixb6sk] Yes and xMate makes it very easy. What Mr Rick does is his personal convenience, but not necessary.
resedit command
Silvio, resedit is a resource editor, to add rc file to xMate project simplity add the rc file to the project like a prg file, maybe the problem is other with the resedit configuration and the rc file need some extra headers. Start your RC file from other in the fivewin's sample folder and try to add to the project regards Marcelo
resedit command
I use xmate. with xmate I use PellesC as you can see on this picture of xmate's Configuration [img:2i16c4nc]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/06/rc&#46;jpg[/img:2i16c4nc] Wich is the command line if I wish use resedit instead of PellesC ?
resedit command
Silvio, I use BCC to compile, the Resource Compiler option which I use is: %C_BIN_INSTALL%\Brc32.Exe -r -fo%RES% %RC% Regards Marcelo Vía
resedit command
Silvo Here is the command line options for Resedit .. hope this helps [quote:iyyqh75s] Command-line mode ResEdit supports a command-line mode ton convert a file to another format. Input and output files can be resource scripts (*.rc), compiled resource scripts (*.res) and Win32 PE files (*.exe, *.dll). The file convertion works just like if you open a file and save it in the new format. The usage of ResEdit in command-line mode is the following : ResEdit.exe -convert <input_file> <output_file> For example : ResEdit.exe -convert my_script.rc executable.exe ResEdit.exe -convert my_script.dll executable.res The format of the input an output files are automatically determined from the file extensions. [/quote:iyyqh75s] Rick Lipkin
resize a column to multiline in xbrowse
To All I have an ( second browse ) xbrowse that I would like to fit a long array field into a column and allow the column to word wrap into multi-line and resize the row to the depth of the deepest column .. Thanks Rick Lipkin [code=fw:3doixqen]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILENAME <span style="color: #000000;">&#40;</span>cDEFA+<span style="color: #ff0000;">"<span style="color: #000000;">\g</span>rey.bmp"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oICO <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"WORLD"</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oGRPS <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"VENDOR"</span> ;<br />       <span style="color: #0000ff;">ICON</span> oICO                   ;<br />       <span style="color: #0000ff;">TITLE</span> cTITLE <span style="color: #0000ff;">BRUSH</span> oBrush TRANSPARENT<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBROWSE</span> oLBX1                ;<br />       RECORDSET oRsWeb                  ;<br />       COLUMNS <span style="color: #ff0000;">"Run_This"</span>,               ;<br />               <span style="color: #ff0000;">"URL"</span>                     ;<br />       COLSIZES <span style="color: #000000;">30</span>,<span style="color: #000000;">200</span>                   ;<br />       HEADERS <span style="color: #ff0000;">"Run"</span>,                    ;<br />               <span style="color: #ff0000;">"Web Site to Search"</span>      ;<br />       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">of</span> oGrps                   ;<br />       AUTOSORT FASTEDIT LINES CELL<br /><br />       oLbx1:<span style="color: #000000;">bClrRowFocus</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">185</span>,<span style="color: #000000;">220</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />       oLbx1:<span style="color: #000000;">nMarqueeStyle</span>   := MARQSTYLE_HIGHLROWMS<br /><br />       <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> oCol := oLbx1:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Run"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />            oCol:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ON"</span>, <span style="color: #ff0000;">"OFF"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />            oCol:<span style="color: #000000;">cSortOrder</span>  := <span style="color: #00C800;">nil</span><br />          <span style="color: #B900B9;">//  oCol:lBmpStretch = .T.</span><br />       <span style="color: #00C800;">endif</span><br /><br />       AEVAL<span style="color: #000000;">&#40;</span> oLbx1:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">nEditType</span> := EDIT_GET <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />       * COLSIZES <span style="color: #000000;">30</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">100</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">30</span>       ;<br /><br />   <span style="color: #B900B9;">// resize the row ( multi-line ) on this xbrowse listbox when desc</span><br />   <span style="color: #B900B9;">// is wider than the column </span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBROWSE</span> oLBX2                ;<br />       ARRAY aResults                    ;<br />       COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>               ;<br />       HEADERS <span style="color: #ff0000;">"Site"</span>,                   ;<br />               <span style="color: #ff0000;">"Part"</span>,                   ;<br />               <span style="color: #ff0000;">"Name"</span>,                   ;<br />               <span style="color: #ff0000;">"Desc"</span>,                   ;<br />               <span style="color: #ff0000;">"Price"</span>,                  ;<br />               <span style="color: #ff0000;">"Qty"</span>                     ;<br />       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">121</span> <span style="color: #0000ff;">of</span> oGrps                   ;<br />       AUTOSORT <span style="color: #0000ff;">AUTOCOLS</span> FASTEDIT LINES CELL<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBTN1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">112</span> <span style="color: #0000ff;">of</span> oGrps  <span style="color: #B900B9;">//    ;    // add files</span><br />    *   <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> _FileView<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A"</span><span style="color: #000000;">&#41;</span>,;<br />    *            oLBX1:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, SysReFresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />    *            oLBX1:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBTN2 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">114</span> <span style="color: #0000ff;">of</span> oGrps  <span style="color: #B900B9;">//  ;    // edit files</span><br />     *  <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> _FileView<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"E"</span><span style="color: #000000;">&#41;</span>, ;<br />     *           oLBX1:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, SysReFresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />     *           oLBX1:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBTN3 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">119</span> <span style="color: #0000ff;">of</span> oGrps  <span style="color: #B900B9;">//  ;    // del files</span><br />     *  <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> Delete_Um<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBTN10 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">124</span> <span style="color: #0000ff;">of</span> oGrps  <span style="color: #B900B9;">// ;    // view log file</span><br />    *   <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> WaitRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NOTEPAD.EXE ERRORLOG.TXT"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBTN5 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">117</span> <span style="color: #0000ff;">of</span> oGrps  <span style="color: #B900B9;">//  ;    // run</span><br />    *   <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> _RunDist<span style="color: #000000;">&#40;</span> cNAME <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBTN6 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">118</span> <span style="color: #0000ff;">of</span> oGrps    ;    <span style="color: #B900B9;">// quit</span><br />       <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> dbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                oGrps:<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 /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oGrps <span style="color: #0000ff;">NOWAIT</span>          ;<br />       <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">&#40;</span> oLbx1:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .F. <span style="color: #000000;">&#41;</span>;<br />       <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> IIF<span style="color: #000000;">&#40;</span> !lOK, ExitPgm<span style="color: #000000;">&#40;</span>.T., oRsWeb<span style="color: #000000;">&#41;</span>, .F. <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:3doixqen] [url=http&#58;//imageshack&#46;us/photo/my-images/5/rickx&#46;jpg/:3doixqen][img:3doixqen]http&#58;//img5&#46;imageshack&#46;us/img5/5350/rickx&#46;jpg[/img:3doixqen][/url:3doixqen]
resize a column to multiline in xbrowse
Please try this suggestion: Add this code in the ON INIT clause: [code=fw:1rm8msn3]<div class="fw" id="{CB}" style="font-family: monospace;">oLbx2:<span style="color: #000000;">nRowHeight</span> := XbrColMaxHeight<span style="color: #000000;">&#40;</span> oLbx2:<span style="color: #0000ff;">Desc</span> <span style="color: #000000;">&#41;</span></div>[/code:1rm8msn3] Function XbrColMaxHeight( oCol ) [code=fw:1rm8msn3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#define</span> DT_WORDBREAK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x00000010<br /><span style="color: #00D7D7;">#define</span> DT_CALCRECT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000400<br /><br /><span style="color: #00C800;">function</span> XbrColMaxHeight<span style="color: #000000;">&#40;</span> oCol <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oBrw, hDC<br />   <span style="color: #00C800;">local</span> nLeft, nHeight, nRight, nWidth<br />   <span style="color: #00C800;">local</span> cData, oFont, aRect<br />   <span style="color: #00C800;">local</span> uSave, nMaxHeight<br /><br />   oBrw              := oCol:<span style="color: #000000;">oBrw</span><br />   nMaxHeight        := <span style="color: #000000;">0</span><br />   nLeft             := oCol:<span style="color: #000000;">nDisplayCol</span><br />   nRight            := <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nLeft + oCol:<span style="color: #000000;">nWidth</span>, ::<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">if</span> nRight - nLeft < <span style="color: #000000;">10</span><br />      <span style="color: #00C800;">return</span> oBrw:<span style="color: #000000;">nRowHeight</span><br />   <span style="color: #00C800;">endif</span><br /><br />   hDC               := oBrw:<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFont             := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ValType<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">oDataFont</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'B'</span>, Eval<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">oDataFont</span> <span style="color: #000000;">&#41;</span>, oCol:<span style="color: #000000;">oDataFont</span> <span style="color: #000000;">&#41;</span><br />   oFont:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />   aRect             := oBrw:<span style="color: #000000;">DataRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>        := nLeft<br />   aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>        := nRight<br />   uSave             := oBrw:<span style="color: #000000;">BookMark</span><br />   oBrw:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   REPEAT<br /><br />      cData          := Trim<span style="color: #000000;">&#40;</span> cValToChar<span style="color: #000000;">&#40;</span> Eval<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">bStrData</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />         nMaxHeight  := <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> DrawTextEx<span style="color: #000000;">&#40;</span> hDC, cData, aRect, nOr<span style="color: #000000;">&#40;</span> DT_CALCRECT, DT_WORDBREAK <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />                             nMaxHeight <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #B900B9;">// not handling bitmap width, indent, if any.</span><br /><br />   UNTIL oBrw:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">1</span><br /><br />   oBrw:<span style="color: #000000;">BookMark</span>     := uSave<br /><br /><span style="color: #00C800;">return</span> nMaxHeight<br /><br /> </div>[/code:1rm8msn3] I have not tested. Please check for any minor errors and test.
resize a column to multiline in xbrowse
Rao Thank you for your help .. I did get an error on line 207 .. Application =========== Path and name: C:\Fox\WebCrawl\WebCrawl.Exe (32 bits) Size: 2,065,920 bytes Time from start: 0 hours 0 mins 3 secs Error occurred at: 05/25/2011, 09:17:12 Error description: Error BASE/1003 Variable does not exist: SELF Args: Stack Calls =========== Called from: SEARCH.PRG => XBRCOLMAXHEIGHT(207) Called from: SEARCH.PRG => (b)_SEARCH(125) Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE(705) Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(912) Called from: => DIALOGBOX(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: SEARCH.PRG => _SEARCH(125) Called from: main.prg => (b)MAIN(210) Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(445) Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(631) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469) Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1295) Called from: .\source\classes\WINDOW.PRG => _FWH(3347) Called from: => WINRUN(0) Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(966) Called from: main.prg => MAIN(261) [code=fw:2m2ux93d]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oGrps ; <span style="color: #B900B9;">//NOWAIT          ;</span><br />       <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">&#40;</span>oLbx2:<span style="color: #000000;">nRowHeight</span> := XbrColMaxHeight<span style="color: #000000;">&#40;</span> oLbx2:<span style="color: #0000ff;">Desc</span> <span style="color: #000000;">&#41;</span>,oParts:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,SysReFresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />       <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> IIF<span style="color: #000000;">&#40;</span> !lOK, ExitPgm<span style="color: #000000;">&#40;</span>.T., oRsWeb, @aResults <span style="color: #000000;">&#41;</span>, .F. <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2m2ux93d] [url=http&#58;//imageshack&#46;us/photo/my-images/641/rickn&#46;jpg/:2m2ux93d][img:2m2ux93d]http&#58;//img641&#46;imageshack&#46;us/img641/9134/rickn&#46;jpg[/img:2m2ux93d][/url:2m2ux93d]
resize a column to multiline in xbrowse
Please change ::BrwWidth() as oBrw:BrwWidth()
resize a column to multiline in xbrowse
Rao What I am trying to do is take the Desc column and be able to 'word wrap' the text within the column width which will then force the entire row depth to be re-evaluated. Since the oLbx2 xBrowse is an array .. I had to create a blank ( phantom ) record when my program starts. Upon execution the array rows are deleted and re-populated as the program runs. I tried your code two ways .. creating a 'phantom' record with bogus information and one with blanks : [code=fw:307hd9i9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />*AAdd<span style="color: #000000;">&#40;</span> aResults,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"www.google.com "</span>,<span style="color: #ff0000;">"130794 "</span>,;<br />*                <span style="color: #ff0000;">"We stock the most popular fast moving engines, but often we can't keep up"</span>,;<br />*                <span style="color: #ff0000;">"$44.95 "</span>,<span style="color: #ff0000;">"see shipping tab"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />AAdd<span style="color: #000000;">&#40;</span> aResults, <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"   "</span>,<span style="color: #ff0000;">"   "</span>,;<br />                 space<span style="color: #000000;">&#40;</span><span style="color: #000000;">200</span><span style="color: #000000;">&#41;</span>,;<br />                 <span style="color: #ff0000;">"   "</span>,<span style="color: #ff0000;">"   "</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:307hd9i9] With phantom startup data : [url=http&#58;//imageshack&#46;us/photo/my-images/715/rickxz&#46;jpg/:307hd9i9][img:307hd9i9]http&#58;//img715&#46;imageshack&#46;us/img715/9660/rickxz&#46;jpg[/img:307hd9i9][/url:307hd9i9] With blank phantom data at startup and run-time results [url=http&#58;//imageshack&#46;us/photo/my-images/802/rick1&#46;jpg/:307hd9i9][img:307hd9i9]http&#58;//img802&#46;imageshack&#46;us/img802/1154/rick1&#46;jpg[/img:307hd9i9][/url:307hd9i9] Run-time results with blank phantom data : [url=http&#58;//imageshack&#46;us/photo/my-images/814/rick2&#46;jpg/:307hd9i9][img:307hd9i9]http&#58;//img814&#46;imageshack&#46;us/img814/4660/rick2&#46;jpg[/img:307hd9i9][/url:307hd9i9] If it is possible to create a Desc column that breaks a long string and wrap it into multiple lines within the column .. then re-size the row to the depth of the column .. Don't know if this can be done ? Thanks Rick Lipkin
resize a column to multiline in xbrowse
[quote:3lv49zqj]Don't know if this can be done ?[/quote:3lv49zqj] This can be done. To start with, define the browse in the normal way. Please also assign column widths appropriately. Before adding a line, read the line in to an array aLine. Example: [code=fw:3lv49zqj]<div class="fw" id="{CB}" style="font-family: monospace;">aLine := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"www.google.com "</span>,<span style="color: #ff0000;">"130794 "</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"We stock the most popular fast moving engines, but often we can't keep up"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"$44.95 "</span>,<span style="color: #ff0000;">"see shipping tab"</span> <span style="color: #000000;">&#125;</span></div>[/code:3lv49zqj] Then, call the function: [code=fw:3lv49zqj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />SetRowHeight<span style="color: #000000;">&#40;</span> oLbx2:<span style="color: #0000ff;">Desc</span>, aLine<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />AAdd<span style="color: #000000;">&#40;</span> aResults, aLine <span style="color: #000000;">&#41;</span><br />oLbx2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oLbx2:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:3lv49zqj] function: [code=fw:3lv49zqj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> SetRowHeight<span style="color: #000000;">&#40;</span> oCol, cData <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> nOrglHeight<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBrw &nbsp; &nbsp; := oCol:<span style="color: #000000;">oBrw</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hDC, oFont, aRect, nHeight<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nOrglHeight := oBrw:<span style="color: #000000;">nRowHeight</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;">2</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> oBrw:<span style="color: #000000;">nRowHeight</span> != nOrglHeight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">nRowHeight</span> &nbsp; := nOrglHeight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= oBrw:<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ValType<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">oDataFont</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'B'</span>, Eval<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">oDataFont</span> <span style="color: #000000;">&#41;</span>, oCol:<span style="color: #000000;">oDataFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aRect &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := oBrw:<span style="color: #000000;">DataRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; := aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> + oCol:<span style="color: #000000;">nWidth</span><br />&nbsp; &nbsp;nHeight &nbsp; &nbsp; &nbsp; &nbsp;:= DrawTextEx<span style="color: #000000;">&#40;</span> hDC, cData, aRect, nOr<span style="color: #000000;">&#40;</span> DT_CALCRECT, DT_WORDBREAK <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">DeActivate</span><span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nHeight > oBrw:<span style="color: #000000;">nRowHeight</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">nRowHeight</span> &nbsp; := nHeight<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;</div>[/code:3lv49zqj] If and when you want to empty the entire array, first call SetRowHeight( oLbx:Desc ) [ only one parameter] and then ASize( aResults, 0 ), oBrw:Refresh( .t. )
resize a column to multiline in xbrowse
Rao Thank you for your diligence .. just looking at the code .. I did not see where the Desc text will line wrap within the confines of the pre-determined width of the column ?? Let me apply your code and see how it works ! Again, thank you ! Rick Lipkin
resize a column to multiline in xbrowse
Rao Your code works great for setting the depth ot the row .. I did have to find the references for DT_CALCRECT and DT_WORDBREAK ( in \bcc55\include\winuser.h ) .. I just added the two lines : #define DT_CALCRECT 0x00000200 #define DT_WORDBREAK 0x00000010 Unfortunately the text in the column does not wrap .. however the depth of the row seems to be correct .. As always your incite is VERY welcome! Rick [url=http&#58;//imageshack&#46;us/photo/my-images/228/rickf&#46;jpg/:3nd8mcvn][img:3nd8mcvn]http&#58;//img228&#46;imageshack&#46;us/img228/8742/rickf&#46;jpg[/img:3nd8mcvn][/url:3nd8mcvn]
resize a column to multiline in xbrowse
After creating the browse, please add oBrw:Desc:cDataType := "M"
resize a column to multiline in xbrowse
Rao PERFECT .. my next task is show the picture of the part .. the link to the picture is in the DOM .. I will either try to capture the link to the pic and try to execute it in another xbrowse column ( no clue yet ) or download the pic and display it as I crawl thru each web site. Thanks Rick [url=http&#58;//imageshack&#46;us/photo/my-images/835/perfecttl&#46;jpg/:34gspv99][img:34gspv99]http&#58;//img835&#46;imageshack&#46;us/img835/9492/perfecttl&#46;jpg[/img:34gspv99][/url:34gspv99]
resize a column to multiline in xbrowse
Rao One unexpected side effect .. as I am looping thru my table gathering results .. the first row has a small Desc and returns perfect [url=http&#58;//imageshack&#46;us/photo/my-images/96/rick1v&#46;jpg/:2tjukuf4][img:2tjukuf4]http&#58;//img96&#46;imageshack&#46;us/img96/8470/rick1v&#46;jpg[/img:2tjukuf4][/url:2tjukuf4] The second loop generated a large Desc and returns an adjusted row [url=http&#58;//imageshack&#46;us/photo/my-images/196/rick2s&#46;jpg/:2tjukuf4][img:2tjukuf4]http&#58;//img196&#46;imageshack&#46;us/img196/8370/rick2s&#46;jpg[/img:2tjukuf4][/url:2tjukuf4] Unfortunately .. all the rows have been adjusted to the last column width [url=http&#58;//imageshack&#46;us/photo/my-images/402/rick3o&#46;jpg/:2tjukuf4][img:2tjukuf4]http&#58;//img402&#46;imageshack&#46;us/img402/4056/rick3o&#46;jpg[/img:2tjukuf4][/url:2tjukuf4] Your suggestions are perfect .. but it appears I will need a codeblock that will eval each row and re-size the browse at run-time somewhere here in this code ? [code=fw:2tjukuf4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBROWSE</span> oLBX2                ;<br />       ARRAY aResults                    ;<br />       COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>                 ;<br />       COLSIZES <span style="color: #000000;">150</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">300</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">50</span>         ;<br />       HEADERS <span style="color: #ff0000;">"Site"</span>,                   ;<br />               <span style="color: #ff0000;">"Part"</span>,                   ;<br />               <span style="color: #ff0000;">"Desc"</span>,                   ;<br />               <span style="color: #ff0000;">"Price"</span>,                  ;<br />               <span style="color: #ff0000;">"Qty"</span>                     ;<br />       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">121</span> <span style="color: #0000ff;">of</span> oGrps                   ;<br />       AUTOSORT <span style="color: #0000ff;">AUTOCOLS</span> FASTEDIT LINES CELL<br /><br />       oLbx2:<span style="color: #0000ff;">Desc</span>:<span style="color: #000000;">cDataType</span> := <span style="color: #ff0000;">"M"</span><br /> </div>[/code:2tjukuf4] Thanks again for all your HELP ! Rick Lipkin