topic
stringlengths
1
63
text
stringlengths
1
577k
tamaño renglones xbrowse
Loco, Francisco I am following this thread with much interest .. I posted a thread similar to this question in the English Forum and Rao helped in creating a function to AutoSize a row based on the character depth of the Memo column .. unfortunately, the depth of the column once set .. would not resize based on the actual depth of the Memo column of each row .. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=21601&p=114995#p114995">viewtopic.php?f=3&t=21601&p=114995#p114995</a><!-- l --> I tested my code and added the two columns I wanted merged like in the .. TestMerg.prg sample : // Following two lines for vertical cell merging oBrw:Customer:lMergeVert := .t. oBrw:Description:lMergeVert := .t. But it did not work <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Rick Lipkin [code=fw:2mut0cw6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRsReq:<span style="color: #000000;">Filter</span> := <span style="color: #ff0000;">""</span><br />oRsReq:<span style="color: #000000;">Filter</span> := <span style="color: #ff0000;">"datereceived = null and datecancelled = null"</span><br /><br />lOK := .F.<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oICO <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CLIENTS"</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd1                        ;<br />      <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">100</span>                   ;<br />      <span style="color: #0000ff;">TITLE</span> cTITLE                         ;<br />      <span style="color: #0000ff;">MENU</span> Buildmenu<span style="color: #000000;">&#40;</span> oRsReq <span style="color: #000000;">&#41;</span>             ;<br />      <span style="color: #0000ff;">ICON</span> oICO                            ;<br />      NOSYSMENU                            ;<br />      NOMINIMIZE                           ;<br />      NOZOOM                               ;<br />      <span style="color: #0000ff;">MDICHILD</span><br /><br />@ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">xBROWSE</span> oBrw <span style="color: #0000ff;">of</span> oWnd1               ;<br />       RECORDSET oRsReq                    ;<br />       COLUMNS <span style="color: #ff0000;">"PARTDESC"</span>,                 ; <span style="color: #B900B9;">// insert for stock</span><br />               <span style="color: #ff0000;">"CPHONE1"</span>,                  ;<br />               <span style="color: #ff0000;">"VENDOR"</span>,                   ;<br />               <span style="color: #ff0000;">"VPHONE1"</span>,                  ;<br />               <span style="color: #ff0000;">"BIN"</span>,                      ;<br />               <span style="color: #ff0000;">"STOCKNO"</span>,                  ;<br />               <span style="color: #ff0000;">"DATEREQUESTED"</span>,            ;<br />               <span style="color: #ff0000;">"DATEORDERED"</span>,              ;<br />               <span style="color: #ff0000;">"DATESHIPPED"</span>,              ;<br />               <span style="color: #ff0000;">"DATERECEIVED"</span>,             ;<br />               <span style="color: #ff0000;">"DATECANCELLED"</span>,            ;<br />               <span style="color: #ff0000;">"REQUESTNO"</span>                 ;<br />       COLSIZES <span style="color: #000000;">138</span>,<span style="color: #000000;">75</span>,<span style="color: #000000;">100</span>,<span style="color: #000000;">75</span>,<span style="color: #000000;">33</span>,<span style="color: #000000;">80</span>,<span style="color: #000000;">65</span>,<span style="color: #000000;">65</span>,<span style="color: #000000;">65</span>,<span style="color: #000000;">65</span>,<span style="color: #000000;">65</span>,<span style="color: #000000;">65</span>;<br />       HEADERS <span style="color: #ff0000;">"Description"</span>,              ; <span style="color: #B900B9;">// insert for stock</span><br />               <span style="color: #ff0000;">"CustPhone"</span>,                ;<br />               <span style="color: #ff0000;">"Vendor"</span>,                   ;<br />               <span style="color: #ff0000;">"VendPhone"</span>,                ;<br />               <span style="color: #ff0000;">"Bin"</span>,                      ;<br />               <span style="color: #ff0000;">"Part Number"</span>,              ;<br />               <span style="color: #ff0000;">"Requested"</span>,                ;<br />               <span style="color: #ff0000;">"Ordered"</span>,                  ;<br />               <span style="color: #ff0000;">"Shipped"</span>,                  ;<br />               <span style="color: #ff0000;">"Received"</span>,                 ;<br />               <span style="color: #ff0000;">"Cancelled"</span>,                ;<br />               <span style="color: #ff0000;">"Request"</span>                   ;<br />       AUTOSORT <span style="color: #0000ff;">AUTOCOLS</span> LINES CELL<br /><br />       oWnd1:<span style="color: #000000;">oClient</span> := oBrw<br /><br />   *   oBrw:<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">45</span><br /><br />    ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">AT</span> <span style="color: #000000;">1</span> <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#123;</span>|x| x := _ChkCust<span style="color: #000000;">&#40;</span>oRsReq:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"clname"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,;<br />                oRsReq:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"cfname"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span> HEADER <span style="color: #ff0000;">"Customer"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">110</span><br /><br />       oBrw:<span style="color: #000000;">lFooter</span>   := .t.<br />       oCol           := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />       oCol:<span style="color: #000000;">bFooter</span>   := <span style="color: #000000;">&#123;</span> || Ltrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" / "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />       oCol:<span style="color: #000000;">cHeader</span>   := <span style="color: #ff0000;">"Customer"</span><br />       oBrw:<span style="color: #000000;">bChange</span>   := <span style="color: #000000;">&#123;</span> || oCol:<span style="color: #000000;">RefreshFooter</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />       ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">AT</span> <span style="color: #000000;">8</span> <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#123;</span>|x| x := _ChkStock<span style="color: #000000;">&#40;</span>oRsReq:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"OutOfStock"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span> HEADER <span style="color: #ff0000;">"For Stock"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">55</span><br /><br />       oCol := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span><br />       oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> |x| x := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>oRsReq:<span style="color: #000000;">eof</span>,,oRsReq:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DateRequested"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">'00/00/0000'</span>,DToC<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />       oCol := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#93;</span><br />       oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> |x| x := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>oRsReq:<span style="color: #000000;">eof</span>,,oRsReq:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DateOrdered"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">'00/00/0000'</span>,DToC<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />       oCol := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</span><br />       oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> |x| x := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>oRsReq:<span style="color: #000000;">eof</span>,,oRsReq:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DateShipped"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">'00/00/0000'</span>,DToC<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />       oCol := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span><br />       oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> |x| x := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>oRsReq:<span style="color: #000000;">eof</span>,,oRsReq:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DateReceived"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">'00/00/0000'</span>,DToC<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />       oCol := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#93;</span><br />       oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span> |x| x := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>oRsReq:<span style="color: #000000;">eof</span>,,oRsReq:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DateCancelled"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">'00/00/0000'</span>,DToC<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />       oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cDataType</span> := <span style="color: #ff0000;">"M"</span>  <span style="color: #B900B9;">// description</span><br /><br />       <span style="color: #B900B9;">// Following two lines for vertical cell merging</span><br />       oBrw:<span style="color: #000000;">Customer</span>:<span style="color: #000000;">lMergeVert</span>       := .t.<br />       oBrw:<span style="color: #000000;">Description</span>:<span style="color: #000000;">lMergeVert</span>    := .t.<br /><br />       oBrw:<span style="color: #000000;">bRClicked</span>  := <span style="color: #000000;">&#123;</span> | nRow, nCol | ShowPopup<span style="color: #000000;">&#40;</span>oBrw,nROW,nCOL,;<br />                                           oRsReq,oBtn1,oBtn2,oBtn3,oBtn4,oBtn5,oBtn6 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />       oBrw:<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">&#123;</span> |nRow,nCol | _ReqView<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"V"</span>, oRsReq,oBtn1,oBtn2,oBtn3,oBtn4,oBtn5,oBtn6,oWndFind<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />       oBrw:<span style="color: #000000;">bKeyDown</span>   := <span style="color: #000000;">&#123;</span> |nKey| _Manual<span style="color: #000000;">&#40;</span> nKey,oRsReq,oBtn1,oBtn2,oBtn3,oBtn4,oBtn5,oBtn6,oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />       oBrw:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span>CLR_BLACK, <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _CHkClosed<span style="color: #000000;">&#40;</span>oRsReq<span style="color: #000000;">&#41;</span> , RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">179</span>,<span style="color: #000000;">203</span>,<span style="color: #000000;">204</span><span style="color: #000000;">&#41;</span>, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />       oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWND1 ;<br />         <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">&#40;</span> oBrw:<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, ReqClose<span style="color: #000000;">&#40;</span>.T.,oWnd1,oRsReq,oBar1,oBar2 <span style="color: #000000;">&#41;</span>, .F. <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><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 /> </div>[/code:2mut0cw6]
tamaño renglones xbrowse
Rick, No se como explicarlo en ingles, pero creo es imposible hacerlo asi, ya que son 2 campos de un mismo registro tomandolos como un solo campo de un solo registro y poniendo el alto de la fila se ajuste automaticamente, entonces aqui el detalle es que cada registro puede tener alturas diferentes, aaaa y otra cosa, como es un campo MEMO que se ajustara el memo al ancho de la columna,,, ups lo voy a tener que solucionar poniendo un say y cada que recorra un registro ir actualizando ese sey que seria el campo MEMO,,, saludos paco
tamaño renglones xbrowse
Paco; interesante el tema, aunuqe no puedo aportar una solución <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> , por favor no dejes de postear si lo consigues muchas gracias
tamaño renglones xbrowse
Verificaste el ejemplo /fwh/samples/TestXbr6.prg
tamaño renglones xbrowse
Pablo si lo vi y probe, funciona a medias, ya que el datalines no he podidio ajustarlo automaticamente calculando las lineas del campo memo, cada registro deberia tener un alto diferente del renglon y no he dado como hacerlo.. salu2 paco
tamaño renglones xbrowse
si existiera una datalines por cada row seria estupendo,,, asi le das exactamente el alto a cada fila de hecho asi tengo mi xbrowse,nada del otro mundo aoCols[2]:bStrData := { || ::oQryMesa:FieldGet("nombre") + CRLF + ALLTRIM(::oQryMesa:FieldGet("comentarios")) } salu2 paco
tamaño renglones xbrowse
Paco, Me uno a los que nos interesa alguna solucion a este tema. De momento, lo que hice fue hacerle un split al texto largo para poner varias lineas y usar colores para distinguir los renglones. En mi caso lo estoy aplicando para un pequeño y limitado chat entre terminales. [img:dusf1tec]http&#58;//img838&#46;imageshack&#46;us/img838/4964/chatgy&#46;jpg[/img:dusf1tec] Saludos PD : Por lo que veo, para que se te vaya el tren va a estar cañon.... ya que no lo sueltas para nada !!! jejeje
tamaño renglones xbrowse
No he testado esto, pero puede funncionar, no tengo como probarlo. Adiciona una data a la clase xbrowse [code=fw:1m5avlsp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />     <span style="color: #00C800;">DATA</span> lMultiHeight      <span style="color: #0000ff;">INIT</span> .F.   <span style="color: #B900B9;">//NEW</span></div>[/code:1m5avlsp] Modifica o metodo DataHeight de la xbrowse [code=fw:1m5avlsp]<div class="fw" id="{CB}" style="font-family: monospace;">  <br /> <span style="color: #00C800;">METHOD</span> DataHeight<span style="color: #000000;">&#40;</span> nAux <span style="color: #000000;">&#41;</span>   <span style="color: #00C800;">INLINE</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lMultiHeight</span>, <span style="color: #000000;">&#40;</span> nAux := <span style="color: #000000;">0</span>, ;   <span style="color: #B900B9;">//NEW</span><br />                                                          AEval <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> | o,n <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nAux, o:<span style="color: #000000;">DataHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>, ; <span style="color: #B900B9;">//Para traer la celda mas alta. //NEW</span><br />                                                          ::<span style="color: #000000;">nRowHeight</span> := nAux <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span>, ; <span style="color: #B900B9;">//asignamos el nRow. //NEW</span><br />                                         ::<span style="color: #000000;">nRowHeight</span> - iif<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">nRowDividerStyle</span> > LINESTYLE_NOLINES, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> - ;<br />                                         <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>::<span style="color: #000000;">nRowDividerStyle</span> >= LINESTYLE_INSET, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1m5avlsp] Despues en tu prg haces. [code=fw:1m5avlsp]<div class="fw" id="{CB}" style="font-family: monospace;">oXbr:<span style="color: #000000;">lMultiHeight</span> := .T.</div>[/code:1m5avlsp] Ahora esto creo que es mejor poner en el on init del dialog..puedes testar. Seguro que en algun lado tenemos que recalcular el nMaxRows que es el maximo de lineas a pintar. Pero por ahi debe ir los tiros.. Voy a testar cuando regrese de vagaciones <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->.
tamaño renglones xbrowse
RenOmaS, Como ya he comentado anteriormente, las clases y todo lo relacionado nomas no se llevan conmigo <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> Pero creo que hace falta algo que "lea" el contenido de la celda para calcular el alto de la misma. Si estoy equivocado, disculpa mi comentario. Ojala los gurus del foro, encuentren alguna solucion a esto. Saludos
tamaño y posicion de un button o sbutton
Hola: Alguien sabe como guardar la posicion de un boton al ser movido o cambiado de tamaño. requiero que el usuario "cree" sus botones los ponga donde quiera y al tamaño que quiera y se guarden en una base de datos para que al abrir nuevamente la aplicacion aparezcan en el lugar y en el tamaño que el definio, es posible hacerlo ??, pueden decirme los parametros para obtener dichos valores ?? ante todo gracias por su tiempo... saludos veracruz, ver, mexico
tamaño y posicion de un button o sbutton
oBoton:nTop oBoton:nLeft oBoton:nWidth oBoton:nHeight
tamaño y posicion de un button o sbutton
GRACIAS ANTONIO: ahora lo q me falta es hacer que un SBUTTON se pueda ajustar de tamaño y de posicion lo he intentado con la clausulas: ADJUST DESIGN pero no pasa nada, si lo hago con BUTTON, si lo hace, lo requiero hacer con la clase SBUTTON por que requiero botones con color de fondo, y en algunos casos redondos, pero no se si me este equivocando de clase o que me sugieras hacer, gracias
tamaño y posicion de un button o sbutton
Prueba lo siguiente: oBoton:lDrag = .t.
tarea concluida
Sr. Linares como vera he completado más de 25 funciones y voy a seguir avanzando en otras que esta para arreglar el nombre y su traducción. Espero su respuesta pronto y gracias por anticipado.
tarea concluida
Persi, Los parámetros de las funciones has de ponerlos entre "|" para que aparezcan como tablas, ejemplo: <!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivewin_funcion_delinientry">http://wiki.fivetechsoft.com/doku.php?i ... elinientry</a><!-- m --> |<Section>| Sección| |<Entry>| Entrada | |<File>| Archivo Ini | igualmente usamos esas barras para el valor de retorno de la función. Gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tarea concluida
Persi, En todas las funciones hay que especificar la sección "Ver tambien" en donde se referencia funciones relacionadas, por ejemplo, en: [url:3vhx4iff]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_funcion_delinientry[/url:3vhx4iff] habría que añadir: ====== Ver también ====== [[fivewin_funcion_delinisection|DelIniSection()] y demás funciones relacionadas con los ficheros INI gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tarea concluida
Hice algunos cambios, está bien así
tarea concluida
Persi, Estan bien, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Por favor, aplícalos tambien al resto de funciones que has hecho, gracias
tarea concluida
Persi, Mira los cambios que hice en esta función: [url:1co86ty9]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_funcion_waitrun[/url:1co86ty9] asi deberías modificar las que has hecho, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tarea concluida
Sr. Linares como verá he realizado algunos cambios en las funciones como me indico. Inclusive he agregado un ejemplo en la función devicecapabilities. <!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivewin_funcion_devicecapabilities">http://wiki.fivetechsoft.com/doku.php?i ... pabilities</a><!-- m --> Atte. Persi Salazar D.
tarea concluida
Persi, Una última solicitud: por favor no incluyas los nombres de cada sección en inglés en las funciones en español. Aqui tienes un ejemplo: [url:ylxyulay]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_funcion_devicecapabilities&rev=1252384533&do=diff[/url:ylxyulay] Una vez hagas esos cambios, estará completo, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tarea concluida
Ok. Ya hice los últimos cambios como me indico, espero no tener más errores; Espero su respuesta. Gracias. <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
tarea concluida
Persi, Muchas gracias por tu ayuda en el wiki <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Revisa tu email <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Y nos gustaría que siguieses ayudando y asi obteniendo nuevas actualizaciones y productos, gracias!
tarea concluida
Recibido copiado e instalado, muchas gracias y de todas maneras voy a seguir colaborando ya que es un excelente guía de consulta y con la experiencia ganada me va a servir para arreglar muchas paginas que aun tienen errores. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
tarea concluida
Persi, Muchas gracias, Has hecho un trabajo muy bueno en el wiki y ojalá sigas ayudándonos para que tengamos una estupenda documentación online de FWH para todos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tarificador telefonico
Buen dia a todos, alguien tendra un ejemplillo de como hacer un tarificador telefonico con fwh
tarificador telefonico
Estimado...hasta lo que yo tengo entendido las centrales telefonicas te envia un archivo el cual debes manipularlo y desde alli desarrollar tu aplicación, de todos modo tengo entendido sobre el tema centrales telefonicas, te aviso....Aca en Argentina, para determinar el costo de una llamada es una historia, ya depende el horario y la distancia en que estás comunicando...SaludosDavid Argentina
tarificador telefonico
[quote="tosko":3ix7bitz]Buen dia a todos, alguien tendra un ejemplillo de como hacer un tarificador telefonico con fwh[/quote:3ix7bitz]En mi empresa tienen un tarificador con varios interfaces.Depende cual interface algunos van;1.- RS-2322.- fichero txt3.- SocketsCada uno implementa su interface propia, etc...La verdad que esto es un mundo, que por cierto, me a tocado el marrón de hacerlo en un futuro no muy lejano.....
tarificador telefonico
[quote="tosko":22wtm0rd]Buen dia a todos, alguien tendra un ejemplillo de como hacer un tarificador telefonico con fwh[/quote:22wtm0rd]Hola toskoHace tiempo tome como base un ejemplo de manejo de puerto seriales que viene incluido en la carpeta "samples" tambien puedes buscar en el foro fw para clipper. Si no tienes existo me avisa para buscar mi aplicacionsaludos ,erick
task manager
[code=fw:1bjvxoja]<div class="fw" id="{CB}" style="font-family: monospace;"> GetTasks<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Returns an array with the names of all the active Tasks running in Windows</span></div>[/code:1bjvxoja]
task manager
Patrizio, Friend, using WINDOWS 7, gettasks () returns me an incomplete list of processes. I need a complete list so that I can find the name of the MYSQL process installed. Thanks
task manager
You could run this command: tasklist /v /fi "STATUS eq running"
task manager
Thanks
task manager
Hello, How do I know which applications are running on TASK MANAGEMENT? I need to know if a particular application is running on the task manager. I would like to know the mysql process / service name thank you
task manager
Maybe this can help [code=fw:3u5rg2to]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> getprogram<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> CFILENAME := <span style="color: #ff0000;">"TEST.EXE"</span><br /><br />   <span style="color: #00C800;">IF</span> ISEXERUNNING<span style="color: #000000;">&#40;</span> CFILENAME<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test is running"</span>,<span style="color: #ff0000;">"Title"</span><span style="color: #000000;">&#41;</span><br />      SHOWWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"TEST"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />      SETFOREGROUNDWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"TEST"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />   <span style="color: #00C800;">else</span><br />      <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test is not running"</span>,<span style="color: #ff0000;">"Opgelet"</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 /> </div>[/code:3u5rg2to]
task manager
Marc, thanks... I would like to know the name of the mysql service installed on the computer.
tbbutton
tbbutton support command menu omenu popup ?
tbbutton
Silvio, [code:1phltql1] #xcommand DEFINE TBMENU ; &#91; OF <oToolBar> &#93; ; &#91; ACTION <uAction> &#93; ; &#91; TOOLTIP <cToolTip> &#93; ; &#91; PROMPT <cPrompt> &#93; ; &#91; WHEN <uWhen> &#93; ; &#91; MESSAGE <cMsg> &#93; ; &#91; MENU <oMenu> &#93; ; [/code:1phltql1] Please review samples\toolbar1.prg and toolbar2.prg
tbbutton
ooopps... thanks mr Antonio
tbbutton
Antonio I not found a sample with tbmenu...Menu omenu I must create it but for toolbar: DEFINE BUTTON RESOURCE "SMALL_UNZOOM" NOBORDER OF oBar ; MESSAGE TXT_PREVIEW_ON_MULTI_PAGES ; MENU oPop GROUP
tbbutton
Silvio, Search fwh\samples\*.prg for TBMENU, if you don't find any references, then the FWH build that you are using does not support it
tbbutton
from version we have tbmenu ?
tbbutton
Silvio, September 2006
tbmenu
why I cannot insert a variable oItem on this command ? DEFINE TBMENU [b:d55cholg]::oItem [/b:d55cholg]OF oBar ; MENU ::Multi()give this error[1]:Harbour.Exe rpreview.prg /m /n /es2 /iC:\work\FWH\include /ic:\work\xHarbour\Include /iinclude;c:\work\fwh\include;c:\work\xHarbour\include /oObj\rpreview.cxHarbour Compiler build 0.99.71 (SimpLex)Copyright 1999-2007, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->Compiling 'test.prg'...rpreview.prg(376) Error E0030 Syntax error: "parse error at 'TBMENU'"rpreview.prg(383) Error E0030 Syntax error: "parse error at 'TBBUTTON'"I need to inizialize the ::oItemthanksthanks
tbmenu
Silvio,You can't because the ToolBar object does not manage buttons as objects.You can access its properties from its index into oToolBar:aButtons
tbmenu
Sorry AntonioI stay to modify my preview there is some errorLook it please[code:vgkrmk2g] if IsAppThemed&#40;&#41; &#46;and&#46; ! l2007 DEFINE IMAGELIST oImageList SIZE 16, 16 oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "top2",, &#58;&#58;oWnd &#41;, nRGB&#40; 192, 192, 192 &#41; &#41; oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "previous2",, &#58;&#58;oWnd &#41;, nRGB&#40; 192, 192, 192 &#41; &#41; oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "next2",, &#58;&#58;oWnd &#41;, nRGB&#40; 192, 192, 192 &#41; &#41; oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "bottom2",, &#58;&#58;oWnd &#41;, nRGB&#40; 192, 192, 192 &#41; &#41; oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "zoom2",, &#58;&#58;oWnd &#41;, nRGB&#40; 192, 192, 192 &#41; &#41; oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "Two_pages2",, &#58;&#58;oWnd &#41;, nRGB&#40; 192, 192, 192 &#41; &#41; oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "printer2",, &#58;&#58;oWnd &#41;, nRGB&#40; 255, 0, 255 &#41; &#41; oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "exit2",, &#58;&#58;oWnd &#41;, nRGB&#40; 192, 192, 192 &#41; &#41; oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "unzoom2",, &#58;&#58;oWnd &#41;, nRGB&#40; 192, 192, 192 &#41; &#41; oImageList&#58;AddMasked&#40; TBitmap&#40;&#41;&#58;Define&#40; "one_page2",, &#58;&#58;oWnd &#41;, nRGB&#40; 192, 192, 192 &#41; &#41; &#58;&#58;oImageList = oImageList oReBar = TReBar&#40;&#41;&#58;New&#40; &#58;&#58;oWnd &#41; DEFINE TOOLBAR oBar OF oReBar SIZE 25, 25 IMAGELIST oImageList &#58;&#58;oBar = oBar oReBar&#58;InsertBand&#40; oBar &#41; oBar&#58;nHeight -= 2 DEFINE TBBUTTON OF oBar ; ACTION &#58;&#58;TopPage&#40;&#41; ; TOOLTIP Strtran&#40; TXT_FIRST, "&", "" &#41; ; MESSAGE TXT_GOTO_FIRST_PAGE DEFINE TBBUTTON OF oBar ; ACTION &#58;&#58;PrevPage&#40;&#41; ; TOOLTIP Strtran&#40; TXT_PREVIOUS, "&", "" &#41; ; MESSAGE TXT_GOTO_PREVIOUS_PAGE DEFINE TBBUTTON OF oBar ; ACTION &#58;&#58;NextPage&#40;&#41; ; TOOLTIP Strtran&#40; TXT_NEXT, "&", "" &#41; ; MESSAGE TXT_GOTO_NEXT_PAGE DEFINE TBBUTTON OF oBar ; ACTION &#58;&#58;BottomPage&#40;&#41; ; TOOLTIP Strtran&#40; TXT_LAST, "&", "" &#41; ; MESSAGE TXT_GOTO_LAST_PAGE DEFINE TBSEPARATOR OF oBar DEFINE TBBUTTON OF oBar ; ACTION &#58;&#58;Zoom&#40;&#41; ; TOOLTIP Strtran&#40; TXT_ZOOM, "&", "" &#41; ; MESSAGE TXT_ZOOM_THE_PREVIEW [/code:vgkrmk2g] [b:vgkrmk2g]IF ::lMulti DEFINE TBMENU ::oMultipages OF oBar ; MENU ::MultiPopup() ; TOOLTIP StrTran( Strtran( TXT_TWOPAGES, "&", "" ), "á", "a" ) ; MESSAGE TXT_PREVIEW_ON_TWO_PAGES ELSE DEFINE TBBUTTON ::oTwoPages OF oBar ; ACTION ::TwoPages() ; TOOLTIP StrTran( Strtran( TXT_TWOPAGES, "&", "" ), "á", "a" ) ; MESSAGE TXT_PREVIEW_ON_TWO_PAGES ENDIF[/b:vgkrmk2g]
tbmenu
How I must make ?[b:2y9v0u92] DEFINE TBMENU oBar:oMultipages OF oBar[/b:2y9v0u92] ????
tbmenu
Silvio,Please review fwh\samples\ToolBar1.prgLook for TBMENU use in it.
tbmenu
yes I found it the test but I must inizialize the oMultipages variableIf lmultiTbbmenu ::omultipageELSEtbutton ::twopagesendifbecauseMy modifies run error when I write if ! IsAppThemed() [b:1o4h2zj4] ::oMultiPages:FreeBitmaps()[/b:1o4h2zj4] ::oMultiPages:LoadBitmaps("One_Page") ::oMultiPages:cMsg := TXT_PREVIEW_ON_ONE_PAGE ::oMultiPages:cTooltip := StrTran(TXT_ONEPAGE,"&","") else ::oBar:ChangeBitmap( 6, 14 ) ::oBar:SetTooltip( 6, StrTran(TXT_ONEPAGE,"&","") ) ::oBar:SetMessage( 6, TXT_PREVIEW_ON_ONE_PAGE ) endifon this line there is an error Time from start: 0 hours 1 mins 32 secs Error occurred at: 09/19/08, 09:01:26 Error description: Error BASE/1004 Class: 'NIL' has no exported method: FREEBITMAPS Args: [ 1] = U Stack Calls=========== Called from: => FREEBITMAPS(0) Called from: rpreview.prg => TPREVIEW:MULTIPAGES(2145) Called from: rpreview.prg => (b)TPREVIEW:BUILDMENU(812)
tbmenu
if I make [code:3ut5q9e0] IF &#58;&#58;lMulti DEFINE TBMENU OF oBar ; MENU &#58;&#58;MultiPopup&#40;&#41; ; TOOLTIP StrTran&#40; Strtran&#40; TXT_TWOPAGES, "&", "" &#41;, "á", "a" &#41; ; MESSAGE TXT_PREVIEW_ON_TWO_PAGES ELSE DEFINE TBBUTTON OF oBar ; ACTION &#58;&#58;TwoPages&#40;&#41; ; TOOLTIP StrTran&#40; Strtran&#40; TXT_TWOPAGES, "&", "" &#41;, "á", "a" &#41; ; MESSAGE TXT_PREVIEW_ON_TWO_PAGES ENDIF[/code:3ut5q9e0] run ok but when I must chanche the bitmaps run error [code:3ut5q9e0] if ! IsAppThemed&#40;&#41; &#58;&#58;oMultiPages&#58;FreeBitmaps&#40;&#41; &#58;&#58;oMultiPages&#58;LoadBitmaps&#40;"One_Page"&#41; &#58;&#58;oMultiPages&#58;cMsg &#58;= TXT_PREVIEW_ON_ONE_PAGE &#58;&#58;oMultiPages&#58;cTooltip &#58;= StrTran&#40;TXT_ONEPAGE,"&",""&#41; else &#58;&#58;oBar&#58;ChangeBitmap&#40; 6, 14 &#41; &#58;&#58;oBar&#58;SetTooltip&#40; 6, StrTran&#40;TXT_ONEPAGE,"&",""&#41; &#41; &#58;&#58;oBar&#58;SetMessage&#40; 6, TXT_PREVIEW_ON_ONE_PAGE &#41; endif [/code:3ut5q9e0]because it not found ::oMultiPagesBut Now perhaps I resolve it now
tbtnbmp error on action
I tried to use ribbon modification of Mantonio_88 create a circular button at the left of the ribbon ::oBtnCircle := TBtnBmp():New( 2.3, 01, 50, 50,,, ::cImageCircle1,; ::cImageCircle2,,; self,,, .F., .F.,,,, NIL, !.T.,, .T.,, ::cImageCircle4, .F., ) ::oBtnCircle:bAction := {|| ::miacion(),::oBtnCircle:refresh()} ::oBtnCircle:bClrGrad := { | lInvert | If( lInvert, ; { ; {0.18, ::color0, ::color0 },; {0.36, ::color1, ::color0 },; {0.06, ::colorBox0, ::Colorbox1 },; {0.40, ::nClrPaneRB, ::nClrPaneRB }; },; {; {0.18, ::color0, ::color0 },; {0.36, ::color1, ::color0},; {0.06, ::colorBox0, ::Colorbox1 },; {0.40, ::nClrPaneRB, ::nClrPaneRB }; } ) } on the circular buttom Mantonio_88 used a [b:1b1qlfc9]btnbmp[/b:1b1qlfc9] but when I click this button I can click only on the down of this button and not on the top on this picture you can see the error [img:1b1qlfc9]http&#58;//img13&#46;imageshack&#46;us/img13/2704/clickerr&#46;jpg[/img:1b1qlfc9] on area near red arrow I cannot click the button on area near green arrow I can click button and it have 2007 effect if I click on the top there is not 2007 effect and I cannot click on it why ? is there a bug on btnbmp ?
tcalendar bug?
Executando TESTCALR.PRG Ao clicar no Ano, o GET é aberto, porem não é possível alterar o ano e se clicar no SPINNER não atualiza o proprio campo do ano. [url=http&#58;//imageshack&#46;us/photo/my-images/809/calend&#46;jpg/:jehdj11b][img:jehdj11b]http&#58;//img809&#46;imageshack&#46;us/img809/1106/calend&#46;jpg[/img:jehdj11b][/url:jehdj11b] Obrigado
tcalendar bug?
Sr. Antonio, Daniel...
tcalendar bug?
Hola Trabaja bien para mi [img:2avgfoms]http&#58;//www&#46;sitasoft&#46;net/fivewin/screen/cal2&#46;png[/img:2avgfoms] [img:2avgfoms]http&#58;//www&#46;sitasoft&#46;net/fivewin/screen/cal3&#46;png[/img:2avgfoms]
tcalendar bug?
Daniel, consegue alterar o ano no "GET" (ANO) ???
tcalender error
when I compile source #include "FiveWin.ch" #include "calendar.ch" FUNCTION main() LOCAL oDlg LOCAL fecha := DATE() SET DATE TO BRITISH SET EPOCH TO 1980 DEFINE DIALOG oDlg FROM 10,10 TO 200,300 PIXEL @ 20,20 GET fecha SIZE 100,22 OF oDlg PIXEL ACTION cal( fecha, self ) BITMAP "close.bmp" ACTIVATE DIALOG oDlg RETURN NIL FUNCTION cal( fecha, oGet ) LOCAL oWnd, oCal, aRect LOCAL dHoy := fecha, lOk := .T., lLostFocus := .F. aRect := getWndRect( oGet:hWnd ) DEFINE WINDOW oWnd FROM 0, 0 TO 150, 174 PIXEL STYLE WS_CHILD | WS_POPUP | WS_VISIBLE @ 0, 0 CALENDAR oCal VAR dHoy OF oWnd PIXEL DAYSTATE size 150,174 DBLCLICK oWnd:end() //87,75 oCal:bLostFocus := {|| lLostFocus := .T., oWnd:end() } oCal:bKeyDown := {|nkey| IF( nKey = 13 .OR. nKey = 32, oWnd:end(), ) } oWnd:oClient := oCal ACTIVATE WINDOW oWnd ; ON INIT oWnd:move(aRect[1] + oGet:nHeight ,aRect[2] ) ; VALID IF( lOk .AND. ! lLostFocus .AND. ! GetKeyState( VK_ESCAPE ), ( oGet:cText := dHoy, oGet:refresh(), .T. ), .T. ) RETURN NIL I got error Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"S:\lib" -LIBPATH:"R:\lib" -LIBPATH:"R:\c_lib" -LIBPATH:"R:\c_lib\win" "test.obj" "FiveHCM.lib" "FiveHMX.lib" "OptG.lib" "xhb.lib" "dbf.lib" "nsx.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3comm.lib" crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib OleDlg.lib version.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"test.exe"<<< Creating object: test.EXP Creating library: test.LIB xLINK: error: Unresolved external symbol '_HB_FUN___CHANGESTYLEWINDOW referenced from Fivehmx.lib(tcalenda.obj)'. xLINK: fatal error: 1 unresolved external(s). Type: C >>>Couldn't build: test.exe<<< Type: C >>>TMAKEPROJECT<<< Type: C >>>TMAKEPROJECT:REFRESH<<< Type: N >>> 1423<<< I use xHarbour Simplex and FiveWin 2011.04
tcalender error
Hello is inside source/function/etc.prg [code=fw:2qghzpm1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> GWL_STYLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span><span style="color: #000000;">-16</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> __ChangeStyleWindow<span style="color: #000000;">&#40;</span> hWnd, nStyle, nStyleType, lAdd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nOldStyle, lExistStyle<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nStyleReturn:= <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nStyleType:= GWL_STYLE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lAdd:= .T.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span>hWnd<span style="color: #000000;">&#41;</span>$<span style="color: #ff0000;">"N"</span> .and. ValType<span style="color: #000000;">&#40;</span>nStyle<span style="color: #000000;">&#41;</span>$<span style="color: #ff0000;">"N"</span> .and. ValType<span style="color: #000000;">&#40;</span>nStyleType<span style="color: #000000;">&#41;</span>$<span style="color: #ff0000;">"N"</span> .and. ValType<span style="color: #000000;">&#40;</span>lAdd<span style="color: #000000;">&#41;</span>$<span style="color: #ff0000;">"L"</span><br />&nbsp; &nbsp; &nbsp; nOldStyle &nbsp;:= GetWindowLong<span style="color: #000000;">&#40;</span> hWnd, nStyleType <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; lExistStyle:= lAnd<span style="color: #000000;">&#40;</span> nStyle, nOldStyle <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> lAdd .and. !lExistStyle<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetWindowLong<span style="color: #000000;">&#40;</span> hWnd, nStyleType, nOr<span style="color: #000000;">&#40;</span> nOldStyle, nStyle <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; elseif !lAdd .and. lExistStyle<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetWindowLong<span style="color: #000000;">&#40;</span> hWnd, nStyleType, nAnd<span style="color: #000000;">&#40;</span> nOldStyle, nNot<span style="color: #000000;">&#40;</span>nStyle<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; nStyleReturn:= GetWindowLong<span style="color: #000000;">&#40;</span> hWnd, nStyleType <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">RETURN</span> nStyleReturn</div>[/code:2qghzpm1]
tcalender error
thanks
tcalex request
On Tcalex we have day, week, mounth sectios but we not have year section . I wish insert Year Calendar into Tcalex as Pickdate of Mr Otto . How we can insert it ?
tcbrowse and no of rows
Hi all, do you know if there is a way to increase the rows size in tcbrowse ? Something the nDatalines method in xbrowse. Thanks
tcbrowse and no of rows
Hi Marco Nope there isn't except for font size. I have an option in an old tcbrowse program as follows. [code=fw:3c9aixcp]<div class="fw" id="{CB}" style="font-family: monospace;">  ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bRClicked</span>:=<span style="color: #000000;">&#123;</span>|nRow, nCol| IIF<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nTCWRow</span><span style="color: #000000;">&#40;</span>nRow<span style="color: #000000;">&#41;</span>=<span style="color: #000000;">0</span>,<br />                             <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">SelFont</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oBrw</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>...  </div>[/code:3c9aixcp] Don't know if you have all the additional methods so you may need to modify it to suit. If you wish a copy of my version just ask. The program is still very useful and a forerunner to tsb and xb.
tcbrowse bug with fwh9.10
Hi, there is a bug in tcbrowse with this last fwh released (the FWH june release hasn't this problem). A self contained sample that show the problem is available at <!-- w --><a class="postlink" href="http://www.softwarexp.co.uk/beta/browse.zip">www.softwarexp.co.uk/beta/browse.zip</a><!-- w --> Go to the last browse row then pressing the mouse button try to go up and the following error will appairs. Application =========== Path and name: K:\TESTXBRW\SEND4\BRW.EXE (32 bits) Size: 1,853,952 bytes Time from start: 0 hours 0 mins 3 secs Error occurred at: 11/13/09, 13:09:49 Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 11 Stack Calls =========== Called from: K:\TESTXBRW\TESTXBR5.PRG => (b)MAIN(21) Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:DRAWSELECT(478) Called from: .\source\classes\WBROWSE.PRG => (b)TWBROWSE:TWBROWSE(193) Called from: => TWBROWSE:LOSTFOCUS(0) Called from: .\source\classes\TCBROWSE.PRG => (b)TCBROWSE:TCBROWSE(67) Called from: => TCBROWSE:LOSTFOCUS(0) Called from: .\source\classes\CONTROL.PRG => TCBROWSE:KILLFOCUS(882) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1436) Called from: .\source\classes\WBROWSE.PRG => TCBROWSE:HANDLEEVENT(1648) Called from: .\source\classes\WINDOW.PRG => _FWH(3347) Called from: => DIALOGBOXINDIRECT(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: .\source\function\ERRSYSW.PRG => ERRORDIALOG(343) Called from: .\source\function\ERRSYSW.PRG => (b)ERRORSYS(27) Called from: K:\TESTXBRW\TESTXBR5.PRG => (b)MAIN(21) Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:DRAWLINE(429) Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:GODOWN(1080) Called from: .\source\classes\WBROWSE.PRG => TWBROWSE:MOUSEMOVE(2064) Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:MOUSEMOVE(738) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469) Called from: .\source\classes\WBROWSE.PRG => TCBROWSE:HANDLEEVENT(1648) Called from: .\source\classes\WINDOW.PRG => _FWH(3347) Called from: => DIALOGBOXINDIRECT(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: K:\TESTXBRW\TESTXBR5.PRG => MAIN(26) System ====== CPU type: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz 2000 Mhz Hardware memory: 256 megs Free System resources: 90 % GDI resources: 90 % User resources: 90 % Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6406) Windows version: 4.0, Build 950 Windows total applications running: 86 1 MSCTFIME UI 2 Default IME 3 CiceroUIWndFrame 4 Start 5 xMate - K:\TESTXBRW\brw.xhp 6 Marco Turco 7 Menu Start 8 Passaggio da un programma all'altro 9 OnScreen Display Window 10 Icona di sistema rete 11 SysFader 12 CL RC Engine3 Dummy Winidow 13 TF_FloatingLangBar_WndTitle 14 FiveWin for Harbour 15 START2 16 syntax 17 Editor [K:\TESTXBRW\TESTXBR5.PRG] 18 ERROR - Blocco note 19 Acer Empowering Technology 20 FPLaunch 21 Fplaunch 22 TouchPad object helper window 23 Acrobat IEHelper 24 AcroStubUnloadWClass 25 DDE Server Window 26 Windows Internet Explorer 27 Debug window K:\TESTXBRW\brw.Exe (0 errors, 0 warnings) 28 Skype™ [8] - softwarexp 29 JavaUpdate SysTray Icon 30 MCI command handling window 31 VCL ImplGetDefaultWindow 32 PCSuite 33 MMDEVAPI Device Window 34 DeviceManager 35 TrayIconManager 36 Actions 37 SkyLibEx 38 C:\Users\Marco Turco\AppData\Roaming\Skype 39 amUI 40 Product Message 41 ESET NOD32 Antivirus 42 eRecoveryAgent 43 EndSessionHandling 44 CDirectoryChangeWatcherHelperWindow 45 eDSLoader 46 VOIP080 USBPhone 47 SidebarBroadcastWatcher 48 About GemSafe RegTool. 49 Realtek HD Audio CPL for Vista 50 HiddenFaxWindow 51 BluetoothNotificationAreaIconWindowClass 52 Canon My Printer 53 Servizio di condivisione in rete Windows Media Player 54 HkWndName 55 PersistWndName 56 DritekECWnd 57 IAAMonitor Notify App 58 igfxtrayWindow 59 IgfxExt_Wnd_Name 60 MS_WebcheckMonitor 61 Launch Manager 62 Misuratore alimentazione 63 Touchpad driver tray icon window 64 Touchpad driver backward compatibility window 65 Touchpad driver helper window 66 TaskEng - Processo del modulo di gestione dell'Utilità di pianificazione 67 DWM Notification Window 68 GDI+ Window 69 BTTrayMainWindow 70 Windows Defender 71 Nokia PC Suite 72 Form2 73 {878390AD-434B-41EE-9110-49B69E4398F9} 74 Gestione Extra di Skype™ 75 {A3533AC8-A133-43D6-A112-361167D254CC} 76 .NET-BroadcastEventWindow.2.0.0.0.378734a.0 77 Acer eNet Management - eNMTray 78 .NET-BroadcastEventWindow.2.0.0.0.33c0d9d.0 79 .NET-BroadcastEventWindow.2.0.0.0.11ecf05.0 80 Presentazione 81 AppBar Bullet 82 Calendario 83 Windows Sidebar 84 Senza nome - Blocco note 85 ePower_DMC 86 Program Manager Variables in use ================ Procedure Type Value ========================== (b)MAIN Local 1: U Local 2: A Len: 2 Local 3: N 11 Local 4: U Local 5: U TCBROWSE:DRAWSELECT Local 1: O Class: TCBROWSE Local 2: N 1 Local 3: N 1 Local 4: N 1 Local 5: N 0 Local 6: O Class: TCCOLUMN Local 7: N 2 Local 8: U Local 9: U Local 10: U Local 11: U Local 12: U Local 13: U Local 14: U Local 15: U Local 16: N 200 Local 17: N 11 Local 18: A Len: 2 Local 19: A Len: 2 Local 20: N 352981761 Local 21: N 987752 Local 22: U Local 23: L .F. Local 24: N 16777215 Local 25: N 16750899 (b)TWBROWSE:TWBROWSE Param 1: O Class: TCBROWSE Param 2: N 791098 TWBROWSE:LOSTFOCUS Param 1: N 791098 (b)TCBROWSE:TCBROWSE Param 1: O Class: TCBROWSE Param 2: N 791098 TCBROWSE:LOSTFOCUS Param 1: N 791098 TCBROWSE:KILLFOCUS Param 1: N 791098 Local 1: O Class: TCBROWSE Local 2: U TCONTROL:HANDLEEVENT Param 1: N 8 Param 2: N 791098 Param 3: N 0 Local 1: O Class: TCBROWSE Local 2: U TCBROWSE:HANDLEEVENT Param 1: N 8 Param 2: N 791098 Param 3: N 0 Local 1: O Class: TCBROWSE _FWH Param 1: N 0 Param 2: N 8 Param 3: N 791098 Param 4: N 0 Param 5: N 1 Local 1: O Class: TCBROWSE DIALOGBOXINDIRECT Param 1: N 4194304 Param 2: C "€ È€  ÿqÿâ — F i v e W i n f o r H a r b o u r  P 4  u  f S T A T I C E r r o r d e s c r i p t i o n : E r r o r B A S E / 1 1 3 2 B o u n d e r r o r : a r r a y a c c e s s P   H  g S T A T I C & S t a c k L i s t  ¡P  ! Ü v h L I S T B O X  P ` ‰  i B U T T O N & Q u i t P ¯  / j B U T T O N S e e E r r o r . l o g f i l e " Param 3: N 594704 Param 4: O Class: TDIALOG TDIALOG:ACTIVATE Param 1: U Param 2: U Param 3: B {|| ... } Param 4: L .T. Param 5: U Param 6: L .T. Param 7: U Param 8: U Param 9: U Param 10: L .F. Local 1: O Class: TDIALOG Local 2: N 594704 Local 3: U Local 4: U Local 5: U Local 6: O Class: TDIALOG ERRORDIALOG Param 1: O Class: ERROR Local 1: O Class: TDIALOG Local 2: O Class: TLISTBOX Local 3: U Local 4: U Local 5: C " Called from: K:\TESTXBRW\TESTXBR5.PRG => (b)MAIN(21)" Local 6: N 4 Local 7: C " Error description: Error BASE/1132 Bound error: array access " Local 8: A Len: 12 Local 9: O Class: TSAY Local 10: N 1845829415 Local 11: N 1 Local 12: C "Application =========== Path and name: K:\TESTXBRW\SEND4\BRW.EXE (32 bits) Size: 1,853,952 bytes Time from start: 0 hours 0 mins 3 secs Error occurred at: 11/13/09, 13:09:49 Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 11 Stack Calls =========== Called from: K:\TESTXBRW\TESTXBR5.PRG => (b)MAIN(21) Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:DRAWLINE(429) Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:GODOWN(1080) Called from: .\source\classes\WBROWSE.PRG => TWBROWSE:MOUSEMOVE(2064) Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:MOUSEMOVE(738) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469) Called from: .\source\classes\WBROWSE.PRG => TCBROWSE:HANDLEEVENT(1648) Called from: .\source\classes\WINDOW.PRG => _FWH(3347) Called from: => DIALOGBOXINDIRECT(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: K:\TESTXBRW\TESTXBR5.PRG => MAIN(26) System ====== CPU type: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz 2000 Mhz Hardware memory: 256 megs Free System resources: 90 % GDI resources: 90 % User resources: 90 % Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6406) Windows version: 4.0, Build 950 Windows total applications running: 85 1 MSCTFIME UI 2 Default IME 3 CiceroUIWndFrame 4 Start 5 xMate - K:\TESTXBRW\brw.xhp 6 Marco Turco 7 Menu Start 8 Passaggio da un programma all'altro 9 OnScreen Display Window 10 Icona di sistema rete 11 SysFader 12 CL RC Engine3 Dummy Winidow 13 TF_FloatingLangBar_WndTitle 14 START2 15 syntax 16 Editor [K:\TESTXBRW\TESTXBR5.PRG] 17 ERROR - Blocco note 18 Acer Empowering Technology 19 FPLaunch 20 Fplaunch 21 TouchPad object helper window 22 Acrobat IEHelper 23 AcroStubUnloadWClass 24 DDE Server Window 25 Windows Internet Explorer 26 Debug window K:\TESTXBRW\brw.Exe (0 errors, 0 warnings) 27 Skype™ [8] - softwarexp 28 JavaUpdate SysTray Icon 29 MCI command handling window 30 VCL ImplGetDefaultWindow 31 PCSuite 32 MMDEVAPI Device Window 33 DeviceManager 34 TrayIconManager 35 Actions 36 SkyLibEx 37 C:\Users\Marco Turco\AppData\Roaming\Skype 38 amUI 39 Product Message 40 ESET NOD32 Antivirus 41 eRecoveryAgent 42 EndSessionHandling 43 CDirectoryChangeWatcherHelperWindow 44 eDSLoader 45 VOIP080 USBPhone 46 SidebarBroadcastWatcher 47 About GemSafe RegTool. 48 Realtek HD Audio CPL for Vista 49 HiddenFaxWindow 50 BluetoothNotificationAreaIconWindowClass 51 Canon My Printer 52 Servizio di condivisione in rete Windows Media Player 53 HkWndName 54 PersistWndName 55 DritekECWnd 56 IAAMonitor Notify App 57 igfxtrayWindow 58 IgfxExt_Wnd_Name 59 MS_WebcheckMonitor 60 Launch Manager 61 Misuratore alimentazione 62 Touchpad driver tray icon window 63 Touchpad driver backward compatibility window 64 Touchpad driver helper window 65 TaskEng - Processo del modulo di gestione dell'Utilità di pianificazione 66 DWM Notification Window 67 GDI+ Window 68 BTTrayMainWindow 69 Windows Defender 70 Nokia PC Suite 71 Form2 72 {878390AD-434B-41EE-9110-49B69E4398F9} 73 Gestione Extra di Skype™ 74 {A3533AC8-A133-43D6-A112-361167D254CC} 75 .NET-BroadcastEventWindow.2.0.0.0.378734a.0 76 Acer eNet Management - eNMTray 77 .NET-BroadcastEventWindow.2.0.0.0.33c0d9d.0 78 .NET-BroadcastEventWindow.2.0.0.0.11ecf05.0 79 Presentazione 80 AppBar Bullet 81 Calendario 82 Windows Sidebar 83 Senza nome - Blocco note 84 ePower_DMC 85 Program Manager Variables in use ================ Procedure Type Value ========================== (b)MAIN Local 1: U Local 2: A Len: 2 Local 3: N 11 Local 4: U Local 5: U TCBROWSE:DRAWLINE Local 1: U Local 2: O Class: TCBROWSE Local 3: N 1 Local 4: N 1 Local 5: N 1 Local 6: N 0 Local 7: O Class: TCCOLUMN Local 8: L .F. Local 9: U Local 10: N 0 Local 11: U Local 12: N 16777215 Local 13: U Local 14: N 200 Local 15: N 11 Local 16: A Len: 2 Local 17: N 2 Local 18: A Len: 2 Local 19: N 352981761 Local 20: N 987752 Local 21: U Local 22: U Local 23: U Local 24: N 987752 Local 25: U Local 26: N 11 Local 27: N 0 Local 28: N 30.00 Local 29: U Local 30: U TCBROWSE:GODOWN Local 1: O Class: TCBROWSE Local 2: U Local 3: N 11 TWBROWSE:MOUSEMOVE Param 1: N 27 Param 2: N 69 Param 3: N 1 Local 1: O Class: TCBROWSE Local 2: N 0 Local 3: N 1 Local 4: N 0 Local 5: N 2 Local 6: U Local 7: N 1 TCBROWSE:MOUSEMOVE Param 1: N 27 Param 2: N 69 Param 3: N 1 Local 1: O Class: TCBROWSE Local 2: U Local 3: N 0 Local 4: L .F. Local 5: L .T. Local 6: L .F. Local 7: U TWINDOW:HANDLEEVENT Param 1: N 512 Param 2: N 1 Param 3: N 1769541 TCONTROL:HANDLEEVENT Param 1: N 512 Param 2: N 1 Param 3: N 1769541 Local 1: O Class: TCBROWSE Local 2: U TCBROWSE:HANDLEEVENT Param 1: N 512 Param 2: N 1 Param 3: N 1769541 Local 1: O Class: TCBROWSE _FWH Param 1: N 1769541 Param 2: N 512 Param 3: N 1 Param 4: N 1769541 Param 5: N 1 Local 1: O Class: TCBROWSE DIALOGBOXINDIRECT Param 1: N 4194304 Param 2: C "€ È€  — e ±P d d e T C B R O W S E " Param 3: N 0 Param 4: O Class: TDIALOG TDIALOG:ACTIVATE Param 1: U Param 2: U Param 3: U Param 4: L .T. Param 5: U Param 6: L .T. Param 7: U Param 8: U Param 9: U Param 10: L .T. Local 1: O Class: TDIALOG Local 2: N 0 Local 3: U Local 4: U Local 5: U Local 6: O Class: TDIALOG MAIN Local 1: O Class: TDIALOG Local 2: O Class: TCBROWSE Local 3: A Len: 2 Linked RDDs =========== DBF DBFFPT DBFBLOB DBFNTX DataBases in use ================ Classes in use: =============== 1 ERROR 2 HASHENTRY 3 HBCLASS 4 HBOBJECT 5 TWINDOW 6 TDIALOG 7 TBRUSH 8 TCONTROL 9 TWBROWSE 10 TCBROWSE 11 TCCOLUMN 12 TFONT 13 TSCROLLBAR 14 TREG32 Memory Analysis =============== 177 Static variables Dynamic memory consume: Actual Value: 0 bytes Highest Value: 0 bytes " Local 13: A Len: 5 Local 14: A Len: 85 Local 15: A Len: 4 Local 16: U Local 17: U Local 18: B {|| ... } Local 19: U Local 20: L .F. (b)ERRORSYS Param 1: O Class: ERROR (b)MAIN Local 1: U Local 2: A Len: 2 Local 3: N 11 Local 4: U Local 5: U TCBROWSE:DRAWLINE Local 1: U Local 2: O Class: TCBROWSE Local 3: N 1 Local 4: N 1 Local 5: N 1 Local 6: N 0 Local 7: O Class: TCCOLUMN Local 8: L .F. Local 9: U Local 10: N 0 Local 11: U Local 12: N 16777215 Local 13: U Local 14: N 200 Local 15: N 11 Local 16: A Len: 2 Local 17: N 2 Local 18: A Len: 2 Local 19: N 352981761 Local 20: N 987752 Local 21: U Local 22: U Local 23: U Local 24: N 987752 Local 25: U Local 26: N 11 Local 27: N 0 Local 28: N 30.00 Local 29: U Local 30: U TCBROWSE:GODOWN Local 1: O Class: TCBROWSE Local 2: U Local 3: N 11 TWBROWSE:MOUSEMOVE Param 1: N 27 Param 2: N 69 Param 3: N 1 Local 1: O Class: TCBROWSE Local 2: N 0 Local 3: N 1 Local 4: N 0 Local 5: N 2 Local 6: U Local 7: N 1 TCBROWSE:MOUSEMOVE Param 1: N 27 Param 2: N 69 Param 3: N 1 Local 1: O Class: TCBROWSE Local 2: U Local 3: N 0 Local 4: L .F. Local 5: L .T. Local 6: L .F. Local 7: U TWINDOW:HANDLEEVENT Param 1: N 512 Param 2: N 1 Param 3: N 1769541 TCONTROL:HANDLEEVENT Param 1: N 512 Param 2: N 1 Param 3: N 1769541 Local 1: O Class: TCBROWSE Local 2: U TCBROWSE:HANDLEEVENT Param 1: N 512 Param 2: N 1 Param 3: N 1769541 Local 1: O Class: TCBROWSE _FWH Param 1: N 1769541 Param 2: N 512 Param 3: N 1 Param 4: N 1769541 Param 5: N 1 Local 1: O Class: TCBROWSE DIALOGBOXINDIRECT Param 1: N 4194304 Param 2: C "€ È€  — e ±P d d e T C B R O W S E " Param 3: N 0 Param 4: O Class: TDIALOG TDIALOG:ACTIVATE Param 1: U Param 2: U Param 3: U Param 4: L .T. Param 5: U Param 6: L .T. Param 7: U Param 8: U Param 9: U Param 10: L .T. Local 1: O Class: TDIALOG Local 2: N 0 Local 3: U Local 4: U Local 5: U Local 6: O Class: TDIALOG MAIN Local 1: O Class: TDIALOG Local 2: O Class: TCBROWSE Local 3: A Len: 2 Linked RDDs =========== DBF DBFFPT DBFBLOB DBFNTX DataBases in use ================ Classes in use: =============== 1 ERROR 2 HASHENTRY 3 HBCLASS 4 HBOBJECT 5 TWINDOW 6 TDIALOG 7 TBRUSH 8 TCONTROL 9 TWBROWSE 10 TCBROWSE 11 TCCOLUMN 12 TFONT 13 TSCROLLBAR 14 TREG32 15 TSAY 16 TLISTBOX 17 TBUTTON Memory Analysis =============== 177 Static variables Dynamic memory consume: Actual Value: 0 bytes Highest Value: 0 bytes 
tcbrowse bug with fwh9.10
Marco, It seems as a side effect of the Kinetic scrolling implementation. As a quick workaround to solve it, you can do: [code=fw:ml2sc6gl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; @<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> BROWSE oBrw <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">lKinetic</span> = .F.<br />&nbsp;</div>[/code:ml2sc6gl] In the meantime we are looking for a real solution, thanks
tcbrowse bug with fwh9.10
Marco, This seems as a better fix, so there is no need to disable the kinetic. Class TCBrowse Line 418, juts before the call to TCDrawCell(): [code=fw:2x7zkiyu]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">aArray</span> != <span style="color: #00C800;">nil</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nAt</span> = <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nAt</span>, Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aArray</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; TCDrawCell<span style="color: #000000;">&#40;</span> hWnd, hDC , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; ...<br />&nbsp;</div>[/code:2x7zkiyu]
tcbrowse editcol method
When a key is pressed on a browse object, I capture that key's nvalue in the keydown() method, and, based on that value, call obrw:leditcol() method and edit the value in a tget object. no problem. this is very routine processing. My problem is, applying that key's value to the contents of the beginning of the edit field. I can use the OVERSTRIKE method of the oget:oget object to "preserve" the key pressed and apply it to the current contents of the oget:oget (which is really a Harbour get object attached to Fivewin TGet object.) but the value in the Harbour get does not get assigned back to the parent tget object. if the field is a Character datatype, I found that I can modify the "uVar" value passed to obrw:leditcol() and I get desired result, but I think there should be a better way to modify the actual oGet:oGet data entry object. example: A cell's old value was "ABC" I type "X" on the browse object's cell. I would like the edit process to begin in the 2nd position and a value of "XBC" example: A cell's old date value was "01/15/2013" I type "1" on the browse object's cell. I try to overstike the oGet:oGet:Overstrike( "11/15/2013" ) - this works, I would like the edit process to begin in the 2nd position with a value of "11/31/2013" A cell's old date value was " / / " - empty I type "1" on the browse object's cell. I try to overstike the oGet:oGet:Overstrike( "1 / / " ) - this works, I would like the edit process to begin in the 2nd position with a value of "1 / / " My question is, how can I preserve this initial keypressed value and "apply" that value to the editing buffer and begin the tget edit with the newly entered key-value?
tcbrowse horizontal scroll
Hi, there is a problem in this little sample. If I click in scrollbar in this point (plase see figure) [img:2ywt0zkh]http&#58;//www&#46;ipsys&#46;it/domanda&#46;jpg[/img:2ywt0zkh] First two columns disappear and remains only the third one How can I disable horizontal scroll bar? Bye and many thanks [code=fw:2ywt0zkh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Tcbrowse.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 />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oDlg, oBrw<br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oCol<br /><br />&nbsp; &nbsp; USE Customer <span style="color: #0000ff;">ALIAS</span> Test<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;">200</span> , <span style="color: #000000;">400</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> BROWSE oBrw<br /><br />&nbsp; &nbsp; oCol := TcColumn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"First"</span> , <span style="color: #000000;">&#123;</span> || TEST->first <span style="color: #000000;">&#125;</span> , , &nbsp;, , <span style="color: #000000;">0</span> , &nbsp;<span style="color: #000000;">60</span> , , , , , , , <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">addcolumn</span><span style="color: #000000;">&#40;</span> oCol <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; oCol := TcColumn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Last"</span> , <span style="color: #000000;">&#123;</span> || TEST->last <span style="color: #000000;">&#125;</span> &nbsp;, , &nbsp;, , <span style="color: #000000;">0</span> , &nbsp;<span style="color: #000000;">60</span> , , , , , , , <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">addcolumn</span><span style="color: #000000;">&#40;</span> oCol <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; oCol := TcColumn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Age"</span> , <span style="color: #000000;">&#123;</span> || TEST->age <span style="color: #000000;">&#125;</span> , , &nbsp;, , <span style="color: #000000;">2</span> , &nbsp;<span style="color: #000000;">60</span> , , , , , , , <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">addcolumn</span><span style="color: #000000;">&#40;</span> oCol <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// &nbsp; &nbsp; oCol := TcColumn():New( "" , &nbsp;, , &nbsp;, , 0 , 10 , , , , , , , )</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; oBrw:addcolumn( oCol )</span><br /><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">lCellStyle</span> = .T.<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oDlg:<span style="color: #000000;">SetControl</span><span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Want to exit ?"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; CLOSE<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp;</div>[/code:2ywt0zkh]
tcbrowse horizontal scroll
Marco, you can try to freeze the most left colums [code=fw:eblfbgxg]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">nFreeze</span> := <span style="color: #000000;">2</span></div>[/code:eblfbgxg] or disable the the scrollbar [code=fw:eblfbgxg]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">lNoHScroll</span> := .t.</div>[/code:eblfbgxg]
tcbrowse horizontal scroll
Ok, oBrw:nFreeze := 2 this line it's ok Other solution oBrw:lNoHScroll := .t. creates this problem Application =========== Path and name: C:\Fwh\samples\test.exe (32 bits) Size: 1,997,312 bytes Time from start: 0 hours 0 mins 5 secs Error occurred at: 06/26/12, 09:51:05 Error description: Error BASE/1004 Class: 'NIL' has no exported method: SETPOS Args: [ 1] = U [ 2] = N 3 Stack Calls =========== Called from: => SETPOS(0) Called from: wbrowse.prg => TCBROWSE:HSCROLL(1696) Called from: => TWINDOW:HANDLEEVENT(0) Called from: control.prg => TCONTROL:HANDLEEVENT(1469) Called from: wbrowse.prg => TCBROWSE:HANDLEEVENT(1651) Called from: .\source\classes\WINDOW.PRG => _FWH(3347) Called from: => DIALOGBOXINDIRECT(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: test.prg => MAIN(34) but no matter I will use the other Many thanks marco
tcbrowse horizontal scroll
errata: In the real sotuation this oBrw:nFreeze := 2 or other differen value does not work Is it possible to hide Horiz scroll bar? Other error persists bye marco
tcbrowse horizontal scroll
I hope I don't create other problems in this way wbrowse.prg case nScrollCode == SB_PAGEDOWN while nCol < Len( ::GetColSizes() ) .and. ; (::IsColVisible( nCol ) .or. ::nColPos == nCol) nCol++ end [b:1cf10qho]IF ::lNoHScroll <> .T.[/b:1cf10qho] ::nColPos := nCol ::nColAct := nCol ::oHScroll:SetPos( nCol ) ::Refresh( .f. ) [b:1cf10qho]ENDIF[/b:1cf10qho]
tcbrowse horizontal scroll
::lNoHScroll is an enhancement of tcbrowse, it does not exist in wbrowse. The problem is the HScroll() method of wbrowse, which is not overwritten in tcbrowse. As a workaround you can try to define your own method hscroll() in tcbrowse. maybe like this (not tested) [code=fw:15mbhxb8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">HScroll</span> <span style="color: #000000;">&#40;</span>nWParam, nLParam<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> IIF <span style="color: #000000;">&#40;</span>!::<span style="color: #000000;">lNoScroll</span>, <span style="color: #00C800;">super</span>:<span style="color: #0000ff;">HScroll</span><span style="color: #000000;">&#40;</span>nWParam, nLParam<span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span></div>[/code:15mbhxb8]
tcbrowse row color
Hi all, anybody know how can I change the row color in a tcbrowse when it lost the focus I would like to change the dark gray into light gray nRgb(229,229,229) Thanks in advance. [img:3rgh8aef]http&#58;//www&#46;softwarexp&#46;co&#46;uk/beta/browse&#46;png[/img:3rgh8aef]
tcbrowse row color
Did you try using bLostFocus codeblock? EMG
tcbrowse row color
From TCB DrawSelect [list:7wsmhtpx] TCDrawCell( hWnd, hDC, ; nRowPos, nStartCol, If( nJ < nLastCol, aColSizes[ nJ ], -1), ; if( cPicture == nil, ; If( lBitMap, If( ! Empty( ::aBitmaps ),; ::aBitmaps[ uData ], uData ), ; cValToChar( Eval( oColumn:bData ) ) ), ; Transform( uData, cPicture ) ), ; oColumn:nAlign, ; nClrFore, ; If( lFocused .or. lNoLite,; nClrBack,; If( ::lCellStyle, If( nJ == ::nColAct, CLR_GRAY, nClrBack ), CLR_GRAY ) ),; hFont, ; If(lBitMap, If(lNoLite, 1, 2), 0),, ::nLineStyle ) [/list:u:7wsmhtpx] Change CLR_GRAY to CLR_LIGHTGRAY and compile/link. I have modified Luis's TCB over the years and can choose colour - or no colour among many other things. If interested get in touch. Jonathan at toolhouse dot co dot nz.
tcbrowse row color
Hi, What should I do same subject using in TXBrowse? Not focused color change to CLR_LIGHTGRAY. Thanks
tcbrowse row color
Ok. Solved. Thanks to all for the support.
tcbrowse row color
[quote="Horizon":5hwq7vuc]Hi, What should I do same subject using in TXBrowse? Not focused color change to CLR_LIGHTGRAY. Thanks[/quote:5hwq7vuc] Your question is answered in this post <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=16471">viewtopic.php?f=3&t=16471</a><!-- l --> May be you have already seen that post
tcbrowse row color
[quote="nageswaragunupudi":36o954m8][quote="Horizon":36o954m8]Hi, What should I do same subject using in TXBrowse? Not focused color change to CLR_LIGHTGRAY. Thanks[/quote:36o954m8][/quote:36o954m8] Your question is answered in this post <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=16471">viewtopic.php?f=3&t=16471</a><!-- l --> May be you have already seen that post[/quote Thanks, It works.
tcbrowse tccolumn Unicode Characters
Hi to all, Please I need Help The second column is not displayed correctly If I Double Click,I can see the real content of aa_chn->des_chn field Any (Urgent please) Hints? [img:8nvikha1]http&#58;//www&#46;marcoboschi&#46;it/public/bro&#46;jpg[/img:8nvikha1] Marco Here you can find dbf table [url:8nvikha1]http&#58;//www&#46;marcoboschi&#46;it/public/aa_chn&#46;dbf[/url:8nvikha1] [code=fw:8nvikha1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"tcbrowse.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oDlg<br /><br /><span style="color: #00C800;">LOCAL</span> oBrw<br /><span style="color: #00C800;">LOCAL</span> oCol<br /><br />FW_SetUnicode<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br />USE aa_chn<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">300</span> , <span style="color: #000000;">800</span> <span style="color: #0000ff;">PIXEL</span><br /><br />   @ <span style="color: #000000;">1</span> , <span style="color: #000000;">1</span>  BROWSE oBrw <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span> , <span style="color: #000000;">100</span><br /><br />  oCol := TcColumn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Code"</span>        , <span style="color: #000000;">&#123;</span> | | field->codice <span style="color: #000000;">&#125;</span> ,  ,  , , ,  , , , , , , ,  <span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #000000;">addcolumn</span><span style="color: #000000;">&#40;</span> oCol <span style="color: #000000;">&#41;</span><br /><br />  oCol := TcColumn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Description"</span> , <span style="color: #000000;">&#123;</span> | | field->des_chn <span style="color: #000000;">&#125;</span> ,  ,  , , ,  , , , , , , ,  <span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #000000;">addcolumn</span><span style="color: #000000;">&#40;</span> oCol <span style="color: #000000;">&#41;</span><br /><br />  oBrw:<span style="color: #000000;">blDblClick</span>:= <span style="color: #000000;">&#123;</span>|| <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> field->des_chn <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:8nvikha1]
tcbrowse tccolumn Unicode Characters
<!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
tcbrowse tccolumn Unicode Characters
Marco, try In line 150 module tcfuncs.c, [code=fw:3gerzsiy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawText<span style="color: #000000;">&#40;</span> hDC, cData, nLen, &rct, nAlign | DT_VCENTER | <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DT_SINGLELINE | DT_NOPREFIX <span style="color: #000000;">&#41;</span> ;<br />&nbsp;</div>[/code:3gerzsiy] With [code=fw:3gerzsiy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawTextAW<span style="color: #000000;">&#40;</span> hDC, cData, nLen, &rct, nAlign | DT_VCENTER | <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DT_SINGLELINE | DT_NOPREFIX <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp;</div>[/code:3gerzsiy] [url=http&#58;//postimage&#46;org/:3gerzsiy][img:3gerzsiy]http&#58;//s15&#46;postimg&#46;org/royun4tcr/Title246&#46;png[/img:3gerzsiy][/url:3gerzsiy]
tcbrowse tccolumn Unicode Characters
Cristobal, I have Jiust read your answer. I've found tcbfuncs.c file in folder \fwh_new\source\function Do I have to compile it now? Marco
tcbrowse tccolumn Unicode Characters
[quote="MarcoBoschi":1z6gpc1v]Cristobal, I have Jiust read your answer. I've found tcbfuncs.c file in folder \fwh_new\source\function Do I have to compile it now? Marco[/quote:1z6gpc1v] Yes, and add to project 15.11 FWH will included Regards
tcbrowse tccolumn Unicode Characters
Cristobal, I've just download from site FWHX 15.10. When it will available the 15.11? Many many Thanks Marco
tcbrowse tccolumn Unicode Characters
Unfortunately I do not know how to do... Can you show an example how to do it? Marco
tcbrowse tccolumn Unicode Characters
It is not available in 15.10. You need to make the correction suggested by Mr Cristobal. The change is already incorporated for 15.11 and will be available when released.
tcbrowse tccolumn Unicode Characters
Ok SOLVED! Many Thanks!
tcp-ip
Buenas a todos. Es mi primera participacion en los foros. Para los que conocen a Ricardo Becares, soy su socio. Estoy utilizando la clase TSocket para hacer unos desarrollos, y queria saber si hay algo como el FORK() o si el accept, por cada coneccion aceptada establece un nuevo proceso para que atienda la solicitud. Bueno. desde ya muchas gracias. saludos.
tcp-ip
Jorge, Necesitarías usar la ejecución multihilo de xHarbour para usarlo, aún así de momento no se ha probado.
tdatabase Filter error
I have a problem on a set filter , I'm converting from old application oReservation:=TDatabase():Open( , cDbfPath+"Reserva", "DBFCDX", .T. ) oReservation:setorder(1) cFilter := "trim(TYPE) == '" + AllTrim( cTypeRoom ) +; "' .and. num== '" + AllTrim(str(nElemento)) +; "' .and. '"+ dtoc(dDataIniziale)+"'<= dtoc(CHECK_OUT)"+; " .and. '"+ dtoc(dDataFinale)+"'=> dtoc(CHECK_IN)" oReservation:setFilter(cFilter) oReservation:gotop() xbrowser oReservation the original was SET FILTER TO AllTrim( RE->TYPE ) == AllTrim( cTypeRoom ) .and. RE->NUM = nElemento ; .AND. ( dDataIniziale <= RE->CHECK_OUT .AND. dDataFinale >= RE->CHECK_IN ) RE->(DbGoTop()) give me this error [code=fw:1xohdciv]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\Work\Errori\image_su_btnbmp\test2.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Size</span>: <span style="color: #000000;">3</span>,<span style="color: #000000;">953</span>,<span style="color: #000000;">152</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r1703231115<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">19.03</span><br />&nbsp; &nbsp;C compiler version: <span style="color: #000000;">Borland</span>/Embarcadero C++ <span style="color: #000000;">7.0</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Windows version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">5</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">23</span><span style="color: #000000;">-04</span><span style="color: #000000;">-2019</span>, <span style="color: #000000;">19</span>:<span style="color: #000000;">09</span>:<span style="color: #000000;">38</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1449</span> &nbsp;Syntax error: &<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> = C &nbsp; <span style="color: #000000;">&#123;</span>||trim<span style="color: #000000;">&#40;</span>TYPE<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'01'</span> .and. num== <span style="color: #ff0000;">'1'</span> .and. <span style="color: #ff0000;">'01-07-2018'</span><= dtoc<span style="color: #000000;">&#40;</span>CHECK_OUT<span style="color: #000000;">&#41;</span> .and. <span style="color: #ff0000;">'07-08-2018'</span>=> dtoc<span style="color: #000000;">&#40;</span>CHECK_IN<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\DATABASE.PRG => COMPILE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1133</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\DATABASE.PRG => TDATABASE:<span style="color: #000000;">SETFILTER</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1351</span> <span style="color: #000000;">&#41;</span></div>[/code:1xohdciv] Someone can Help me pls
tdatabase Filter error
Change this [code=fw:2goo6qbb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #ff0000;">" .and. '"</span>+ dtoc<span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"'=> dtoc(CHECK_IN)"</span><br /> </div>[/code:2goo6qbb] as [code=fw:2goo6qbb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #ff0000;">" .and. '"</span>+ dtoc<span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"' >= dtoc(CHECK_IN)"</span><br /> </div>[/code:2goo6qbb] Next: You should be knowing that you should not compare DTOC(). This gives the wrong results. Example: [code=fw:2goo6qbb]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; ? <span style="color: #ff0000;">"30-06-2018"</span> < <span style="color: #ff0000;">"01-07-2018"</span> <span style="color: #B900B9;">// --> .F.</span><br />&nbsp;</div>[/code:2goo6qbb] This gives false but you expect true Instead, you should use DTOS()
tdatabase Filter error
Now I made [code=fw:2z91axs2]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />  oReservation:<span style="color: #000000;">setorder</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /> cFilter := <span style="color: #ff0000;">"trim(TYPE) == '"</span> + AllTrim<span style="color: #000000;">&#40;</span> cTypeRoom <span style="color: #000000;">&#41;</span> +;<br />                 <span style="color: #ff0000;">"' .and. num= '"</span> + AllTrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nElemento<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> +;<br />                 <span style="color: #ff0000;">"' .and. '"</span>+ dtoc<span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"' <= dtoc(CHECK_OUT)"</span>+;<br />                 <span style="color: #ff0000;">" .and. '"</span>+ dtoc<span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"' >= dtoc(CHECK_IN)"</span><br /> oReservation:<span style="color: #000000;">setFilter</span><span style="color: #000000;">&#40;</span>cFilter<span style="color: #000000;">&#41;</span><br />   oReservation:<span style="color: #000000;">gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2z91axs2] give me this error [code=fw:2z91axs2]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\Work\Errori\image_su_btnbmp\test2.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">3</span>,<span style="color: #000000;">953</span>,<span style="color: #000000;">664</span> bytes<br />   Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r1703231115<span style="color: #000000;">&#41;</span><br />   FiveWin  version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">19.03</span><br />   C compiler version: <span style="color: #000000;">Borland</span>/Embarcadero C++ <span style="color: #000000;">7.0</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">&#41;</span><br />   Windows version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">3</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">24</span><span style="color: #000000;">-04</span><span style="color: #000000;">-2019</span>, <span style="color: #000000;">10</span>:<span style="color: #000000;">57</span>:<span style="color: #000000;">41</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1071</span>  Argument error: =<br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = N   <span style="color: #000000;">2</span><br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = C   <span style="color: #000000;">1</span><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\DATABASE.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>COMPILE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1133</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => DBGOTOP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\DATABASE.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDATABASE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">189</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\DATABASE.PRG => TDATABASE:<span style="color: #000000;">GOTOP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test2</span>.prg => MOSTRA_ELEMENTI<span style="color: #000000;">&#40;</span> <span style="color: #000000;">367</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test2</span>.prg => LOAD<span style="color: #000000;">&#40;</span> <span style="color: #000000;">257</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test2</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TEST<span style="color: #000000;">&#40;</span> <span style="color: #000000;">143</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">864</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1120</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">304</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test2</span>.prg => TEST<span style="color: #000000;">&#40;</span> <span style="color: #000000;">143</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test2</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">36</span> <span style="color: #000000;">&#41;</span><br /><br />System<br />======<br />   CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Atom<span style="color: #000000;">&#40;</span>TM<span style="color: #000000;">&#41;</span> x5-Z8350  CPU @ <span style="color: #000000;">1</span>.44GHz <span style="color: #000000;">1440</span> Mhz<br />   Hardware memory: <span style="color: #000000;">3961</span> megs<br /><br />   Free System resources: <span style="color: #000000;">90</span> %<br />        GDI    resources: <span style="color: #000000;">90</span> %<br />        User   resources: <span style="color: #000000;">90</span> %<br /><br />   Windows total applications running: <span style="color: #000000;">5</span><br />      <span style="color: #000000;">1</span> , C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6<span style="color: #000000;">.0</span><span style="color: #000000;">.15063</span>.0_none_583b8639f <br />      <span style="color: #000000;">2</span> , C:\Work\Errori\image_su_btnbmp\test2.Exe                                                            <br />      <span style="color: #000000;">3</span> DDE <span style="color: #00C800;">Server</span> <span style="color: #0000ff;">Window</span>, C:\Windows\System32\OLE32.DLL                                                                       <br />      <span style="color: #000000;">4</span> G,                                                                                                     <br />      <span style="color: #000000;">5</span> G, C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1<span style="color: #000000;">.1</span><span style="color: #000000;">.15063</span>.0_none_d802f55807fa1ec7\ <br /><br />Variables in use<br />================<br />   Procedure     Type   Value<br />   ==========================<br />   <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>COMPILE<br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">ERROR</span><br />   DBGOTOP<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">2</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    C    <span style="color: #ff0000;">"1"</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    U    <br />   <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDATABASE<br />   TDATABASE:<span style="color: #000000;">GOTOP</span><br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDATABASE</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">3</span><br />   MOSTRA_ELEMENTI<br />   LOAD<br />     Param   <span style="color: #000000;">1</span>:    A    Len:   <span style="color: #000000;">20</span><br />     Param   <span style="color: #000000;">2</span>:    A    Len:   <span style="color: #000000;">20</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">2</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">1</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">2</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    N    <span style="color: #000000;">1</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    N    <span style="color: #000000;">50</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    C    <span style="color: #ff0000;">"trim(TYPE) == '01' .and. num= '1' .and. '01-07-2018' <= dtoc(CHECK_OUT) .and. '07-08-2018' >= dtoc(CHECK_IN)"</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">7</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">8</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">9</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">10</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">11</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">12</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">13</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">14</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">15</span>:    U    <br />   <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TEST<br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">20</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">40</span><br />     Param   <span style="color: #000000;">4</span>:    A    Len:   <span style="color: #000000;">20</span><br />     Param   <span style="color: #000000;">5</span>:    A    Len:   <span style="color: #000000;">20</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    L    .T.<br />   TDIALOG:<span style="color: #000000;">INITIATE</span><br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br />   TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">1050216</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">1050216</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    L    .T.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    U    <br />   DIALOGBOXINDIRECT<br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">272</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">1050216</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">1050216</span><br />   TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">4194304</span><br />     Param   <span style="color: #000000;">2</span>:    C    <span style="color: #ff0000;">"€ È€          Œo    M i n i   B e a c h   t e s t     "</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">4</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br />   TEST<br />     Param   <span style="color: #000000;">1</span>:    U    <br />     Param   <span style="color: #000000;">2</span>:    U    <br />     Param   <span style="color: #000000;">3</span>:    U    <br />     Param   <span style="color: #000000;">4</span>:    L    .T.<br />     Param   <span style="color: #000000;">5</span>:    U    <br />     Param   <span style="color: #000000;">6</span>:    L    .T.<br />     Param   <span style="color: #000000;">7</span>:    B    <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />     Param   <span style="color: #000000;">8</span>:    U    <br />     Param   <span style="color: #000000;">9</span>:    U    <br />     Param  <span style="color: #000000;">10</span>:    U    <br />     Param  <span style="color: #000000;">11</span>:    U    <br />     Param  <span style="color: #000000;">12</span>:    L    .F.<br />     Param  <span style="color: #000000;">13</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br />     Param  <span style="color: #000000;">14</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    S    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br />   MAIN<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">800</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TFONT</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">48.6</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    N    <span style="color: #000000;">165</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    N    <span style="color: #000000;">1303.5</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    N    <span style="color: #000000;">733.86</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">7</span>:    C    <span style="color: #ff0000;">""</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">8</span>:    N    <span style="color: #000000;">50</span><br /><br />Linked RDDs<br />===========<br />   DBF<br />   DBFFPT<br />   DBFBLOB<br />   DBFCDX<br />   DBFNTX<br /><br />DataBases in use<br />================<br /><br />  <span style="color: #000000;">1</span>: => TDF00002                           RddName: <span style="color: #000000;">DBFCDX</span><br />     ==============================<br />     RecNo    RecCount    BOF   EOF<br />          <span style="color: #000000;">1</span>           <span style="color: #000000;">22</span>      .F.   .F.<br /><br />     Indexes in use                        TagName<br />        => ROOMS_ID + DToS<span style="color: #000000;">&#40;</span> CHECK_IN <span style="color: #000000;">&#41;</span>        RE001<br />           ROOMS_ID                           RE002<br /><br />     Relations in use<br /><br />  <span style="color: #000000;">2</span>:    TDF00003                           RddName: <span style="color: #000000;">DBFCDX</span><br />     ==============================<br />     RecNo    RecCount    BOF   EOF<br />         <span style="color: #000000;">41</span>          <span style="color: #000000;">800</span>      .F.   .F.<br /><br />     Indexes in use                        TagName<br />        => ELEMENTO                           SPCAM<br />           ELEMENTO+SETTORE                   <span style="color: #0000ff;">ID</span><br /><br />     Relations in use<br /><br />Classes in use:<br />===============<br />     <span style="color: #000000;">1</span> ERROR<br />     <span style="color: #000000;">2</span> HBCLASS<br />     <span style="color: #000000;">3</span> HBOBJECT<br />     <span style="color: #000000;">4</span> TINI<br />     <span style="color: #000000;">5</span> TDATABASE<br />     <span style="color: #000000;">6</span> TFONT<br />     <span style="color: #000000;">7</span> TWINDOW<br />     <span style="color: #000000;">8</span> TDIALOG<br />     <span style="color: #000000;">9</span> TBRUSH<br />    <span style="color: #000000;">10</span> TCONTROL<br />    <span style="color: #000000;">11</span> TXBROWSE<br />    <span style="color: #000000;">12</span> TREG32<br />    <span style="color: #000000;">13</span> TXBRWCOLUMN<br />    <span style="color: #000000;">14</span> TBTNBMP<br />    <span style="color: #000000;">15</span> TSCROLLBAR<br />    <span style="color: #000000;">16</span> TCLIPBOARD<br />    <span style="color: #000000;">17</span> TRECT<br />    <span style="color: #000000;">18</span> TSTRUCT<br /><br />Memory Analysis<br />===============<br />      <span style="color: #000000;">585</span> <span style="color: #00C800;">Static</span> variables<br /><br />   Dynamic memory consume:<br />      Actual  Value:    <span style="color: #000000;">1507328</span> bytes<br />      Highest Value:    <span style="color: #000000;">1507328</span> bytes<br /><br /><br /> </div>[/code:2z91axs2] I saw the problem is on "' .and. num= '" +ltrim(str(nElemento)) +; [b:2z91axs2]nElemento[/b:2z91axs2] is a Number and on dbf I have [b:2z91axs2]num[/b:2z91axs2] is a number field I made a small test to try [code=fw:2z91axs2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span><span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br />REQUEST DBFCDX<br /><span style="color: #00C800;">static</span> cDbfPath <br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oreservation<br /><span style="color: #00C800;">Local</span> cFilter<br /><br /><span style="color: #00C800;">Local</span> cTypeRoom:=<span style="color: #ff0000;">"01"</span><br /><span style="color: #00C800;">Local</span> nElemento:= <span style="color: #000000;">2</span><br /><span style="color: #00C800;">Local</span> dDataIniziale &nbsp;:= ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"01/07/2018"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> dDataFinale &nbsp; &nbsp;:= ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"07/08/2018"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;RDDSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'DBFCDX'</span> <span style="color: #000000;">&#41;</span><br />&nbsp;cDbfPath &nbsp; &nbsp;:= cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp;+ <span style="color: #ff0000;">"Data<span style="color: #000000;">\"</span><br /><br />&nbsp; &nbsp;oReservation:=TDatabase():Open( , cDbfPath+"</span>Reserva<span style="color: #ff0000;">", "</span>DBFCDX<span style="color: #ff0000;">", .T. )<br />&nbsp; &nbsp;oReservation:setorder(1)<br />&nbsp; &nbsp;oReservation:gotop()<br /><br />&nbsp; &nbsp; &nbsp; cFilter := "</span>trim<span style="color: #000000;">&#40;</span>TYPE<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'" + ( cTypeRoom )<br />&nbsp; &nbsp; &nbsp; cFilter += "'</span> .and. num= <span style="color: #ff0000;">'" +ltrim(str(nElemento))<br />&nbsp; &nbsp; &nbsp; cFilter += "'</span> .and. <span style="color: #ff0000;">'"+ dtoc(dDataIniziale)+"'</span> <= dtos<span style="color: #000000;">&#40;</span>CHECK_OUT<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; cFilter += "</span> .and. <span style="color: #ff0000;">'"+ dtoc(dDataFinale)+"'</span> >= dtos<span style="color: #000000;">&#40;</span>CHECK_IN<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">"<br /><br /><br />&nbsp; &nbsp;? cFilter<br />&nbsp; &nbsp;oReservation:setFilter(cFilter)<br />&nbsp; &nbsp;oReservation:gotop()<br /><br />xbrowser oReservation<br /><br />return nil <br /><br /></span></div>[/code:2z91axs2]
tdatabase Filter error
What datatypes your dbf has you should be knowing. I do not know. I can only point out obvious errors in your code.
tdatabase Filter error
sorry I forget it [b:1a6lt0g6] structure of Reserva.dbf[/b:1a6lt0g6] [code=fw:1a6lt0g6]<div class="fw" id="{CB}" style="font-family: monospace;">  DbCreate<span style="color: #000000;">&#40;</span>cDir+<span style="color: #ff0000;">'RE'</span>,<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"date"</span>      , <span style="color: #ff0000;">"D"</span>,   <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"rooms_id"</span>  , <span style="color: #ff0000;">"C"</span>,   <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"check_in"</span>  , <span style="color: #ff0000;">"D"</span>,   <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"check_out"</span> , <span style="color: #ff0000;">"D"</span>,   <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"status"</span>    , <span style="color: #ff0000;">"C"</span>,   <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"type"</span>      , <span style="color: #ff0000;">"C"</span>,   <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"num"</span>       , <span style="color: #ff0000;">"N"</span>,   <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"guest"</span>     , <span style="color: #ff0000;">"C"</span>,  <span style="color: #000000;">30</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"phone"</span>     , <span style="color: #ff0000;">"C"</span>,  <span style="color: #000000;">14</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"invoice"</span>   , <span style="color: #ff0000;">"C"</span>,  <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"payed"</span>     , <span style="color: #ff0000;">"L"</span>,   <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"totale"</span>    , <span style="color: #ff0000;">"N"</span>,  <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"acconto"</span>   , <span style="color: #ff0000;">"N"</span>,  <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"dataPayed"</span> , <span style="color: #ff0000;">"D"</span>,   <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"dasaldare"</span> , <span style="color: #ff0000;">"N"</span>,  <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"num_giorni"</span>, <span style="color: #ff0000;">"N"</span>,   <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                           <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"morning"</span>   , <span style="color: #ff0000;">"C"</span>,   <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">'DBFCDX'</span><span style="color: #000000;">&#41;</span></div>[/code:1a6lt0g6] [b:1a6lt0g6]index [/b:1a6lt0g6] INDEX ON ROOMS_ID + DToS(CHECK_IN ) TAG room_in EVAL (oProgress:SetPos(nProgress++), Sysrefresh()) EVERY 1 FOR !Deleted() I have to filter by room type ( field type) by number ( field num) and by date initial and final ( fields check_in and check_out)
tdatabase Filter error
Sorry Mr Rao I correct it but I have also a problem because it not execute the filter well I have this dbf [img:7yphdk9t]https&#58;//i&#46;postimg&#46;cc/vH5XHCnQ/re&#46;png[/img:7yphdk9t] and I make this small test to try [code=fw:7yphdk9t]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span><span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br />REQUEST DBFCDX<br /><span style="color: #00C800;">static</span> cDbfPath<br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oreservation<br /><span style="color: #00C800;">Local</span> cFilter<br /><br /><span style="color: #00C800;">Local</span> cTypeRoom:=<span style="color: #ff0000;">"01"</span><br /><span style="color: #00C800;">Local</span> nElemento:= <span style="color: #000000;">2</span><br /><span style="color: #00C800;">Local</span> dDataIniziale  := ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"01/07/2018"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> dDataFinale    := ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"07/08/2018"</span><span style="color: #000000;">&#41;</span><br /><br /> RDDSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'DBFCDX'</span> <span style="color: #000000;">&#41;</span><br /> cDbfPath    := cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>  + <span style="color: #ff0000;">"Data<span style="color: #000000;">\"</span><br /><br />   oReservation:=TDatabase():Open( , cDbfPath+"</span>Reserva<span style="color: #ff0000;">", "</span>DBFCDX<span style="color: #ff0000;">", .T. )<br />   oReservation:setorder(1)<br />   oReservation:gotop()<br /><br /><br />      cFilter := "</span>trim<span style="color: #000000;">&#40;</span>TYPE<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'" + ( cTypeRoom )<br />      cFilter += "'</span> .and. num= <span style="color: #ff0000;">" +ltrim(str(nElemento))<br />      cFilter += "</span> .and. <span style="color: #ff0000;">'"+ dtoc(dDataIniziale)+"'</span> <= dtoc<span style="color: #000000;">&#40;</span>CHECK_OUT<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">"<br />      cFilter += "</span> .and. <span style="color: #ff0000;">'"+ dtoc(dDataFinale)+"'</span> >= dtoc<span style="color: #000000;">&#40;</span>CHECK_IN<span style="color: #000000;">&#41;</span><span style="color: #ff0000;">"<br /><br />   ? cFilter<br />   oReservation:setFilter(cFilter)<br />   oReservation:gotop()<br /><br />xbrowser oReservation<br /><br />return nil<br /><br /></span></div>[/code:7yphdk9t] the archive index is ROOMS_ID + DToS( CHECK_IN ) I set Local cTypeRoom:="01" Local nElemento:= 2 Local dDataIniziale := ctod("01/07/2018") Local dDataFinale := ctod("07/08/2018") If you see the picture I have the record ( is the first) with NUM = 2 and the chech_in 16 july 2018 and check_out 16 july 2018 why I not see this record ? I tried also with [code=fw:7yphdk9t]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cFilter := <span style="color: #ff0000;">"trim(TYPE) == '"</span> + trim<span style="color: #000000;">&#40;</span> cTypeRoom <span style="color: #000000;">&#41;</span><br />      cFilter += <span style="color: #ff0000;">"' .and. num= "</span> +ltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nElemento<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      cFilter += <span style="color: #ff0000;">" .and. '"</span>+ dtos<span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"' <= dtos(CHECK_OUT)"</span><br />      cFilter += <span style="color: #ff0000;">" .and. '"</span>+ dtos<span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"' >= dtos(CHECK_IN)"</span><br /> </div>[/code:7yphdk9t] the string we have is trim(TYPE) == '01' .and. num= 2 .and. '20180107' <= dtos(CHECK_OUT) .and. '20180708' >= dtos(CHECK_IN) where is the error ? but I not see that record
tdatabase Filter error
field NUM is numeric and you are comparing with a string value. You should check yourself such mistakes at your end instead of posting them here
tdatabase Filter error
What do you want to see? All Rooms fully vacant between dDataIniziale and dDataFinale? Or All Rooms occupied anytime between dDataIniziale and dDataFinale?
tdatabase Filter error
thanks the test run ok I see the record right now [img:1xi75hwb]https&#58;//i&#46;postimg&#46;cc/HkJG7dd9/ddd&#46;png[/img:1xi75hwb] I select from datepick control the dDataIniziale and dDataFinale and I have set date Italian on dbf I have the date as 16/07/18 how I can make to have and use as your test dDataIniziale := STOD( "20180701" ) ?
tdatabase Filter error
Do not make any changes. Use this logic as it is. In fwh 1904, we are going to make this much simpler. Are you now using 1903 and will you be downloading FWH1904 when released?
tdatabase Filter error
Sorry Mr Rao I need to have All rooms occupied at any time between dDataIniziale and dDataFinale the end user selects the dates (dDataIniziale and dDataFinale) after making the filter (cfilter) I made I cycle on the archive reserva.dbf DO WHILE !oReservation:EoF() nStatus := Val( oReservation:STATUS ) to take the first record and have the value of the variable nStatus later with this value I can change the image to btnbmp IF nstatus=5 //free aBmps[nY,nX]:SetFile(aElementi[nKE][8]) else // not free aBmps[nY,nX]:SetFile(aElementi[nKE][9]) endif this night I try with cFilter := "trim(TYPE) == '" + ( cTypeRoom ) cFilter += "' .and. num= " +ltrim(str(nElemento)) cFilter += " .and. '"+ dtoc(dDataIniziale)+"' <= dtoc(CHECK_OUT)" cFilter += " .and. '"+ dtoc(dDataFinale)+"' >= dtoc(CHECK_IN)" and also not run ok