messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2010-01-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos del foro.\n\nHe leido que la clase combobox ya dispone de búsqueda incremental por defecto.\nHe estado haciendo pruebas pero no he conseguido que funcione.\n\n¿alguien tiene algún ejemplo de cómo se debe usar? <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nUn saludo.", "time": "18:12", "topic": "Búsqueda Incremental ComboBox", "username": "jfafive" } ]
Búsqueda Incremental ComboBox
[ { "date": "2010-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Hi,\n\nLook at this thread <!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=14747\">viewtopic.php?f=3&t=14747</a><!-- l -->", "time": "15:39", "topic": "Búsqueda Incremental ComboBox", "username": "Horizon" } ]
Búsqueda Incremental ComboBox
[ { "date": "2010-06-21", "forum": "FiveWin para Harbour/xHarbour", "text": "He comenzado recientemente a trabajar con xbrowse y me parece un browse fascinante.\n\nEstaba tratando de implementar una búsqueda incremental por diversos criterios de una tabla haciendo click derecho sobre el cabezal de la columna por la cual deseo buscar, consultando en el foro pude hacer la búsqueda y funciona bien, pero.......\n\nLa misma solo responde a la 1ra tecla que presione, es decir si presiono una \"l\" irá al primer elemento que comience con \"l\", pero si continúo escribiendo \"lo\" queda en esa misma línea.\n\n¿Hay algo que hago mal? o es como se espera que funcione... en tal caso ¿como puedo lograr que busque la palabra a medida que la escribo?\n\naquí les dejo el código....\n\n[code=fw:8stcj1nt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />                @ <span style=\"color: #000000;\">28</span>,<span style=\"color: #000000;\">50</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">VAR</span> cosa <span style=\"color: #0000ff;\">OF</span> oPanel     <br />    @ <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">50</span> <span style=\"color: #0000ff;\">XBROWSE</span> aBrw<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>  ;<br />            COLUMNS <span style=\"color: #ff0000;\">\"First\"</span>, <span style=\"color: #ff0000;\">\"City\"</span>, <span style=\"color: #ff0000;\">\"State\"</span>, <span style=\"color: #ff0000;\">\"Married\"</span>, <span style=\"color: #ff0000;\">\"HireDate\"</span>, <span style=\"color: #ff0000;\">\"Age\"</span>, <span style=\"color: #ff0000;\">\"Salary\"</span>, <span style=\"color: #ff0000;\">\"Hora\"</span>, <span style=\"color: #ff0000;\">\"cImagen\"</span>, <span style=\"color: #ff0000;\">\"Imagen\"</span> ;<br />            <span style=\"color: #0000ff;\">OF</span> oPanel ;<br />            <span style=\"color: #0000ff;\">ALIAS</span> cAlias AUTOSORT NOBORDER FOOTERS <span style=\"color: #0000ff;\">AUTOCOLS</span> <span style=\"color: #B900B9;\">//BACKGROUND \"\"</span><br />            <br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        <br />        XBrNumFormat<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">'E'</span>, .t. <span style=\"color: #000000;\">&#41;</span><br />        SetBalloon<span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span>   <br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nStretchCol</span>   := <span style=\"color: #000000;\">0</span><br />         <br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nRowDividerStyle</span> = LINESTYLE_NOLINES<br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nColDividerStyle</span> = LINESTYLE_NOLINES<br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nMarqueeStyle</span>    = MARQSTYLE_HIGHLROW<br />        <br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">First</span>:<span style=\"color: #000000;\">nEditType</span>:= EDIT_GET<br />            <br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">City</span>:<span style=\"color: #000000;\">nEditType</span>:= EDIT_GET_LISTBOX<br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">City</span>:<span style=\"color: #000000;\">aEditListTxt</span>:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"uno\"</span>, <span style=\"color: #ff0000;\">\"dos\"</span>, <span style=\"color: #ff0000;\">\"tres\"</span><span style=\"color: #000000;\">&#125;</span><br />        <br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Married</span>:<span style=\"color: #000000;\">nEditType</span>:=EDIT_GET<br />        <br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">HireDate</span>:<span style=\"color: #000000;\">nEditType</span>     := EDIT_DATE<br />        <br />                                 .......<br />    <br />        WITH OBJECT aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">First</span><br />            :<span style=\"color: #000000;\">cSortOrder</span>:=<span style=\"color: #ff0000;\">\"FIRST\"</span><br />            :<span style=\"color: #000000;\">bLClickHeader</span>:= <span style=\"color: #000000;\">&#123;</span>|| aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>  <br />        END<br />        <br />        WITH OBJECT aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">City</span><br />            :<span style=\"color: #000000;\">cSortOrder</span>:=<span style=\"color: #ff0000;\">\"CITY\"</span><br />            :<span style=\"color: #000000;\">bLClickHeader</span>:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Gotop</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><br />        END<br />        <br />        .....<br />        <br />                <br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bSeek</span> := <span style=\"color: #000000;\">&#123;</span>|c| CUSTOMER-><span style=\"color: #000000;\">&#40;</span> DbSeek<span style=\"color: #000000;\">&#40;</span> Upper<span style=\"color: #000000;\">&#40;</span> c <span style=\"color: #000000;\">&#41;</span> ,.t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">oSeek</span>:=oSay<br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">oSeek</span>:<span style=\"color: #000000;\">nLeft</span> := aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nLeft</span> + aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nDisplayCol</span><br />      <br />        aBrw<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">MakeTotals</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        <br />        oPanel:<span style=\"color: #000000;\">oClient</span> := aBrw<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br /> </div>[/code:8stcj1nt]\n\nAgradezco desde ya la ayuda que puedan brindarme <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "18:09", "topic": "Búsqueda Incremental con xBrowse (resuelto)", "username": "jose_murugosa" } ]
Búsqueda Incremental con xBrowse (resuelto)
[ { "date": "2010-06-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Pues de todas maneras muchas gracias me es muy interesante tu ejemplo <!-- s:mrgreen: --><img src=\"{SMILIES_PATH}/icon_mrgreen.gif\" alt=\":mrgreen:\" title=\"Mr. Green\" /><!-- s:mrgreen: --> \n\nSaluditos <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "22:04", "topic": "Búsqueda Incremental con xBrowse (resuelto)", "username": "AIDA" } ]
Búsqueda Incremental con xBrowse (resuelto)
[ { "date": "2010-06-21", "forum": "FiveWin para Harbour/xHarbour", "text": "perdón, ya lo resolví, se trataba del uso de upper() sobre una tabla en que hay mayúsculas y minúsculas.\nSorry <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "18:21", "topic": "Búsqueda Incremental con xBrowse (resuelto)", "username": "jose_murugosa" } ]
Búsqueda Incremental con xBrowse (resuelto)
[ { "date": "2010-07-03", "forum": "FiveWin para Harbour/xHarbour", "text": "XBrwose automatically builds a bSeek codeblock and it works like a charm. This code block uses UPPER(cSeek) when index is on upper and does not use upper when index is not upper.\n\nBest way to use XBrowse is not to override its default behavior by our own definition of bSeek, bOnPostEdit, etc. \n\nBest way of using XBrowse is to code less.\n\nSimple\n[code=fw:1ci0g4f3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">@ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">VAR</span> oBrw:<span style=\"color: #000000;\">cSeek</span> <span style=\"color: #0000ff;\">SIZE</span> <w>,<h> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oWnd</div>[/code:1ci0g4f3]\nThis one line of code is enough for implementing fully functional incremental seek on any xbrowse ( DBF, TDatabase, RecordSet, etc ), if AUTOSORT clause is used when defining XBrowse.", "time": "15:03", "topic": "Búsqueda Incremental con xBrowse (resuelto)", "username": "nageswaragunupudi" } ]
Búsqueda Incremental con xBrowse (resuelto)
[ { "date": "2010-07-04", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":3b06uuu6]XBrwose automatically builds a bSeek codeblock and it works like a charm. This code block uses UPPER(cSeek) when index is on upper and does not use upper when index is not upper.\n\nBest way to use XBrowse is not to override its default behavior by our own definition of bSeek, bOnPostEdit, etc. \n\nBest way of using XBrowse is to code less.\n\nSimple\n[code=fw:3b06uuu6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">@ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">VAR</span> oBrw:<span style=\"color: #000000;\">cSeek</span> <span style=\"color: #0000ff;\">SIZE</span> <w>,<h> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oWnd</div>[/code:3b06uuu6]\nThis one line of code is enough for implementing fully functional incremental seek on any xbrowse ( DBF, TDatabase, RecordSet, etc ), if AUTOSORT clause is used when defining XBrowse.[/quote:3b06uuu6]\n\nGracias Sr. Rao <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "09:33", "topic": "Búsqueda Incremental con xBrowse (resuelto)", "username": "jose_murugosa" } ]
Búsqueda Incremental con xBrowse (resuelto)
[ { "date": "2016-07-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos: \nestuve buscando y leyendo para poder hacer una búsqueda incremental en un Combo.\nAparentemente es factible, pero no encuentro la forma de hacerlo. Leí muchos posts\nantes de mandar esta consulta y no hay forma que lo haga funcionar... \nSi alguien tiene algún ejemplo se los agradezco...\nGracias\nRoberto", "time": "15:24", "topic": "Búsqueda Incremental en Combobox", "username": "TOTOVIOTTI" } ]
Búsqueda Incremental en Combobox
[ { "date": "2016-07-25", "forum": "FiveWin para Harbour/xHarbour", "text": "A los maestros...\nSolo saber si se puede hacer o no... <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> \nGracias...", "time": "19:19", "topic": "Búsqueda Incremental en Combobox", "username": "TOTOVIOTTI" } ]
Búsqueda Incremental en Combobox
[ { "date": "2016-07-25", "forum": "FiveWin para Harbour/xHarbour", "text": "[url:25t902gq]http&#58;//fivetechsupport&#46;com/forums/viewtopic&#46;php?f=6&t=29340&start=15[/url:25t902gq]\n\n[url:25t902gq]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=22346[/url:25t902gq]\n\n[url:25t902gq]http&#58;//fivetechsupport&#46;com/forums/viewtopic&#46;php?f=6&t=26415&start=15[/url:25t902gq]", "time": "21:06", "topic": "Búsqueda Incremental en Combobox", "username": "karinha" } ]
Búsqueda Incremental en Combobox
[ { "date": "2016-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Joao, esos ejemplos los ví.\nSon ejemplos con COMBOS ON EDIT, no hay forma de los usar los otros combos?\nSaludos", "time": "00:02", "topic": "Búsqueda Incremental en Combobox", "username": "TOTOVIOTTI" } ]
Búsqueda Incremental en Combobox
[ { "date": "2016-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Que tal asi?\n\n[code=fw:2silczmj]<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;\">'ord.ch'</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">'xbrowse.ch'</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">'hbcompat.ch'</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oBrw, oFont, nWild := <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cList, aFlds, aHdrs<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nChoice, uDataSource<br /><br />&nbsp; &nbsp;SET DATE ITALIAN<br />&nbsp; &nbsp;SET CENTURY <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp;RDDSETDEFAULT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;cList := <span style=\"color: #ff0000;\">\"First,Last,Street,State,HireDate\"</span><br /><br />&nbsp; &nbsp;nChoice &nbsp; &nbsp; := ALERT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Choose Data Souce\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"DBF\"</span>, <span style=\"color: #ff0000;\">\"ADO\"</span>, <span style=\"color: #ff0000;\">\"ARRAY\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;uDataSource := OpenData<span style=\"color: #000000;\">&#40;</span> nChoice, cList <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">750</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"XBrowse Incremental Filters\"</span><br /><br />&nbsp; &nbsp;aFlds := aHdrs := HB_ATokens<span style=\"color: #000000;\">&#40;</span> cList, <span style=\"color: #ff0000;\">','</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nChoice == <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp; aFlds := Array<span style=\"color: #000000;\">&#40;</span> Len<span style=\"color: #000000;\">&#40;</span> aFlds <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; AEval<span style=\"color: #000000;\">&#40;</span> aFlds, <span style=\"color: #000000;\">&#123;</span> |u,i| aFlds<span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> := i <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; COLUMNS aFlds HEADERS aHdrs ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE uDataSource AUTOSORT CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lIncrFilter</span> &nbsp; := .t.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lSeekWild</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#40;</span> nWild == <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">cFilterFld</span> &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"FIRST\"</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nStretchCol</span> &nbsp; := STRETCHCOL_WIDEST<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bLClickHeader</span> := <span style=\"color: #000000;\">&#123;</span> || oBrw:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">cFilterFld</span> := <span style=\"color: #ff0000;\">\"Street\"</span>, oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">// &nbsp; oCol:bLClickHeader = { | nMRow, nMCol, nFlags, Self | If( ::nHeadBmpNo == 2, ::nHeadBmpNo := 1, ::nHeadBmpNo := 2 ), ::oBrw:Refresh() }</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oBrw:<span style=\"color: #000000;\">cFilterFld</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ITEMS</span> aHdrs ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">70</span> <span style=\"color: #0000ff;\">COMBOBOX</span> nWild <span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Starting With\"</span>, <span style=\"color: #ff0000;\">\"Containing\"</span> <span style=\"color: #000000;\">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">lSeekWild</span> := <span style=\"color: #000000;\">&#40;</span> nWild == <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">lSeekWild</span>, oBrw:<span style=\"color: #000000;\">cSeek</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">11</span>,<span style=\"color: #000000;\">160</span> <span style=\"color: #0000ff;\">SAY</span> oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">PROMPT</span> oBrw:<span style=\"color: #000000;\">cSeek</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK,CLR_YELLOW <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">'@!'</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <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 /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> OpenData<span style=\"color: #000000;\">&#40;</span> nSource, cList <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oCn, uSource<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">SWITCH</span> nSource<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp; USE CUSTOMER SHARED <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> CUST<br />&nbsp; &nbsp; &nbsp; SET ORDER <span style=\"color: #0000ff;\">TO</span> TAG FIRST<br />&nbsp; &nbsp; &nbsp; GO TOP<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> nSource == <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;uSource &nbsp;:= CUST-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> cList <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CLOSE CUST<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;uSource &nbsp;:= <span style=\"color: #ff0000;\">\"CUST\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; EXIT<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp; &nbsp; oCn &nbsp; := FW_OpenAdoConnection<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cFilePath<span style=\"color: #000000;\">&#40;</span> GetModuleFileName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"xbrtest.mdb;User Id=admin;Password=;\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> oCn != <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;uSource &nbsp;:= FW_OpenRecordSet<span style=\"color: #000000;\">&#40;</span> oCn, <span style=\"color: #ff0000;\">\"CUSTOMER\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; EXIT<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span><br />&nbsp; &nbsp; &nbsp; QUIT<br />&nbsp; &nbsp;END<br /><br /><span style=\"color: #00C800;\">return</span> uSource<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:2silczmj]\n\u001a", "time": "14:07", "topic": "Búsqueda Incremental en Combobox", "username": "karinha" } ]
Búsqueda Incremental en Combobox
[ { "date": "2016-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:2j5kcsh7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><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, oCbx, cSearch := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span>, aItems := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"africa\"</span>, <span style=\"color: #ff0000;\">\"america\"</span>, <span style=\"color: #ff0000;\">\"asia\"</span>, <span style=\"color: #ff0000;\">\"europe\"</span>, <span style=\"color: #ff0000;\">\"oceania\"</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">300</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2.4</span>, <span style=\"color: #000000;\">1.2</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx <span style=\"color: #0000ff;\">VAR</span> cSearch <span style=\"color: #0000ff;\">ITEMS</span> aItems <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>, <span style=\"color: #000000;\">150</span><br /><br />&nbsp; &nbsp;oCbx:<span style=\"color: #000000;\">lIncSearch</span> = .T.<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2j5kcsh7]\n\u001a", "time": "14:23", "topic": "Búsqueda Incremental en Combobox", "username": "karinha" } ]
Búsqueda Incremental en Combobox
[ { "date": "2016-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "[url:215cy8d8]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=32295&p=189416&hilit=lIncSearch#p189416[/url:215cy8d8]\n\n[url:215cy8d8]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=23649&p=133508&hilit=lIncSearch#p133508[/url:215cy8d8]\n\n[url:215cy8d8]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=21772&p=115957&hilit=lIncSearch#p115957[/url:215cy8d8]\n\n[url:215cy8d8]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=14594&p=75634&hilit=lincsearch#p75634[/url:215cy8d8]\n\nSaludos.", "time": "14:24", "topic": "Búsqueda Incremental en Combobox", "username": "karinha" } ]
Búsqueda Incremental en Combobox
[ { "date": "2016-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias! Mucho material! Vamos a ver que sacamos en limpio!\nGrande Joao! O máis grande do mundo! \nAbrazo!", "time": "15:36", "topic": "Búsqueda Incremental en Combobox", "username": "TOTOVIOTTI" } ]
Búsqueda Incremental en Combobox
[ { "date": "2016-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba asi\n\n\tREDEFINE COMBOBOX oCbx2 VAR oUni_Produ ITEMS aUnidad ID 103 OF oDlg UPDATE;\n STYLE CBS_DROPDOWN\n\n oCbx2:oGet:bKeyChar = { | nKey | oCbx2:GetKeyChar( nKey ) } //Busca en COMBOBOX\n\nSaludos", "time": "17:10", "topic": "Búsqueda Incremental en Combobox", "username": "jbrita" } ]
Búsqueda Incremental en Combobox
[ { "date": "2016-08-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigo... \nbusca la primer letra... pero no busca un texto...\nA no ser que esté haciendo algo mal yo...\nSaludos", "time": "13:25", "topic": "Búsqueda Incremental en Combobox", "username": "TOTOVIOTTI" } ]
Búsqueda Incremental en Combobox
[ { "date": "2017-05-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos, \nhe recorrido los post y hay miles de preguntas sobre la búsqueda incremental.\nLa uso permanentemente y con muy buen resultado.\nUso un modelo estándar, de un browse de un Query, de una tabla común, por ejemplo:\n\n [color=#0000FF:1h09q76j] oQuery:=oServer:Query(\"SELECT titulo,codigo,invenario FROM titulos ORDER BY titulo\")\n[/color:1h09q76j]\ny necesito hacer un Browse de ese query:\n\n [color=#0000FF:1h09q76j]REDEFINE XBROWSE oBrw ID 15 HEADERS \"Título\",\"Código\",\"Inventario\" ;\n JUSTIFY AL_LEFT,AL_LEFT,AL_CENTER ;\n COLSIZES 300,100,100 DATASOURCE oQuery AUTOSORT AUTOCOLS LINES CELL NOBORDER OF oDlg \n\n[/color:1h09q76j]y uso, la búsqueda incremental nativa de xBrowse:\n\n [color=#0000FF:1h09q76j]REDEFINE SAY oBrw:oSeek PROMPT oBrw:cSeek ID 16 OF oDlg\n\n[/color:1h09q76j]Hasta ahí todo perfecto, \n\nEn determinados momentos, ocurre que, tengo por ejemplo, 200 títulos que comienzan con \"CUENTOS\", \ny cuando escribo para buscar, me busca las letras \"CUE\" y deja de buscar, cambio la búsqueda, funciona perfecto,\ny vuelvo a buscar \"CUENTOS\", y me busca solo \"CUE\".\n\nQue puedo estar haciendo incorrectamente?\nRevisé la tabla, revisé el query, revisé los índices... no entiendo... porque para determinadas búsquedas\nfunciona perfecto y otras no?\n\nDesde ya, muchas gracias!\nRoberto", "time": "19:38", "topic": "Búsqueda Incremental xBrowse", "username": "TOTOVIOTTI" } ]
Búsqueda Incremental xBrowse
[ { "date": "2009-12-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados colegas,\n Estoy utilizando tsbrowse 8.0. Este es un gragmento de código que hecho:\n\n DBSelectArea( \"CODPOST\" )\n cTag:= CODPOST->( OrdName() )\n CODPOST->( OrdSetFocus( \"CP_LOCA\" ) )\n DBGoTop()\n\n DEFINE DIALOG oDlg RESOURCE \"DLG_HELPER\" FONT oFtes:SET(1) TITLE \"Localidades - Listado Total\"\n\n REDEFINE BROWSE oBrw ID 101 OF oDlg FONT oFtes:SET(1)\n\n ADD COLUMN TO oBrw ;\n DATA FieldWBlock( \"CP\", Select() ) ;\n Header \"CP\" ;\n ALIGN DT_CENTER, DT_CENTER ;\n WIDTH 50 pixels ;\n 3dLook TRUE, TRUE\n\n ADD COLUMN TO oBrw ;\n DATA FieldWBlock( \"SP\", Select() ) ;\n Header \"SP\" ;\n ALIGN DT_CENTER, DT_CENTER ;\n WIDTH 50 pixels ;\n 3dLook TRUE, TRUE\n\n ADD COLUMN TO oBrw ;\n DATA FieldWBlock( \"LOCALIDAD\", Select() ) ;\n Header \"Localidad\" ;\n ALIGN DT_LEFT, DT_CENTER ;\n WIDTH 263 pixels ;\n 3dLook TRUE, TRUE\n\n ADD COLUMN TO oBrw ;\n DATA FieldWBlock( \"DENO_PROV\", Select() ) ;\n Header \"Provincia\" ;\n ALIGN DT_LEFT, DT_CENTER ;\n WIDTH 213 pixels ;\n 3dLook TRUE, TRUE\n\n oBrw:cAlias := \"CODPOST\"\n oBrw:lSeek := .T.\n oBrw:nColOrder := 3\n oBrw:cOrderType:= \"C\"\n oBrw:lNoHScroll:=.T.\n oBrw:lNoVScroll:=.F.\n oBrw:nHeightCell += 5\n oBrw:nHeightHead += 9\n oBrw:lNoResetPos := .F.\n oBrw:SetIndexCols( 1, 2, 3 )\n oBrw:aColumns[1]:cOrder:= \"CP_ID\"\n oBrw:aColumns[2]:cOrder:= \"CP_ID\"\n oBrw:aColumns[3]:cOrder:= \"CP_LOCA\"\n\n oBrw:ChangeFont( oFtes:SET(2),,2 )\n oBrw:Look3d( .T., , , .T. )\n oBrw:SetColor( { CLR_TEXT, CLR_PANE, CLR_HEADF, CLR_HEADB },;\n { CLR_BLACK, CLR_AZUL_1, CLR_WHITE, CLR_BLUE } )\n\n ACTIVATE DIALOG oDlg CENTERED ;\n ON INIT oBrw:upStable() ;\n VALID( oFtes:END(), .T. )\n\n Al aparecer este dialogo con este browse ordenado por localidad, uno comienza a tipear pero no realiza ninguna búsqueda, ahora si se cambia el órden del ínidice a código postal y luego se lo vuelve a cambiar por Localidad (como cuando inicia), si busca correctamente.\n Estoy utilizando ADS Local 9, los índices son .CDX.\n Espero que alguien me pueda ayudar. \n Saludos y muchas gracias.\n\nFernando Monteporzi.\nMegaSoft.\nSanta Fe - Argentina", "time": "19:34", "topic": "Búsqueda con TSBrowse", "username": "fmontepo" } ]
Búsqueda con TSBrowse
[ { "date": "2009-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Fernando:\n[quote=\"fmontepo\":1mjcqdhv] Al aparecer este dialogo con este browse ordenado por localidad, uno comienza a tipear pero no realiza ninguna búsqueda, ahora si se cambia el órden del ínidice a código postal y luego se lo vuelve a cambiar por Localidad (como cuando inicia), si busca correctamente.[/quote:1mjcqdhv]Después de: oBrw:aColumns[3]:cOrder:= \"CP_LOCA\", agrega la siguiente instrucción:\noBrw:SetOrder(3)\n\nUn abrazo.", "time": "17:24", "topic": "Búsqueda con TSBrowse", "username": "mmercado" } ]
Búsqueda con TSBrowse
[ { "date": "2009-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Manuel\n\nAlguna novedad con la ultima version de la tsbrowse?", "time": "21:32", "topic": "Búsqueda con TSBrowse", "username": "Patricio Avalos Aguirre" } ]
Búsqueda con TSBrowse
[ { "date": "2009-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Patricio:\n[quote=\"Patricio Avalos Aguirre\":2mqj0n7a]Alguna novedad con la ultima version de la tsbrowse?[/quote:2mqj0n7a]\nDame tu correo para enviarte TSBrowse V.9.0 Beta para sus últimas pruebas.\n\nUn abrazo.", "time": "20:37", "topic": "Búsqueda con TSBrowse", "username": "mmercado" } ]
Búsqueda con TSBrowse
[ { "date": "2014-06-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola. Tengo un problema que no se como solucionar. Tengo un listbox con registros de la base de datos. En la parte superior del mismo, tengo un say, que muestra el valor de una variable, y un get para introducir texto. La idea es no poder interactuar con el listbox y que conforme vas escribiendo texto, busco en el listbox y se va actualizando la búsqueda. Es un poco lioso pero es la única forma que encontré para que también se actualice la busque al pulsar la tecla borrar y las flechas.\n\nEste es el codigo del listbox:\n[code=fw:3o338rdv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">         @<span style=\"color: #000000;\">09</span>, <span style=\"color: #000000;\">10</span>  <span style=\"color: #0000ff;\">GET</span> BUFFER <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span>  <span style=\"color: #000000;\">160</span>,<span style=\"color: #000000;\">12</span>;<br />         <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"B/W\"</span> <span style=\"color: #0000ff;\">OF</span> B_CLI_V READONLY<br /><br />         @<span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">15</span>  <span style=\"color: #0000ff;\">SAY</span> BUFFER <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span>  <span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">10</span>;<br />         <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"B/W\"</span> <span style=\"color: #0000ff;\">OF</span> B_CLI_V <span style=\"color: #0000ff;\">UPDATE</span><br /><br />         @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">LISTBOX</span> LIS_CLI FIELDS CODIGO,NOMBRE;<br />                HEADERS  <span style=\"color: #ff0000;\">\"Código\"</span>,<span style=\"color: #ff0000;\">\"Nombre\"</span>;<br />                FIELDSIZES  <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">150</span>;<br />                <span style=\"color: #0000ff;\">UPDATE</span>;<br />                <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">OF</span> B_CLI_V;<br />                <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W\"</span>;<br />                <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> BUS_C<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">46</span>,LIS_CLI<span style=\"color: #000000;\">&#41;</span><br /><br />         LIS_CLI:<span style=\"color: #000000;\">BKEYDOWN</span>:=<span style=\"color: #000000;\">&#123;</span>|nkey,nflags|BUS_C<span style=\"color: #000000;\">&#40;</span>NKEY,LIS_CLI<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span></div>[/code:3o338rdv]\n\ny esta la función de búsqueda:\n\n[code=fw:3o338rdv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> BUS_C<span style=\"color: #000000;\">&#40;</span>NKEY,LIS_CLI<span style=\"color: #000000;\">&#41;</span><br /><br />         <span style=\"color: #00C800;\">local</span> teclado<br />         <span style=\"color: #B900B9;\">//msgalert(nkey)</span><br />         TECLADO:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">190</span>,<span style=\"color: #ff0000;\">\".\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">110</span>,<span style=\"color: #ff0000;\">\".\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">107</span>,<span style=\"color: #ff0000;\">\"+\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">111</span>,<span style=\"color: #ff0000;\">\"/\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">106</span>,<span style=\"color: #ff0000;\">\"*\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">188</span>,<span style=\"color: #ff0000;\">\",\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">189</span>,<span style=\"color: #ff0000;\">\"-\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">109</span>,<span style=\"color: #ff0000;\">\"-\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">32</span>,<span style=\"color: #ff0000;\">\" \"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">96</span>,<span style=\"color: #ff0000;\">\"0\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">97</span>,<span style=\"color: #ff0000;\">\"1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">98</span>,<span style=\"color: #ff0000;\">\"2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">99</span>,<span style=\"color: #ff0000;\">\"3\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">100</span>,<span style=\"color: #ff0000;\">\"4\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">101</span>,<span style=\"color: #ff0000;\">\"5\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">102</span>,<span style=\"color: #ff0000;\">\"6\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">103</span>,<span style=\"color: #ff0000;\">\"7\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">104</span>,<span style=\"color: #ff0000;\">\"8\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">105</span>,<span style=\"color: #ff0000;\">\"9\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">220</span>,<span style=\"color: #ff0000;\">\"§\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">221</span>,<span style=\"color: #ff0000;\">\"¦\"</span><span style=\"color: #000000;\">&#125;</span>,; <span style=\"color: #B900B9;\">/// esto ya es a la desesperada</span><br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">219</span>,<span style=\"color: #ff0000;\">\"?\"</span><span style=\"color: #000000;\">&#125;</span>,; <span style=\"color: #B900B9;\">/// esto ya es a la desesperada  </span><br />                   <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">192</span>,<span style=\"color: #ff0000;\">\"¥\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br /><br />         <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />            <span style=\"color: #00C800;\">CASE</span> NKEY=<span style=\"color: #000000;\">46</span><br />                 BUFFER=SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />                 LIS_CLI:<span style=\"color: #0000ff;\">REFRESH</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                 B_CLI_V:<span style=\"color: #0000ff;\">UPDATE</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                 <span style=\"color: #00C800;\">RETURN</span> .T.<br />            <span style=\"color: #00C800;\">CASE</span> NKEY=<span style=\"color: #000000;\">8</span><br />                 <span style=\"color: #00C800;\">IF</span> .NOT. EMPTY<span style=\"color: #000000;\">&#40;</span>BUFFER<span style=\"color: #000000;\">&#41;</span><br />                    BUFFER=<span style=\"color: #0000ff;\">LEFT</span><span style=\"color: #000000;\">&#40;</span>BUFFER,LEN<span style=\"color: #000000;\">&#40;</span>BUFFER<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span><br />                 <span style=\"color: #00C800;\">ENDIF</span><br />            <span style=\"color: #00C800;\">CASE</span> NKEY=<span style=\"color: #000000;\">13</span><br />                 B_CLI_V:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                 CABALB<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>=CODIGO<br />                 CABALB<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>=NOMBRE<br />                 <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span>NOMBRECOM<span style=\"color: #000000;\">&#41;</span><br />                    aDATOS_CLI<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>=NOMBRECOM<br />                 <span style=\"color: #00C800;\">ELSE</span><br />                    aDATOS_CLI<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>=NOMBRE<br />                 <span style=\"color: #00C800;\">ENDIF</span><br />                 CABALB<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>=aDATOS_CLI<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br /><br />                 aDATOS_CLI<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>=DIRECCION<br />                 aDATOS_CLI<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>=POBLACION<br />                 aDATOS_CLI<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>=PROVINCIA<br />                 <span style=\"color: #00C800;\">RETURN</span> .T.<br />            <span style=\"color: #00C800;\">CASE</span> NKEY=<span style=\"color: #000000;\">27</span><br />                 B_CLI_V:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                 CABALB<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>=SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span><br />                 <span style=\"color: #00C800;\">RETURN</span> .T.<br />            <span style=\"color: #00C800;\">CASE</span> NKEY>=<span style=\"color: #000000;\">48</span> .AND. NKEY<=<span style=\"color: #000000;\">57</span><br />                 BUFFER+=CHR<span style=\"color: #000000;\">&#40;</span>NKEY<span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">CASE</span> NKEY>=<span style=\"color: #000000;\">65</span> .AND. NKEY<=<span style=\"color: #000000;\">90</span><br />                 BUFFER+=CHR<span style=\"color: #000000;\">&#40;</span>NKEY<span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">OTHERWISE</span><br />                 <span style=\"color: #00C800;\">FOR</span> N=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span>TECLADO<span style=\"color: #000000;\">&#41;</span><br />                     <span style=\"color: #00C800;\">IF</span> TECLADO<span style=\"color: #000000;\">&#91;</span>N,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>=NKEY<br />                        BUFFER+=OEMTOANSI<span style=\"color: #000000;\">&#40;</span>TECLADO<span style=\"color: #000000;\">&#91;</span>N,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br />                     <span style=\"color: #00C800;\">ENDIF</span><br />                 <span style=\"color: #00C800;\">NEXT</span><br />         <span style=\"color: #00C800;\">ENDCASE</span><br />         <span style=\"color: #00C800;\">IF</span> ISALPHA<span style=\"color: #000000;\">&#40;</span>BUFFER<span style=\"color: #000000;\">&#41;</span><br />            DBSETORDER<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><br />            BUSCA=BUFFER<br />            SET SOFTSEEK <span style=\"color: #0000ff;\">ON</span><br />            SEEK BUSCA<br />            SET SOFTSEEK OFF<br />            <span style=\"color: #00C800;\">if</span> !found<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />               DBSETORDER<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><br />               SET SOFTSEEK <span style=\"color: #0000ff;\">ON</span><br />               SEEK BUSCA<br />               SET SOFTSEEK OFF<br />               <span style=\"color: #00C800;\">if</span> !found<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                  DBSETORDER<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #00C800;\">endif</span><br />            <span style=\"color: #00C800;\">endif</span><br />         <span style=\"color: #00C800;\">ELSE</span><br />            DBSETORDER<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />            BUSCA=CEROS<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">5</span>,BUFFER<span style=\"color: #000000;\">&#41;</span><br />            SET SOFTSEEK <span style=\"color: #0000ff;\">ON</span><br />            SEEK BUSCA<br />            SET SOFTSEEK OFF<br />         <span style=\"color: #00C800;\">ENDIF</span><br /><br />         LIS_CLI:<span style=\"color: #0000ff;\">REFRESH</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />         B_CLI_V:<span style=\"color: #0000ff;\">UPDATE</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> .T.<br /> </div>[/code:3o338rdv]\n\nCon letras y números funciona perfectamente, pero tengo problemas con los textos de º , ª, €, @, ...\n\nNo se como hacerlo, y hay un cliente que me ha metido ya miles de clientes y muchos de ellos son mª josé.... mª carmen.... y claro, el listbox no busca. Por favor ¿alguna sugerencia? gracias.", "time": "00:23", "topic": "Búsqueda en browse con simbolicos raros", "username": "informaticaeloy" } ]
Búsqueda en browse con simbolicos raros
[ { "date": "2014-06-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Y si usas xBrowse?\nTe hace la busqueda incremental sola...\n[code=fw:1hn22xnj]<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;\">'ord.ch'</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">'xbrowse.ch'</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">'hbcompat.ch'</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oBrw<br /><br />&nbsp; &nbsp;RDDSETDEFAULT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;USE CUSTOMER<br />&nbsp; &nbsp;SET ORDER <span style=\"color: #0000ff;\">TO</span> TAG FIRST<br />&nbsp; &nbsp;GO TOP<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;\">600</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style=\"color: #ff0000;\">\"CODIGO\"</span>,<span style=\"color: #ff0000;\">\"NOMBRE\"</span> HEADERS <span style=\"color: #ff0000;\">\"Código\"</span>,<span style=\"color: #ff0000;\">\"Nombre\"</span> AUTOSORT <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"CUSTOMER\"</span> CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">lIncrFilter</span> &nbsp;:= .t.<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">lSeekWild</span> &nbsp; &nbsp;:= .t.<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">PROMPT</span> oBrw:<span style=\"color: #000000;\">cSeek</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK,CLR_YELLOW <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">'@!'</span> <span style=\"color: #B900B9;\">// Aca muestras lo que se escribe por teclado, que lo va guardando el mismo browse</span><br /><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:1hn22xnj]\nEspero que te de una pista al menos. Pero el xBrowse, en lugar del ListBox, es una buena alternativa", "time": "04:40", "topic": "Búsqueda en browse con simbolicos raros", "username": "cmsoft" } ]
Búsqueda en browse con simbolicos raros
[ { "date": "2014-06-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguien dijo por ahí... \"para que re inventar la rueda\" <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> (Eloy no lo tomes a mal es una borma para ponerle \"color\" al post).\nComparto la propuesta de CM...\nNo obstante haya por el 2002 desarrollamos algo con Daniel Andrade (un clipero arg). que lo sigo usando en aplicaciones que todavía quedan con wBrowse\n[code=fw:9utw4cyh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/*<br /> *  TSekInc.prg<br /> *<br /> *  Clase para Busquedas Incrementales en Browsers<br /> *  FiveWin(tm)<br /> *<br /> *  Creada por Andrade Daniel [03/01/2002]<br /> *  Basado en SeekInc() del Ing. Mario González<br /> *<br /> *  Libre Distribuci¢n<br /> *<br /> *  Andrade Daniel [2002]<br /> *  andrade_2knews@hotmail.com<br /> *  Rosario, SF, Argentina<br /> *  ***************************<br /><br />    //-----------------------<br />    Versión 2.3 - 21/10/2003<br />    Agregado: Reasignacion 3er param. de aOrders,<br />              Búsqueda por Clave compuesta,<br />              Salida en Barra de Mensajes de Wiwndows<br /><br />    por: eMeGe (Ing. Mario González)<br />    <!-- e --><a href=\"mailto:mgonzalez@ing.unne.edu.ar\">mgonzalez@ing.unne.edu.ar</a><!-- e --><br /><br />    1. Se reasigna uso de tercer parámetro de array<br />       aOrders := {{\"FIRST\",\"NOMBRE\",.T.}, {\"LAST\",\"APELLIDO\",.T.}, {\"STREET\",\"DIRECCION\",.F.}, {\"CITY\",\"LOCALIDAD\",.F.}}<br />       De esta forma al estar activo lFullSeek, las búsquedas se hacen, optativamente por ej. para Nombre y Apellido<br /><br />    2. Se agrega la DATA cClaveAdic; lo que permite búsqueda por claves compuestas.<br />       La DATA cClaveAdic es \"\" por defecto.<br />       Se puede probar en Test.prg creando un índice compuesto para Test.dbf con los campos<br />       STATE+LAST, luego realizar un Browse estableciendo un Scope para STATE.<br />       Finalmente el código de búsqueda podría ser:<br /><br />       oSeek:= TSeekInc():New( oBrw, oDbf, oBuff, oSayOrd, aOrders, TRUE)<br />       oBrw:bKeyChar := {|nK| if( nK==VK_RETURN, nil, ( oSeek:cClaveAdic:= field->STATE, ;       <--- Asigno Clave Adic.<br />                                                        cBusca:= oSeek]:Seek( nK, TRUE ) ) }<br /><br />       Con el Browse activo; solo se ingresa la búsqueda por LAST<br /><br />    3. Se agrega posibilidad visualizar texto de búsqueda en Barra de Mensajes en Windows<br />       (Tomado de samples de Hernán Checarelli)<br /><br />       @3000,0 say oBuff var cBusca of oWnd1                               // Con esto el texto queda fuera de pantalla<br /><br />       oSeek:= TSeekInc():New( oBrw, oDbf, oBuff,, aOrders, TRUE)          // oSayOrder es nil<br /><br />       oBrw:bKeyChar := {|nK| if( nK==VK_RETURN, nil, ( oSeek:cClaveAdic:= field->STATE , ;       <--- Asigno Clave Adic.<br />                                                        cBusca:= oSeek]:Seek( nK, TRUE ), ;<br />                                                        oSeek:UpMsgBarBuffer( oWnd:oMsgBar, cBusca, CLR_HBLUE ) ) ) }<br /><br /><br />    //-----------------------<br />    Versión 2.00 - 17/06/2003<br />    Agregado: Búsqueda por campos índices, existentes, predefinidos<br />    por: eMeGe (Ing. Mario González)<br />    <!-- e --><a href=\"mailto:mgonzalez@ing.unne.edu.ar\">mgonzalez@ing.unne.edu.ar</a><!-- e --><br /><br />    Se agrega un checkbox para que busque por todos los campos índices existentes<br />    lFullSeek se puede pasar nil si no se desea utilizar<br />    xOrderName puede ser de tipo Caracter (orden de búsqueda) o Array.<br />    Puede ser nil, entonces la búsqueda será por el Orden Actual<br />    Si es Array, debe ser multiarray y cada subarray deberá tener 3 items<br />    (ver Test.prg Lin 185)<br />    1.- Nombre del Orden      (C)<br />    2.- Descripción del Orden (C)<br />    3.- (L) Verdadero = Orden activo en la búsqueda            // re asignado 21/10/03<br /><br />    Al buscar, si ::lFullSeek y ::lCellStyle, estan activos el puntero se posiciona<br />    en la última celda/columna encontrada<br /> */</span><br /><br /># include <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#define</span> _KEYTAG    <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> _TXTTAG    <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> _STATUSTAG <span style=\"color: #000000;\">3</span>          <span style=\"color: #B900B9;\">// Para busquedas textuales activa CASE SENSITIVE</span><br /><br /><br /><span style=\"color: #B900B9;\">/*<br /> *  Clase TSeekInc()<br /> */</span><br /><span style=\"color: #00C800;\">CLASS</span> TSeekInc<br /><br />  <span style=\"color: #00C800;\">DATA</span>    oDbf                  AS OBJECT    <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #00C800;\">NIL</span>    <span style=\"color: #B900B9;\">// Objeto TDBF, TDataBase</span><br />  <span style=\"color: #00C800;\">DATA</span>    oBrw                  AS OBJECT    <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #00C800;\">NIL</span>    <span style=\"color: #B900B9;\">// Objeto TwBrowse, TsBrowse, TcBrowse</span><br />  <span style=\"color: #00C800;\">DATA</span>    oTextSeek             AS OBJECT    <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #00C800;\">NIL</span>    <span style=\"color: #B900B9;\">// Objeto SAY para Texto de Busqueda</span><br />  <span style=\"color: #00C800;\">DATA</span>    oSayOrder             AS OBJECT    <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #00C800;\">NIL</span>    <span style=\"color: #B900B9;\">// Objeto SAY para Nombre del Orden</span><br /><br />  <span style=\"color: #00C800;\">DATA</span>    aOrderBag             AS ARRAY        <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #B900B9;\">// Contenedor de Ordenes             - Agregado por eMeGe 12/06/03</span><br />  <span style=\"color: #00C800;\">DATA</span>    nOrder                AS NUMERIC      <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">0</span>   <span style=\"color: #B900B9;\">// Posición del Orden por defecto    - Agregado por eMeGe 12/06/03</span><br />  <span style=\"color: #00C800;\">DATA</span>    cOrderName            AS CHARACTER    <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #ff0000;\">\"\"</span>  <span style=\"color: #B900B9;\">// Nombre del Orden Activo</span><br />  <span style=\"color: #00C800;\">DATA</span>    cBuffer               AS CHARACTER    <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #ff0000;\">\"\"</span>  <span style=\"color: #B900B9;\">// Buffer de Busqueda</span><br />  <span style=\"color: #00C800;\">DATA</span>    cClaveAdic            AS CHARACTER    <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #ff0000;\">\"\"</span>  <span style=\"color: #B900B9;\">// Clave, de Busqueda, Adicional     - Agregado por eMeGe 21/10/03</span><br />  <span style=\"color: #00C800;\">DATA</span>    nLastKey              AS NUMERIC      <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">0</span>   <span style=\"color: #B900B9;\">// Ultima Tecla Pulsada</span><br />  <span style=\"color: #00C800;\">DATA</span>    lFullSeek             AS LOGIC                 <span style=\"color: #B900B9;\">// Busca por Todos los Campos        - Agregado por eMeGe 12/06/03</span><br /><br />  <span style=\"color: #B900B9;\">// Metodo Contructor</span><br />  <span style=\"color: #00C800;\">METHOD</span>  <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oBrw, oDbf, oTextSeek, oSayOrder, xOrderName, lFullSeek <span style=\"color: #000000;\">&#41;</span>  CONSTRUCTOR<br /><br />  <span style=\"color: #B900B9;\">// Metodo de Busqueda en bKeyChar()</span><br />  <span style=\"color: #00C800;\">METHOD</span>  Seek<span style=\"color: #000000;\">&#40;</span> nKey, lUpper <span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #B900B9;\">// Metodo para Cambio de Orden</span><br />  <span style=\"color: #00C800;\">METHOD</span>  ChangeOrder<span style=\"color: #000000;\">&#40;</span> nNewOrder, cOrderName <span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #B900B9;\">// Metodo para mostrar texto en Barra de Mensajes</span><br />  <span style=\"color: #00C800;\">METHOD</span>  UpBuffMsgBar<span style=\"color: #000000;\">&#40;</span> oMsgBar, cBusca, cClrTxt <span style=\"color: #000000;\">&#41;</span>                                    <span style=\"color: #B900B9;\">// - Agregado por eMeGe 21/10/03</span><br /><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">/*<br /> *  New()<br /> */</span><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oBrw, oDbf, oTextSeek, oSayOrder, xOrderName, lFullSeek <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TSeekInc<br /><br />  <span style=\"color: #00C800;\">DEFAULT</span> lFullSeek:= .f.<br /><br />  ::<span style=\"color: #000000;\">oBrw</span>        := oBrw<br />  ::<span style=\"color: #000000;\">oDbf</span>        := oDbf<br />  ::<span style=\"color: #000000;\">oTextSeek</span>   := oTextSeek<br />  ::<span style=\"color: #000000;\">oSayOrder</span>   := oSayOrder<br />  ::<span style=\"color: #000000;\">lFullSeek</span>   := lFullSeek<br /><br />  <span style=\"color: #00C800;\">if</span> Valtype<span style=\"color: #000000;\">&#40;</span> xOrderName <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"C\"</span> .or. Empty<span style=\"color: #000000;\">&#40;</span> xOrderName <span style=\"color: #000000;\">&#41;</span>                                <span style=\"color: #B900B9;\">// Agregado por eMeGe 12/06/03</span><br />     ::<span style=\"color: #000000;\">cOrderName</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> Empty<span style=\"color: #000000;\">&#40;</span> xOrderName <span style=\"color: #000000;\">&#41;</span>, OrdSetFocus<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, xOrderName <span style=\"color: #000000;\">&#41;</span><br />  elseif Valtype<span style=\"color: #000000;\">&#40;</span> xOrderName <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"A\"</span><br />     ::<span style=\"color: #000000;\">aOrderBag</span> := xOrderName<br />     <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nOrder</span>:= aScan<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOrderBag</span>, <span style=\"color: #000000;\">&#123;</span>|arr| arr<span style=\"color: #000000;\">&#91;</span>_KEYTAG<span style=\"color: #000000;\">&#93;</span>==OrdName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span>          <span style=\"color: #B900B9;\">// Modificado por eMeGe 21/10/03</span><br />        ::<span style=\"color: #000000;\">nOrder</span>:= <span style=\"color: #000000;\">1</span><br />     end<br />     ::<span style=\"color: #000000;\">cOrderName</span> := ::<span style=\"color: #000000;\">aOrderBag</span><span style=\"color: #000000;\">&#91;</span>::<span style=\"color: #000000;\">nOrder</span>,_KEYTAG<span style=\"color: #000000;\">&#93;</span><br />  end<br /><br />  <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oSayOrder</span> != <span style=\"color: #00C800;\">NIL</span><br />    ::<span style=\"color: #000000;\">oSayOrder</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nOrder</span>==<span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">cOrderName</span>, ::<span style=\"color: #000000;\">aOrderBag</span><span style=\"color: #000000;\">&#91;</span>::<span style=\"color: #000000;\">nOrder</span>,_TXTTAG<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">endif</span><br />  DbSetOrder<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cOrderName</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">/*<br /> *  Seek()<br /> */</span><br /><span style=\"color: #00C800;\">METHOD</span> Seek<span style=\"color: #000000;\">&#40;</span> nKey, lUpper <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TSeekInc<br /><br />  <span style=\"color: #00C800;\">local</span> lOk     := .F.<br />  <span style=\"color: #00C800;\">local</span> cSeek   := ::<span style=\"color: #000000;\">cBuffer</span><br />  <span style=\"color: #00C800;\">local</span> nRecNo  := ::<span style=\"color: #000000;\">oDbf</span>:<span style=\"color: #000000;\">RecNo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">local</span> nX, nOrdAct<br />  <span style=\"color: #00C800;\">local</span> nOrdCount<br />  <span style=\"color: #00C800;\">local</span> cKey<br /><br />  <span style=\"color: #00C800;\">DEFAULT</span> lUpper  := .F.<br /><br /><br /><br />  <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span>nKey == <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">else</span><br />    <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>nKey == VK_BACK<span style=\"color: #000000;\">&#41;</span> .and. ::<span style=\"color: #000000;\">nLastKey</span> == VK_CONTROL<span style=\"color: #000000;\">&#41;</span>   .or. ;<br />        <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>nKey == VK_DELETE<span style=\"color: #000000;\">&#41;</span> .and. GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_CONTROL<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> .or. ;<br />        <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>nKey == <span style=\"color: #000000;\">127</span><span style=\"color: #000000;\">&#41;</span> .and. GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_CONTROL<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      ::<span style=\"color: #000000;\">cBuffer</span> := <span style=\"color: #ff0000;\">\"\"</span><br /><br />    elseif <span style=\"color: #000000;\">&#40;</span>nKey == VK_BACK<span style=\"color: #000000;\">&#41;</span><br />      lOk   := .T.<br />      cSeek := <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">&#40;</span> cSeek, Len<span style=\"color: #000000;\">&#40;</span>cSeek<span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">else</span>  <span style=\"color: #B900B9;\">//if nKey != 16 // SHIFT</span><br />      lOk   := .T.<br />      cKey  := iif<span style=\"color: #000000;\">&#40;</span> lUpper, Upper<span style=\"color: #000000;\">&#40;</span>Chr<span style=\"color: #000000;\">&#40;</span>nKey<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>, Chr<span style=\"color: #000000;\">&#40;</span>nKey<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> cSeek <span style=\"color: #000000;\">&#41;</span> .or. Len<span style=\"color: #000000;\">&#40;</span> cSeek <span style=\"color: #000000;\">&#41;</span> == Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cClaveAdic</span> <span style=\"color: #000000;\">&#41;</span>                       <span style=\"color: #B900B9;\">// Agregado por eMeGe 21/10/03</span><br />         cSeek:= ::<span style=\"color: #000000;\">cClaveAdic</span><br />      end<br />      cSeek += cKey<br /><br />    <span style=\"color: #00C800;\">endif</span><br /><br />    <span style=\"color: #00C800;\">if</span> !Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOrderBag</span> <span style=\"color: #000000;\">&#41;</span> .and. ::<span style=\"color: #000000;\">lFullSeek</span>                                         <span style=\"color: #B900B9;\">// Agregado por eMeGe 12/06/03</span><br /><br />       nOrdAct  := ::<span style=\"color: #000000;\">nOrder</span><br />       nOrdCount:= <span style=\"color: #000000;\">1</span><br /><br />       <span style=\"color: #00C800;\">while</span> .t.<br />         <span style=\"color: #00C800;\">if</span> !<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oDbf</span>:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span> cSeek <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">if</span> !<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oDbf</span>:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span> cSeek, .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />               ++nOrdCount<br />               ++nOrdAct<br />               <span style=\"color: #00C800;\">if</span> nOrdAct > Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOrderBag</span> <span style=\"color: #000000;\">&#41;</span><br />                  nOrdAct:= aScan<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOrderBag</span>, <span style=\"color: #000000;\">&#123;</span>|a| a<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>==.T.<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>                      <span style=\"color: #B900B9;\">// Modificado por eMeGe 21/10/03</span><br />               <span style=\"color: #00C800;\">else</span><br />                  <span style=\"color: #00C800;\">if</span> !::<span style=\"color: #000000;\">aOrderBag</span><span style=\"color: #000000;\">&#91;</span>nOrdAct,_STATUSTAG<span style=\"color: #000000;\">&#93;</span>                                  <span style=\"color: #B900B9;\">// Agregado por eMeGe 21/10/03</span><br />                     loop<br />                  end<br />               end<br />               ::<span style=\"color: #000000;\">nOrder</span>:= nOrdAct<br /><br />               DbSetOrder<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOrderBag</span><span style=\"color: #000000;\">&#91;</span>nOrdAct,_KEYTAG<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>                              <span style=\"color: #B900B9;\">// Modificado por eMeGe 21/10/03</span><br /><br />               <span style=\"color: #00C800;\">if</span> nOrdCount > Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOrderBag</span> <span style=\"color: #000000;\">&#41;</span><br />                  <span style=\"color: #B900B9;\">// DbSetOrder( ::aOrderBag[1,_KEYTAG] )                              // Agregdo por eMeGe 21/10/03</span><br />                  lOk= .f.<br />                  exit<br />               end<br />               <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oSayOrder</span> != <span style=\"color: #00C800;\">NIL</span><br />                  ::<span style=\"color: #000000;\">oSayOrder</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOrderBag</span><span style=\"color: #000000;\">&#91;</span>nOrdAct,_TXTTAG<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />               end<br />            end<br />         <span style=\"color: #00C800;\">else</span><br />            ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nColAct</span>:= ::<span style=\"color: #000000;\">nOrder</span><br />            exit<br />         end<br />       <span style=\"color: #00C800;\">enddo</span><br /><br />    <span style=\"color: #00C800;\">else</span><br /><br />       <span style=\"color: #00C800;\">if</span> !<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">oDbf</span>:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span>cSeek<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">if</span> !<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">oDbf</span>:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span>cSeek, .T.<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />           lOk := .F.<br />         <span style=\"color: #00C800;\">endif</span><br />       <span style=\"color: #00C800;\">endif</span><br /><br />    <span style=\"color: #00C800;\">endif</span><br />  <span style=\"color: #00C800;\">endif</span><br /><br />  <span style=\"color: #00C800;\">if</span> lOk<br />    ::<span style=\"color: #000000;\">cBuffer</span>:= cSeek<br />    <span style=\"color: #00C800;\">if</span> !Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cClaveAdic</span> <span style=\"color: #000000;\">&#41;</span>                                                          <span style=\"color: #B900B9;\">// Agregado por eMeGe 21/10/03</span><br />       ::<span style=\"color: #000000;\">oTextSeek</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cBuffer</span>, Len<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cClaveAdic</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">+1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">else</span><br />      ::<span style=\"color: #000000;\">oTextSeek</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cBuffer</span> <span style=\"color: #000000;\">&#41;</span><br />    end<br /><br />    <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>==<span style=\"color: #ff0000;\">\"TWBROWSE\"</span><br />      ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nRowPos</span>:= <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Min</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nLen</span>, ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nRowCount</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">else</span><br />      ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">UpStable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">endif</span><br /><br />  <span style=\"color: #00C800;\">else</span><br /><br />    <span style=\"color: #00C800;\">if</span> GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_CONTROL<span style=\"color: #000000;\">&#41;</span>                                                         <span style=\"color: #B900B9;\">// Agregado por eMeGe 21/10/03</span><br />    elseif nKey == VK_BACK                                                             <span style=\"color: #B900B9;\">// Agregado por eMeGe 18/17/06</span><br />    elseif <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>nKey == <span style=\"color: #000000;\">127</span><span style=\"color: #000000;\">&#41;</span> .and. GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_CONTROL<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">else</span><br />      Tone<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">750</span><span style=\"color: #000000;\">&#41;</span><br />      Tone<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">700</span><span style=\"color: #000000;\">&#41;</span><br />    end<br /><br />    <span style=\"color: #00C800;\">if</span> !Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cClaveAdic</span> <span style=\"color: #000000;\">&#41;</span>                                                          <span style=\"color: #B900B9;\">// Agregado por eMeGe 21/10/03</span><br />       ::<span style=\"color: #000000;\">oTextSeek</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cBuffer</span>, Len<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cClaveAdic</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">+1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">else</span><br />      ::<span style=\"color: #000000;\">oTextSeek</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cBuffer</span> <span style=\"color: #000000;\">&#41;</span><br />    end<br />    ::<span style=\"color: #000000;\">oDbf</span>:<span style=\"color: #000000;\">GoTo</span><span style=\"color: #000000;\">&#40;</span> nRecNo <span style=\"color: #000000;\">&#41;</span><br />    ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">endif</span><br /><br />  <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oSayOrder</span> != <span style=\"color: #00C800;\">NIL</span><br />    ::<span style=\"color: #000000;\">oSayOrder</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nOrder</span>==<span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">cOrderName</span>, ::<span style=\"color: #000000;\">aOrderBag</span><span style=\"color: #000000;\">&#91;</span>::<span style=\"color: #000000;\">nOrder</span>,_TXTTAG<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>    <span style=\"color: #B900B9;\">// Agregado por eMeGe 12/06/03</span><br />  <span style=\"color: #00C800;\">endif</span><br /><br />  ::<span style=\"color: #000000;\">nLastKey</span>  := nKey<br /><br /><span style=\"color: #00C800;\">RETURN</span> ::<span style=\"color: #000000;\">cBuffer</span><br /><br /><span style=\"color: #B900B9;\">/*<br /> *  ChangeOrder()<br /> */</span><br /><span style=\"color: #00C800;\">METHOD</span> ChangeOrder<span style=\"color: #000000;\">&#40;</span> cOrderName <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TSeekInc<br /><br />  <span style=\"color: #00C800;\">DEFAULT</span> cOrderName := OrdSetFocus<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  ::<span style=\"color: #000000;\">cOrderName</span>  := cOrderName<br />  ::<span style=\"color: #000000;\">cBuffer</span>     := <span style=\"color: #ff0000;\">\"\"</span><br /><br />  <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oSayOrder</span> != <span style=\"color: #00C800;\">NIL</span><br />    ::<span style=\"color: #000000;\">oSayOrder</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cOrderName</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">endif</span><br /><br />  ::<span style=\"color: #000000;\">oTextSeek</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cBuffer</span> <span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>==<span style=\"color: #ff0000;\">\"TWBROWSE\"</span><br />    ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">else</span><br />    ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span>.F.<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;\">Self</span><br /><br /><span style=\"color: #B900B9;\">// ------------------------------------------------------------------ \\\\</span><br /><span style=\"color: #B900B9;\">//   MsgBar de búsqueda</span><br /><span style=\"color: #B900B9;\">//   (c) by ChecaNet</span><br /><span style=\"color: #00C800;\">METHOD</span> UpBuffMsgBar<span style=\"color: #000000;\">&#40;</span> oMsgBar, cBuffer, nClrBackFocus <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TSeekInc<br /><span style=\"color: #00C800;\">local</span> nClrText:= oMsgBar:<span style=\"color: #000000;\">nClrText</span><br /><span style=\"color: #00C800;\">local</span> cMsg<br /><br />   <span style=\"color: #00C800;\">DEFAULT</span> nClrBackfocus:= CLR_BLACK<br /><br />   <span style=\"color: #00C800;\">if</span> Len<span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />      cMsg:= <span style=\"color: #ff0000;\">\"Buscando: \"</span> + cBuffer<br />      oMsgBar:<span style=\"color: #000000;\">nClrText</span>:= nClrBackFocus<br />   <span style=\"color: #00C800;\">else</span><br />      cMsg:= oMsgBar:<span style=\"color: #000000;\">cMsgDef</span><br />   <span style=\"color: #00C800;\">endif</span><br />   oMsgBar:<span style=\"color: #000000;\">SetMsg</span><span style=\"color: #000000;\">&#40;</span> PadR<span style=\"color: #000000;\">&#40;</span> cMsg,<span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   oMsgBar:<span style=\"color: #000000;\">nClrText</span>:= nClrText<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 /><span style=\"color: #B900B9;\">// Fin</span><br /> </div>[/code:9utw4cyh]", "time": "13:37", "topic": "Búsqueda en browse con simbolicos raros", "username": "MarioG" } ]
Búsqueda en browse con simbolicos raros
[ { "date": "2014-06-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola chicos, perdonad la tardanza, no he tenido tiempo de sentarme a probar lo que me habéis sugerido. Al final he probado el ejemplo de cmsoft. Me está costando mucho hacer el cambio, pues la generación del listbox lo tenía dentro de un superanidamiento de if else if else if else if ...... hasta el infinito y más allá!!! para mostrar distintos tipos de listbox según la configuración personal de cada cliente, si lo quieren ordenador por fecha, por cliente, por importe, ... según el tipo de licencia que han comprado del programa, según el tipo de columnas que quiero que aparezcan ... pero bueno, lo tengo ya casi listo y hace lo que necesito y mil cosas más. Además el aspecto es mucho más moderno. Gracias. Si me sale alguna cosa nueva con el xbrowse os preguntaré. Un saludo.", "time": "00:57", "topic": "Búsqueda en browse con simbolicos raros", "username": "informaticaeloy" } ]
Búsqueda en browse con simbolicos raros
[ { "date": "2014-06-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Acá estamos... desde siempre <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "02:09", "topic": "Búsqueda en browse con simbolicos raros", "username": "MarioG" } ]
Búsqueda en browse con simbolicos raros
[ { "date": "2008-08-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola:\r\n\r\nPretendo lanzar una búsqueda de un valor en todos los campos de las bases de datos que se indiquen y mostrar los registros que coincidan.\r\n\r\nPor ejemplo, buscar la cadena AAA en todos los campos tipo Caracter de las bases de datos indicadas (o todas las bases de datos abiertas)\r\n\r\nCreo que había un ejemplo pero no lo he podido encontrar. ¿Me podéis indicar cuál es?.\r\n\r\nMuchas gracias.", "time": "12:39", "topic": "Búsqueda en todos los campos y en todas las bases de datos", "username": "MOISES" } ]
Búsqueda en todos los campos y en todas las bases de datos
[ { "date": "2008-08-17", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"MOISES\":1d6ndyve]Hola:\n\nPretendo lanzar una búsqueda de un valor en todos los campos de las bases de datos que se indiquen y mostrar los registros que coincidan.\n\nPor ejemplo, buscar la cadena AAA en todos los campos tipo Caracter de las bases de datos indicadas (o todas las bases de datos abiertas)\n\nCreo que había un ejemplo pero no lo he podido encontrar. ¿Me podéis indicar cuál es?.\n\nMuchas gracias.[/quote:1d6ndyve]\r\n\r\nMoisés: Utiliza Buscar e introduce la palabra \"busqueda\". Ahí puedes encontrar la información que necesitas. (Busqueda de unos caracteres)\r\n\r\nSaludos", "time": "16:27", "topic": "Búsqueda en todos los campos y en todas las bases de datos", "username": "FranciscoA" } ]
Búsqueda en todos los campos y en todas las bases de datos
[ { "date": "2008-08-18", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"MOISES\":1ioj2lpb]Hola:\n\nPretendo lanzar una búsqueda de un valor en todos los campos de las bases de datos que se indiquen y mostrar los registros que coincidan.\n\nPor ejemplo, buscar la cadena AAA en todos los campos tipo Caracter de las bases de datos indicadas (o todas las bases de datos abiertas)\n\nCreo que había un ejemplo pero no lo he podido encontrar. ¿Me podéis indicar cuál es?.\n\nMuchas gracias.[/quote:1ioj2lpb]\r\n\r\n\r\nMoisés:\r\nRecién he posteado un ejemplo. Mira si te es útil. \r\nSaludos.\r\n\r\nFrancisco J. Alegría P.", "time": "02:04", "topic": "Búsqueda en todos los campos y en todas las bases de datos", "username": "FranciscoA" } ]
Búsqueda en todos los campos y en todas las bases de datos
[ { "date": "2014-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Colegas, necesito hacer una búsqueda en un tree y no tengo idea como empezar. He buscado en el foro pero no encontré nada. Alguien tiene idea ? Muchísimas gracias.\n\nSaludos", "time": "14:10", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "horacio" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "A ver si te sirve de algo\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27195&hilit=otree#p151079\">viewtopic.php?f=3&t=27195&hilit=otree#p151079</a><!-- l -->", "time": "23:27", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "cnavarro" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-30", "forum": "FiveWin para Harbour/xHarbour", "text": "oBrw:oTree:Find( cSeek )", "time": "13:00", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "nageswaragunupudi" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Rao, thanks for your reply, I tried your suggestion but does not work. Remains to be something else ?\n\nSaludos", "time": "15:22", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "horacio" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Horacio,\n\nQue buscas en el Tree ? Un texto ?", "time": "17:22", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "Antonio Linares" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio, así es. Es un tree sección -> curso -> alumnos. Alguna idea por donde empezar ? Muchas gracias\n\nSaludos", "time": "20:31", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "horacio" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-30", "forum": "FiveWin para Harbour/xHarbour", "text": "If you can provide a small sample program we can compile and build at our end and explain what you want to seek/find, we shall help you with suitable solution.", "time": "23:49", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "nageswaragunupudi" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Horacio,\n\nPrecisamente necesito esa funcionalidad para las mejoras que estoy haciendo en FWH\\samples\\fivedit.prg (antes sciedit.prg)\n\nPor lo que hoy mismo implementaré un nuevo método que te permitirá hacer eso exactamente <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nTan pronto lo tenga listo lo publico aqui <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "09:03", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "Antonio Linares" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Horacio,\n\nTienes que añadir este nuevo método a la Clase TTreeView:\n\n[code=fw:3lgdsfl0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> Scan<span style=\"color: #000000;\">&#40;</span> bAction <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TTreeView<br /><br /><span style=\"color: #00C800;\">return</span> ScanItemsBlock<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aItems</span>, bAction <span style=\"color: #000000;\">&#41;</span></div>[/code:3lgdsfl0]\n\n[code=fw:3lgdsfl0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> ScanItemsBlock<span style=\"color: #000000;\">&#40;</span> aItems, bAction <span style=\"color: #000000;\">&#41;</span> <br /><br />   <span style=\"color: #00C800;\">local</span> oItem, n := <span style=\"color: #000000;\">1</span>, nResult := <span style=\"color: #000000;\">0</span><br /><br />   <span style=\"color: #00C800;\">while</span> n <= Len<span style=\"color: #000000;\">&#40;</span> aItems <span style=\"color: #000000;\">&#41;</span> .and. nResult == <span style=\"color: #000000;\">0</span><br />      oItem = aItems<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><br />      <span style=\"color: #00C800;\">if</span> Eval<span style=\"color: #000000;\">&#40;</span> bAction, oItem <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">return</span> n<br />      <span style=\"color: #00C800;\">else</span><br />         <span style=\"color: #00C800;\">if</span> Len<span style=\"color: #000000;\">&#40;</span> oItem:<span style=\"color: #000000;\">aItems</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />            nResult = ScanItemsBlock<span style=\"color: #000000;\">&#40;</span> oItem:<span style=\"color: #000000;\">aItems</span>, bAction <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">endif</span>      <br />      <span style=\"color: #00C800;\">endif</span><br />      n++<br />   end      <br /><br /><span style=\"color: #00C800;\">return</span> nResult</div>[/code:3lgdsfl0]\n\nLa forma de usarlo es así:\n[code=fw:3lgdsfl0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> oTree:<span style=\"color: #000000;\">Scan</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o | cText $ o:<span style=\"color: #000000;\">cPrompt</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:3lgdsfl0]\n\nEl método Scan( bAction ) evalua bAction con cada uno de los items del árbol hasta que se devuelva un valor distinto de cero.\n\nEn realidad se puede usar cualquier codeblock que devuelva distinto de cero. Similar a como funciona la función AScan() de Clipper/Harbour <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "12:42", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "Antonio Linares" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Esta es una versión mejorada que devuelve el item del TreeView, lo cual nos dá más posibilidades de acción y lo hace más práctico:\n\n[code=fw:ptuztffk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> Scan<span style=\"color: #000000;\">&#40;</span> bAction <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TTreeView<br /><br /><span style=\"color: #00C800;\">return</span> ScanItemsBlock<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aItems</span>, bAction <span style=\"color: #000000;\">&#41;</span></div>[/code:ptuztffk]\n\n[code=fw:ptuztffk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> ScanItemsBlock<span style=\"color: #000000;\">&#40;</span> aItems, bAction <span style=\"color: #000000;\">&#41;</span> <br /><br />   <span style=\"color: #00C800;\">local</span> oItem, n := <span style=\"color: #000000;\">1</span>, oItemFound<br /><br />   <span style=\"color: #00C800;\">while</span> n <= Len<span style=\"color: #000000;\">&#40;</span> aItems <span style=\"color: #000000;\">&#41;</span> .and. oItemFound == <span style=\"color: #00C800;\">nil</span><br />      oItem = aItems<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><br />      <span style=\"color: #00C800;\">if</span> Eval<span style=\"color: #000000;\">&#40;</span> bAction, oItem <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">return</span> oItem<br />      <span style=\"color: #00C800;\">else</span><br />         <span style=\"color: #00C800;\">if</span> Len<span style=\"color: #000000;\">&#40;</span> oItem:<span style=\"color: #000000;\">aItems</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />            oItemFound = ScanItemsBlock<span style=\"color: #000000;\">&#40;</span> oItem:<span style=\"color: #000000;\">aItems</span>, bAction <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">endif</span>      <br />      <span style=\"color: #00C800;\">endif</span><br />      n++<br />   end      <br /><br /><span style=\"color: #00C800;\">return</span> oItemFound</div>[/code:ptuztffk]\n\nEste sería el ejemplo de uso:\n[code=fw:ptuztffk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> SearchTextInTree<span style=\"color: #000000;\">&#40;</span> oTreeView, cText <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oItem := oTreeView:<span style=\"color: #000000;\">Scan</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o | cText $ o:<span style=\"color: #000000;\">cPrompt</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   <span style=\"color: #00C800;\">if</span> oItem != <span style=\"color: #00C800;\">nil</span><br />      <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> oItem:<span style=\"color: #000000;\">cPrompt</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></div>[/code:ptuztffk]", "time": "12:51", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "Antonio Linares" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2014-12-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Acabo de fijarme que la pregunta era relativa a un árbol montado en un browse, sorry <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEl método que he publicado es para un control TTreeView <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "13:20", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "Antonio Linares" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2015-01-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Rao, Aquí el código donde debería implementar una búsqueda por nombre. \n\n[code=fw:1oup1w2p]<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;\">'xbrowse.ch'</span><br /><span style=\"color: #00C800;\">Static</span> oWnd<br /><span style=\"color: #00C800;\">Static</span> oTree<br /><span style=\"color: #00C800;\">Static</span> aCursos<br /><span style=\"color: #00C800;\">Static</span> aAlumnos<br /><span style=\"color: #00C800;\">Static</span> aSecciones<br /><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    DefineEntorno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    BuscaLosAlumnos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <br />    <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Window</span> oWnd <span style=\"color: #0000ff;\">MDI</span><br />    <span style=\"color: #0000ff;\">Activate</span> <span style=\"color: #0000ff;\">Window</span> oWnd <span style=\"color: #0000ff;\">Maximized</span> <span style=\"color: #0000ff;\">On</span> <span style=\"color: #0000ff;\">Init</span> TablaAlumnos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> TablaAlumnos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">Local</span> i<br />    <span style=\"color: #00C800;\">Local</span> oFont1    <br />    <span style=\"color: #00C800;\">Local</span> oFont2    <br />    <span style=\"color: #00C800;\">Local</span> oFont3    <br />    <span style=\"color: #00C800;\">Local</span> oFont4    <br />    <span style=\"color: #00C800;\">Local</span> oBrwCargaA<br />    <span style=\"color: #00C800;\">Local</span> oWndAlumnos<br />    <br />    <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFont1 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Segoe UI Light\"</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-12</span> Bold<br />    <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFont2 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Segoe UI Light\"</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-12</span> <br />    <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFont3 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Segoe UI\"</span>       <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span> <br />    <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFont4 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Segoe UI\"</span>       <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span> Bold<br /><br />    <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Window</span> oWndAlumnos <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">Of</span> oWnd No Caption Border None <span style=\"color: #0000ff;\">Color</span> <span style=\"color: #000000;\">0</span>, CLR_WHITE        <br />        <br />        @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">xBrowse</span> oBrwCargaA <span style=\"color: #0000ff;\">Of</span> oWndAlumnos <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">470</span> Noborder<br />    oBrwCargaA : <span style=\"color: #000000;\">SetTree</span><span style=\"color: #000000;\">&#40;</span> oTree, <span style=\"color: #000000;\">&#123;</span> FWRArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, FWDArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"punto3\"</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />        With Object oBrwCargaA<br />            <span style=\"color: #00C800;\">For</span> i := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">&#40;</span> :<span style=\"color: #000000;\">aCols</span> <span style=\"color: #000000;\">&#41;</span><br />                <span style=\"color: #00C800;\">Switch</span> i<br />                    <span style=\"color: #00C800;\">Case</span> <span style=\"color: #000000;\">1</span><br />                        :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> : <span style=\"color: #000000;\">oDataFont</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oBrwCargaA : <span style=\"color: #000000;\">oTreeItem</span> : <span style=\"color: #000000;\">nLevel</span> == <span style=\"color: #000000;\">1</span>, oFont4, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oBrwCargaA : <span style=\"color: #000000;\">oTreeItem</span> : <span style=\"color: #000000;\">nLevel</span> == <span style=\"color: #000000;\">2</span>, oFont1, oFont2 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />                        :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> : <span style=\"color: #000000;\">cHeader</span>   := <span style=\"color: #ff0000;\">'ALUMNOS'</span><br />                        Exit<br />                EndSwitch<br />                :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> : <span style=\"color: #000000;\">oHeaderFont</span> := oFont1<br />            <span style=\"color: #00C800;\">Next</span> i          <br />            :<span style=\"color: #000000;\">bClrHeader</span>         := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, CLR_WHITE  <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />            :<span style=\"color: #000000;\">nRowHeight</span>       := <span style=\"color: #000000;\">27</span><br />            :<span style=\"color: #000000;\">nHeaderHeight</span>    := <span style=\"color: #000000;\">35</span><br />            :<span style=\"color: #000000;\">nColDividerStyle</span> := <span style=\"color: #000000;\">1</span><br />            :<span style=\"color: #000000;\">nRowDividerStyle</span> := <span style=\"color: #000000;\">1</span><br />            :<span style=\"color: #000000;\">nColorPen</span>        := nRgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">225</span> <span style=\"color: #000000;\">&#41;</span><br />            :<span style=\"color: #000000;\">nMarqueeStyle</span>    := <span style=\"color: #000000;\">3</span><br />            :<span style=\"color: #000000;\">nRecSelColor</span>     := CLR_WHITE<br />            :<span style=\"color: #000000;\">lFlatStyle</span>       := .t.<br />            :<span style=\"color: #000000;\">bClrSel</span>          := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />            :<span style=\"color: #000000;\">bClrSelFocus</span>     := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_WHITE, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">43</span>, <span style=\"color: #000000;\">87</span>, <span style=\"color: #000000;\">154</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />            :<span style=\"color: #000000;\">lFlatStyle</span>       := .t.<br />            :<span style=\"color: #000000;\">l2007</span>            := .f.<br />            :<span style=\"color: #000000;\">lKinetic</span>         := .f.<br />            :<span style=\"color: #000000;\">lAllowRowSizing</span>  := .f.<br />            :<span style=\"color: #000000;\">lHScroll</span>         := .f.<br />            :<span style=\"color: #000000;\">nStretchCol</span>      := STRETCHCOL_LAST<br />            :<span style=\"color: #000000;\">lColDividerComplete</span> := .t.<br />            :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        EndWith<br />        <br />    <span style=\"color: #0000ff;\">Activate</span> <span style=\"color: #0000ff;\">Window</span> oWndAlumnos <span style=\"color: #0000ff;\">Maximized</span> <span style=\"color: #0000ff;\">On</span> <span style=\"color: #0000ff;\">Init</span> oBrwCargaA : <span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">Valid</span><span style=\"color: #000000;\">&#40;</span> oFont1 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFont2 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFont3 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFont4 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span>    <br /><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> DefineEntorno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    Set Epoch <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">1950</span><br />    Set Date  <span style=\"color: #0000ff;\">To</span> British<br />    Set Delete   <span style=\"color: #0000ff;\">On</span><br />    Set Autopen  Off<br />    Set Softseek <span style=\"color: #0000ff;\">On</span><br />    Set Century  <span style=\"color: #0000ff;\">On</span><br />    Set Confirm  <span style=\"color: #0000ff;\">On</span><br />    Set Decimals <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">2</span><br />    Set Fixed Off<br />    Set Exact <span style=\"color: #0000ff;\">on</span><br />    Set<span style=\"color: #000000;\">&#40;</span> _SET_INSERT, !Set<span style=\"color: #000000;\">&#40;</span> _SET_INSERT <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    SetGetColorFocus<span style=\"color: #000000;\">&#40;</span> nRgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">235</span>, <span style=\"color: #000000;\">245</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    Request HB_LANG_ES<br />    Hb_LangSelect<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ES\"</span><span style=\"color: #000000;\">&#41;</span><br />    SetHandleCount<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#41;</span><br />    Request DBFCDX<br />    RddSetDefault<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #000000;\">&#41;</span><br />    Request HB_CODEPAGE_ESWIN<br />    Set<span style=\"color: #000000;\">&#40;</span> _SET_CODEPAGE, <span style=\"color: #ff0000;\">\"ESWIN\"</span> <span style=\"color: #000000;\">&#41;</span><br />    XbrNumFormat<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"E\"</span>, .t. <span style=\"color: #000000;\">&#41;</span><br />    SetBalloon<span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span><br />    SetCenterOnParent<span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span><br />    aDatos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> BuscaLosAlumnos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">Local</span> i<br />    <span style=\"color: #00C800;\">Local</span> q<br />    <span style=\"color: #00C800;\">Local</span> nFor<br />    <span style=\"color: #00C800;\">Local</span> aDatos<br />    <br />    aCursos    := ASort<span style=\"color: #000000;\">&#40;</span> aCursos,,, <span style=\"color: #000000;\">&#123;</span> | x, y | x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />    aSecciones := ASort<span style=\"color: #000000;\">&#40;</span> aSecciones,,, <span style=\"color: #000000;\">&#123;</span> | x, y | x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />    <br />    Tree oTree<br />        <span style=\"color: #00C800;\">For</span> i := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">&#40;</span> aSecciones <span style=\"color: #000000;\">&#41;</span> <br />            _TreeItem<span style=\"color: #000000;\">&#40;</span> aSecciones<span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> : <span style=\"color: #000000;\">Cargo</span> := <span style=\"color: #000000;\">&#123;</span> aSecciones<span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span>       <br />            Tree<br />                <span style=\"color: #00C800;\">For</span> q := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">&#40;</span> aCursos <span style=\"color: #000000;\">&#41;</span><br />                    aDatos := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />                    AEval<span style=\"color: #000000;\">&#40;</span> aAlumnos, <span style=\"color: #000000;\">&#123;</span> | x | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> == aCursos<span style=\"color: #000000;\">&#91;</span> q <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> .and. x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> == aSecciones<span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, Aadd<span style=\"color: #000000;\">&#40;</span> aDatos, <span style=\"color: #000000;\">&#123;</span> x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>, x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</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><br />                    <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> !Empty<span style=\"color: #000000;\">&#40;</span> aDatos <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />                        _TreeItem<span style=\"color: #000000;\">&#40;</span> aCursos<span style=\"color: #000000;\">&#91;</span> q <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> : <span style=\"color: #000000;\">Cargo</span> := <span style=\"color: #000000;\">&#123;</span> aSecciones<span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, aCursos<span style=\"color: #000000;\">&#91;</span> q <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span>                            <br />                        Tree<br />                            <span style=\"color: #00C800;\">For</span> nFor := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">&#40;</span> aDatos <span style=\"color: #000000;\">&#41;</span><br />                                _TreeItem<span style=\"color: #000000;\">&#40;</span> aDatos<span style=\"color: #000000;\">&#91;</span> nFor <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> : <span style=\"color: #000000;\">Cargo</span> := <span style=\"color: #000000;\">&#123;</span> aSecciones<span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, aCursos<span style=\"color: #000000;\">&#91;</span> q <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, aDatos<span style=\"color: #000000;\">&#91;</span> nFor <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span><br />                            <span style=\"color: #00C800;\">Next</span> nFor<br />                        EndTree<br />                    End<br />                <span style=\"color: #00C800;\">Next</span> q<br />            EndTree<br />        <span style=\"color: #00C800;\">Next</span> i<br />    Endtree<br />    oTree : <span style=\"color: #000000;\">Expand</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />    <span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span>    <br />    <br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> aDatos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    aCursos := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"SALA VERDE - PRE JARDIN\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"SALA AMARILLA - 2 AÑOS\"</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #ff0000;\">\"SALA AZUL - 3 AÑOS\"</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>, <span style=\"color: #ff0000;\">\"SALA ROJA - 4 AÑOS\"</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>, <span style=\"color: #ff0000;\">\"SALA NARANJA - 5 AÑOS\"</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#125;</span>,; <br />               <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">6</span>, <span style=\"color: #ff0000;\">\"2 AÑOS 2015\"</span>, <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                 <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">7</span>, <span style=\"color: #ff0000;\">\"3 AÑOS 2015\"</span>, <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"4 AÑOS 2015\"</span>, <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                 <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"5 AÑOS 2015\"</span>, <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #ff0000;\">\"PRE JARDIN 2015\"</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                 <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #ff0000;\">\"DEUDORES\"</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <br />                 <br />    aSecciones := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">'MAÑANA'</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />    <br /><br />    aAlumnos := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"ABADI EMA OLIVIA\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"ABADI HLADILO MARGARITA\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #ff0000;\">\"ALBORES JUANA\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>, <span style=\"color: #ff0000;\">\"ALIJO LUPKIN, PEDRO\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>, <span style=\"color: #ff0000;\">\"ALVAREZ CASADO, HELENA\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">6</span>, <span style=\"color: #ff0000;\">\"ASTORI, CAMILA\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">7</span>, <span style=\"color: #ff0000;\">\"AUGUSTOWSKI MORENA\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"AUGUSTOWSKI, LUCAS\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"AYALA TORALES, BENJAMIN\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #ff0000;\">\"BARCELO, JOSE\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #ff0000;\">\"BARDAUIL ASTOR\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">12</span>, <span style=\"color: #ff0000;\">\"BIANCHI SELZER ULISES\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">13</span>, <span style=\"color: #ff0000;\">\"BIANCHI SELZER, LISA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">14</span>, <span style=\"color: #ff0000;\">\"BLANCO LIMERES CHARO\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">15</span>, <span style=\"color: #ff0000;\">\"BONDA CAMILO\"</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">16</span>, <span style=\"color: #ff0000;\">\"BONDA MARGARITA\"</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">17</span>, <span style=\"color: #ff0000;\">\"BORZESE JULIA\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">18</span>, <span style=\"color: #ff0000;\">\"BORZESE, LOLA\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">19</span>, <span style=\"color: #ff0000;\">\"BUNGE MANUEL\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #ff0000;\">\"BURITICA BRUNO\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">21</span>, <span style=\"color: #ff0000;\">\"CABRERA PEPER FRANCISCO\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">22</span>, <span style=\"color: #ff0000;\">\"CALURA CELESTE\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">23</span>, <span style=\"color: #ff0000;\">\"CALVO TORTI CAMILA\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">24</span>, <span style=\"color: #ff0000;\">\"CAO SALVADOR\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #ff0000;\">\"CAPRIGLIONE CATALINA\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">26</span>, <span style=\"color: #ff0000;\">\"CARNOTA, AMANDA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">27</span>, <span style=\"color: #ff0000;\">\"CARRIERI, FACUNDO\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">28</span>, <span style=\"color: #ff0000;\">\"CUADROS SANTINO\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">29</span>, <span style=\"color: #ff0000;\">\"CUNDARI CARLI LOLA\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #ff0000;\">\"DAICH OLIVIA\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">31</span>, <span style=\"color: #ff0000;\">\"DEL AMO FARBER, LUCIA\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">32</span>, <span style=\"color: #ff0000;\">\"DESIMONE PACO\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">33</span>, <span style=\"color: #ff0000;\">\"DUBOURG, JOAQUIN\"</span>, <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">34</span>, <span style=\"color: #ff0000;\">\"ESTEVEZ, MILO\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">35</span>, <span style=\"color: #ff0000;\">\"ETCHEVERRY FELIPE\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">36</span>, <span style=\"color: #ff0000;\">\"FACCHINI FELIPE\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">37</span>, <span style=\"color: #ff0000;\">\"FAIG BRUNA\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">38</span>, <span style=\"color: #ff0000;\">\"FAIG, RENZO\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">39</span>, <span style=\"color: #ff0000;\">\"FERRAZ VAZQUEZ BRUNO\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #ff0000;\">\"FERRAZ VAZQUEZ VALENTIN\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">41</span>, <span style=\"color: #ff0000;\">\"FILEVICH IRENE\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">42</span>, <span style=\"color: #ff0000;\">\"GASCON, VIOLETA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">43</span>, <span style=\"color: #ff0000;\">\"GELLON MAXON, MILA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">44</span>, <span style=\"color: #ff0000;\">\"GOMEZ FESTA, JAZMIN SOL\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">45</span>, <span style=\"color: #ff0000;\">\"GOMEZ FESTA, JUAN MARTIN\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">46</span>, <span style=\"color: #ff0000;\">\"GONZALEZ FERREYRA, AGUSTINA\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">47</span>, <span style=\"color: #ff0000;\">\"GRIBNICOW MARC\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">48</span>, <span style=\"color: #ff0000;\">\"GRIBNICOW, LISA\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">49</span>, <span style=\"color: #ff0000;\">\"HERZOG VERA\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #ff0000;\">\"HITZIG, TANIA\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">51</span>, <span style=\"color: #ff0000;\">\"HUBERMAN, BENJAMIN\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">52</span>, <span style=\"color: #ff0000;\">\"HUERTA, CATALINA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">53</span>, <span style=\"color: #ff0000;\">\"IANNI ZAHIR NICOLAS\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">54</span>, <span style=\"color: #ff0000;\">\"ISHII, HANNA\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">55</span>, <span style=\"color: #ff0000;\">\"ISKIN JOAQUIN\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">56</span>, <span style=\"color: #ff0000;\">\"JUVE, LAUTARO\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">57</span>, <span style=\"color: #ff0000;\">\"LAGATTA, FEDERICA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">58</span>, <span style=\"color: #ff0000;\">\"LAURITO, ERNESTINA\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">59</span>, <span style=\"color: #ff0000;\">\"LEMESOFF SANTIAGO\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #ff0000;\">\"LEMESOFF, SOL\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">61</span>, <span style=\"color: #ff0000;\">\"LISOTTO EMILIA\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">62</span>, <span style=\"color: #ff0000;\">\"LOPEZ MORETTI MAXIMO\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">63</span>, <span style=\"color: #ff0000;\">\"MANDARANO MIGUEL\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">64</span>, <span style=\"color: #ff0000;\">\"MAROTTA ARBISER, VICENTE\"</span>, <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">65</span>, <span style=\"color: #ff0000;\">\"MAROTTA MOSEINCO, INES\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">66</span>, <span style=\"color: #ff0000;\">\"MARQUIS, LISA\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">67</span>, <span style=\"color: #ff0000;\">\"MATEOS SAMPIERI ROCIO\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">68</span>, <span style=\"color: #ff0000;\">\"MATTIOLI, FRIDA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">69</span>, <span style=\"color: #ff0000;\">\"MENDEZ, JULIETA MICAELA\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #ff0000;\">\"MENENDEZ EMILIA\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">71</span>, <span style=\"color: #ff0000;\">\"MURTA CATALINA\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">72</span>, <span style=\"color: #ff0000;\">\"NOBILI CLARA\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">73</span>, <span style=\"color: #ff0000;\">\"NOBLIA, LUCIO\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">74</span>, <span style=\"color: #ff0000;\">\"PAZ BUNGE LUCIO\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">75</span>, <span style=\"color: #ff0000;\">\"PAZ BUNGE SERENA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">76</span>, <span style=\"color: #ff0000;\">\"PELISCH  LUCIO\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">77</span>, <span style=\"color: #ff0000;\">\"PICHARDO PAQUETTE, MATEO\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">78</span>, <span style=\"color: #ff0000;\">\"PISOTTI, OLIVIA ISABEL\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">79</span>, <span style=\"color: #ff0000;\">\"PONTURA, AMELIA\"</span>, <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #ff0000;\">\"PORTAS MARTINIANO\"</span>, <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">81</span>, <span style=\"color: #ff0000;\">\"PROSDOCIMI JUAN\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">82</span>, <span style=\"color: #ff0000;\">\"PROSDOCIMI, MATEO\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">83</span>, <span style=\"color: #ff0000;\">\"RAVAZZOLA SIGAL, JULIA\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">84</span>, <span style=\"color: #ff0000;\">\"REBOREDO, LUCAS\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">85</span>, <span style=\"color: #ff0000;\">\"RESTAINO, LUCAS\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">86</span>, <span style=\"color: #ff0000;\">\"REY INTI MATEO\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">87</span>, <span style=\"color: #ff0000;\">\"ROBBIO, TOMAS\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">88</span>, <span style=\"color: #ff0000;\">\"SAFAR SANTIAGO\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">89</span>, <span style=\"color: #ff0000;\">\"SAFARIAN DANTE JOSE\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">90</span>, <span style=\"color: #ff0000;\">\"SAFARIAN INES ESTHER\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">91</span>, <span style=\"color: #ff0000;\">\"SANTAMARINA LUCIO\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">92</span>, <span style=\"color: #ff0000;\">\"SASSON TULIO\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">93</span>, <span style=\"color: #ff0000;\">\"SCALA CARMELA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">94</span>, <span style=\"color: #ff0000;\">\"SCALA FRANCO\"</span>, <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">95</span>, <span style=\"color: #ff0000;\">\"SCHUFER, IARA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">96</span>, <span style=\"color: #ff0000;\">\"SIRI, MAXIMO\"</span>, <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">97</span>, <span style=\"color: #ff0000;\">\"SUAREZ RODRIGUEZ CATALINA\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">98</span>, <span style=\"color: #ff0000;\">\"TAGLIAFICO, BARBIERI SIMON\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">99</span>, <span style=\"color: #ff0000;\">\"TAMARIT ISABELLA\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"TCHIRA RAFAEL\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">101</span>, <span style=\"color: #ff0000;\">\"TORRELLA CASARES FIDEL\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">102</span>, <span style=\"color: #ff0000;\">\"TSARIKTSIAN CLARA\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #ff0000;\">\"TSARIKTSIAN, FRANCO AGOP\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">104</span>, <span style=\"color: #ff0000;\">\"URBANCIC PAOLINI CIRO\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">105</span>, <span style=\"color: #ff0000;\">\"VAZQUEZ PETERS, LARA\"</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">106</span>, <span style=\"color: #ff0000;\">\"VAZQUEZ, GUADALUPE LUCIA\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">107</span>, <span style=\"color: #ff0000;\">\"VILLA GARCIA LLOSA AGUSTINA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">108</span>, <span style=\"color: #ff0000;\">\"WEINTRAUB JULIETA\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">109</span>, <span style=\"color: #ff0000;\">\"WICHTER CAMILO\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                     <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">110</span>, <span style=\"color: #ff0000;\">\"WIRTH, PEDRO\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">111</span>, <span style=\"color: #ff0000;\">\"WOLKOWICZ, TEO\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">112</span>, <span style=\"color: #ff0000;\">\"YOHAI OLIVER\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">113</span>, <span style=\"color: #ff0000;\">\"YOHAI SARA LUCIA\"</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">114</span>, <span style=\"color: #ff0000;\">\"ZAHIR THOMAS\"</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">115</span>, <span style=\"color: #ff0000;\">\"ZUBIRI MAYRA SOL\"</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span>,; <br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">117</span>, <span style=\"color: #ff0000;\">\"DELLACASA ANDRES\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>   <br />    <span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span>                  <br /> </div>[/code:1oup1w2p]\n\nGracias por su atención\n\nSaludos", "time": "14:28", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "horacio" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2015-01-03", "forum": "FiveWin para Harbour/xHarbour", "text": "I modify these lines in your program\n[code=fw:2kbo6nr3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp;<span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Window</span> oWndAlumnos <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">Of</span> oWnd No Caption Border None <span style=\"color: #0000ff;\">Color</span> <span style=\"color: #000000;\">0</span>, CLR_WHITE &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">xBrowse</span> oBrwCargaA <span style=\"color: #0000ff;\">Of</span> oWndAlumnos <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">470</span> Noborder<br />&nbsp;</div>[/code:2kbo6nr3]\nlike this:\n[code=fw:2kbo6nr3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp;<span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Window</span> oWndAlumnos <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">Of</span> oWnd No Caption Border None <span style=\"color: #0000ff;\">Color</span> <span style=\"color: #000000;\">0</span>, CLR_WHITE<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oWndAlumnos:<span style=\"color: #000000;\">oBar</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">2007</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oWndAlumnos:<span style=\"color: #000000;\">oBar</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Find\"</span> <span style=\"color: #0000ff;\">ACTION</span> FindInTree<span style=\"color: #000000;\">&#40;</span> oBrwCargaA <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWndAlumnos <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">2007</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ oWndAlumnos:<span style=\"color: #000000;\">oBar</span>:<span style=\"color: #000000;\">nHeight</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">xBrowse</span> oBrwCargaA <span style=\"color: #0000ff;\">Of</span> oWndAlumnos <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">300</span>, -oWndAlumnos:<span style=\"color: #000000;\">oMsgBar</span>:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #0000ff;\">PIXEL</span> Noborder<br />&nbsp;</div>[/code:2kbo6nr3]\n\nAt the end of the program I added this function\n[code=fw:2kbo6nr3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> FindInTree<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cFind &nbsp; &nbsp;:= Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oFound<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ! MsgGet<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Enter Search\"</span>, <span style=\"color: #ff0000;\">\"FIND\"</span>, @cFind <span style=\"color: #000000;\">&#41;</span> .or. Empty<span style=\"color: #000000;\">&#40;</span> cFind <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;cFind &nbsp; &nbsp;:= Upper<span style=\"color: #000000;\">&#40;</span> AllTrim<span style=\"color: #000000;\">&#40;</span> cFind <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oFound &nbsp; := oBrw:<span style=\"color: #000000;\">oTree</span>:<span style=\"color: #000000;\">Find</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> |o| cFind $ o:<span style=\"color: #000000;\">cPrompt</span> <span style=\"color: #000000;\">&#125;</span>, .t. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oFound == <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Not Found\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">oTreeItem</span> &nbsp; &nbsp;:= oFound<br />&nbsp; &nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">nRowSel</span> &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">50</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2kbo6nr3]\nPlease try clicking on the button \"Find\" in the buttonbar", "time": "17:36", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "nageswaragunupudi" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2015-01-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Thank you very much Rao, worked perfect.\n\nregards", "time": "18:03", "topic": "Búsqueda en un tree montado en un xBrowse", "username": "horacio" } ]
Búsqueda en un tree montado en un xBrowse
[ { "date": "2016-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos\n\nAl hacer una búsqueda incremental en xBrowse usando GET no hace caso al PICTURE\n[code=fw:108kpxld]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />@<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">41</span> <span style=\"color: #0000ff;\">GET</span> oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">VAR</span> oBrw:<span style=\"color: #000000;\">cSeek</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">8</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span> <span style=\"color: #0000ff;\">UPDATE</span> READONLY <br />&nbsp;</div>[/code:108kpxld]\n\nQuiero que las letras me aparezcan en mayúsculas, pero las muestra en minúsculas.\n\nCon el SAY funciona, pero el problema es que el dialogo es STYLE nOr( WS_VISIBLE, WS_POPUP ) y el SAY está en el HEADER del Browse, cuando busca desaparece lo ya escrito\n'\nGracias por la ayuda", "time": "22:38", "topic": "Búsqueda en xBrowse", "username": "acuellar" } ]
Búsqueda en xBrowse
[ { "date": "2019-07-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados\n\nEjemplo que al escribir DIA ubique:\n\nDía de la independencia\nDiamante perdido\nMedia noche\n28 dias \n\nCon DBF lo logré creando un indice con una función que reemplaza las vocales.\n\n[code=fw:vtdqur9s]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />USE MOVIES <span style=\"color: #0000ff;\">ALIAS</span> MOVIE <span style=\"color: #00C800;\">NEW</span> SHARED<br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> StrTran1<span style=\"color: #000000;\">&#40;</span>NOMBRE<span style=\"color: #000000;\">&#41;</span> TAG NOMBRE MEMORY<br />.....<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> StrTran1<span style=\"color: #000000;\">&#40;</span>cNOMBRE<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; cNOMBRE:=StrTran<span style=\"color: #000000;\">&#40;</span>cNOMBRE,<span style=\"color: #ff0000;\">\"á\"</span>,<span style=\"color: #ff0000;\">\"a\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; cNOMBRE:=StrTran<span style=\"color: #000000;\">&#40;</span>cNOMBRE,<span style=\"color: #ff0000;\">\"é\"</span>,<span style=\"color: #ff0000;\">\"e\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; cNOMBRE:=StrTran<span style=\"color: #000000;\">&#40;</span>cNOMBRE,<span style=\"color: #ff0000;\">\"í\"</span>,<span style=\"color: #ff0000;\">\"i\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; cNOMBRE:=StrTran<span style=\"color: #000000;\">&#40;</span>cNOMBRE,<span style=\"color: #ff0000;\">\"ó\"</span>,<span style=\"color: #ff0000;\">\"o\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; cNOMBRE:=StrTran<span style=\"color: #000000;\">&#40;</span>cNOMBRE,<span style=\"color: #ff0000;\">\"ú\"</span>,<span style=\"color: #ff0000;\">\"u\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span> cNOMBRE<br />&nbsp;</div>[/code:vtdqur9s]\n\nGracias por la ayuda.", "time": "16:12", "topic": "Búsqueda incremental de vocales con tilde con MySqlMaDB", "username": "acuellar" } ]
Búsqueda incremental de vocales con tilde con MySqlMaDB
[ { "date": "2019-07-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos, a ver si esto ayuda...\n\n<!-- m --><a class=\"postlink\" href=\"https://www.compartir-tecnologias.es/s/acentos+sql/\">https://www.compartir-tecnologias.es/s/acentos+sql/</a><!-- m -->\n\n<!-- m --><a class=\"postlink\" href=\"https://blog.hunk.com.mx/busquedas-like-con-acentos-en-sql-server/\">https://blog.hunk.com.mx/busquedas-like ... ql-server/</a><!-- m -->\n\nModifica la estructura de tu tabla y al campo nombre en Charset seleccionas Utf8 y en Collation seleccionas utf8_spanish_ci\n\nSELECT * FROM `personal` WHERE `nombre` LIKE BINARY '%ñ%' (cambialo por vocales acentuadas)\n\n<!-- m --><a class=\"postlink\" href=\"https://omaracostacasas.wordpress.com/2009/01/21/convierte-volales-con-tilde-a-vocales-sin-tilde-en-funcion-sql-server-2005/\">https://omaracostacasas.wordpress.com/2 ... rver-2005/</a><!-- m -->", "time": "17:17", "topic": "Búsqueda incremental de vocales con tilde con MySqlMaDB", "username": "joseluisysturiz" } ]
Búsqueda incremental de vocales con tilde con MySqlMaDB
[ { "date": "2019-07-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias José Luis\n\nLa búsqueda es con oBrw:lIncrFilter:= .t.\n oBrw:lSeekWild:= .t.\n\nCon el ejemplo que pone filtra la tabla con registros que tienen el caracter indicado.", "time": "19:04", "topic": "Búsqueda incremental de vocales con tilde con MySqlMaDB", "username": "acuellar" } ]
Búsqueda incremental de vocales con tilde con MySqlMaDB
[ { "date": "2019-07-23", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"acuellar\":1hgh5lxb]Gracias José Luis\n\nLa búsqueda es con oBrw:lIncrFilter:= .t.\n oBrw:lSeekWild:= .t.\n\nCon el ejemplo que pone filtra la tabla con registros que tienen el caracter indicado.[/quote:1hgh5lxb]\nDisculpa acuellar, me di cuenta despues que envie respuesta, igual no creo este demas el tema...probaste usando OemToAsi/Unicode ?, o algo asi se llama, disculpa no recuerdo bien el nombre...saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "20:58", "topic": "Búsqueda incremental de vocales con tilde con MySqlMaDB", "username": "joseluisysturiz" } ]
Búsqueda incremental de vocales con tilde con MySqlMaDB
[ { "date": "2019-07-24", "forum": "FiveWin para Harbour/xHarbour", "text": "If you are using FWH built-in Mariadb library, you do not have to do anything extra. Simply set Codepage to Spanish and everything works as you expect, without any additional programming by you.\n\nTest this small program:\n[code=fw:281f6ott]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; <span style=\"color: #00C800;\">local</span> oCn, oRs<br /><br />&nbsp; &nbsp;HB_CDPSELECT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ESWIN\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;HB_LangSelect<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ES\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oCn &nbsp; := FW_DemoDB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oRs &nbsp; := oCn:<span style=\"color: #000000;\">nombres</span><br /><br />&nbsp; &nbsp;XBROWSER oRs AUTOSORT<br /><br />&nbsp; &nbsp;oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:281f6ott]\n\n[url=https&#58;//imageshack&#46;com/i/pmqjPafzp:281f6ott][img:281f6ott]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/qjPafz&#46;png[/img:281f6ott][/url:281f6ott]", "time": "01:07", "topic": "Búsqueda incremental de vocales con tilde con MySqlMaDB", "username": "nageswaragunupudi" } ]
Búsqueda incremental de vocales con tilde con MySqlMaDB
[ { "date": "2019-07-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Thanks Mr Rao\n\nThe idea is that when writing Adrian, show Adrian and Adrián.\nMany times they write without the spelling accent.\n\nregards", "time": "13:51", "topic": "Búsqueda incremental de vocales con tilde con MySqlMaDB", "username": "acuellar" } ]
Búsqueda incremental de vocales con tilde con MySqlMaDB
[ { "date": "2019-07-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Mr Rao\n\nTambién estoy interesado, sera posible colocar un ejemplo funcional. Tengo la versión fwh19.05.\n\n\nGracias", "time": "13:53", "topic": "Búsqueda incremental de vocales con tilde con MySqlMaDB", "username": "Adolfredo Martinez" } ]
Búsqueda incremental de vocales con tilde con MySqlMaDB
[ { "date": "2019-07-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Parece que no se puede", "time": "14:00", "topic": "Búsqueda incremental de vocales con tilde con MySqlMaDB", "username": "acuellar" } ]
Búsqueda incremental de vocales con tilde con MySqlMaDB
[ { "date": "2020-07-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas estimados\n\nCon éste ejemplo de Mr. RAO\n[code=fw:10b63aqz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><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, oFont<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aData<br /><br />&nbsp; &nbsp;USE CUSTOMER<br />&nbsp; &nbsp;aData := FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FIRST,LAST,STATE\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; CLOSE CUSTOMER <br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span><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;\">700</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE aData <span style=\"color: #0000ff;\">AUTOCOLS</span> HEADERS <span style=\"color: #ff0000;\">\"First\"</span>, <span style=\"color: #ff0000;\">\"Last\"</span>, <span style=\"color: #ff0000;\">\"State\"</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER FOOTERS AUTOSORT <br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lIncrFilter</span>:= .t.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lSeekWild</span> &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bFooter</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #ff0000;\">\"Records : \"</span> + Str<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">nLen</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">450</span> <span style=\"color: #0000ff;\">SAY</span> oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">VAR</span> oBrw:<span style=\"color: #000000;\">cSeek</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Set Filter\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">40</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> xSetFilter<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">240</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Clear Filter\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">40</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> xClearFilter<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">Function</span> xSetFilter<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cFilter &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oCol, c<br />&nbsp;<br />&nbsp; &nbsp;cFilter:= <span style=\"color: #ff0000;\">\"'NY' $ Upper( cValToChar( aRow[3] ) )\"</span> <br />&nbsp; &nbsp;cFilter &nbsp;:= <span style=\"color: #ff0000;\">\"{ |c,aRow,oBrw| \"</span> + cFilter + <span style=\"color: #ff0000;\">\" }\"</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bFilterExp</span> &nbsp;:= &<span style=\"color: #000000;\">&#40;</span> cFilter <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">ArrayIncrFilter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"dummy\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span> .t.<br /><br /><span style=\"color: #00C800;\">Function</span> xClearFilter<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> oBrw:<span style=\"color: #000000;\">nLen</span> < Len<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aArrayData</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bKeyCount</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || Len<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aArrayData</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> oBrw:<span style=\"color: #000000;\">nLen</span> >= <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp; &nbsp; ASort<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aArrayData</span>,,, <span style=\"color: #000000;\">&#123;</span> |x, y| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>==y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">EndIF</span><br /><span style=\"color: #00C800;\">return</span> .t.<br />&nbsp;</div>[/code:10b63aqz]\nAl dar Set Filter la filtra por el State=\"NY\". Necesito hacer búsqueda incremental en lo filtrado.\nUna solución sería hacer algo como Scope ó pasar a un nuevo Array lo filtrado (No se como hacerlo)\n\nGracias por la ayuda.", "time": "21:56", "topic": "Búsqueda incremental en Array filtrado", "username": "acuellar" } ]
Búsqueda incremental en Array filtrado
[ { "date": "2020-07-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Help Mr. Rao", "time": "08:47", "topic": "Búsqueda incremental en Array filtrado", "username": "acuellar" } ]
Búsqueda incremental en Array filtrado
[ { "date": "2020-07-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados\n\nLo he logrado de ésta manera\n[code=fw:1dvmm164]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oFont,aData:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Private</span> oBrw,aFiltro:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;USE <span style=\"color: #00C800;\">data</span>\\customer <span style=\"color: #0000ff;\">Alias</span> calias <br />&nbsp; &nbsp;aTodos:=FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FIRST,LAST,STATE\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;CLOSE calias <br />&nbsp; &nbsp;aData:=aTodos<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span><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;\">700</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg DATASOURCE aData <span style=\"color: #0000ff;\">AUTOCOLS</span>;<br />&nbsp; &nbsp;COLUMNS <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span> ;<br />&nbsp; &nbsp;HEADERS <span style=\"color: #ff0000;\">\"FIRST\"</span>,<span style=\"color: #ff0000;\">\"LAST\"</span>,<span style=\"color: #ff0000;\">\"STATE\"</span> ;<br />&nbsp; &nbsp;JUSTIFY AL_LEFT,AL_LEFT, AL_CENTER ;<br />&nbsp; &nbsp;COLSIZES <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">50</span>;<br />&nbsp; &nbsp;CELL LINES NOBORDER FOOTERS AUTOSORT <br />&nbsp; <br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lIncrFilter</span>:= .t.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lSeekWild</span> &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bFooter</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #ff0000;\">\"Records : \"</span> + Str<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">nLen</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; WITH OBJECT :<span style=\"color: #000000;\">FIRST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bLClickHeader</span>:= <span style=\"color: #000000;\">&#123;</span>|| Inicio<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; WITH OBJECT :<span style=\"color: #000000;\">LAST</span><br />&nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bLClickHeader</span>:= <span style=\"color: #000000;\">&#123;</span>|| Inicio<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; WITH OBJECT :<span style=\"color: #000000;\">STATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bLClickHeader</span>:= <span style=\"color: #000000;\">&#123;</span>|| Inicio<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">450</span> <span style=\"color: #0000ff;\">SAY</span> oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">VAR</span> oBrw:<span style=\"color: #000000;\">cSeek</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Set Filter\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">40</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> xSetFilter<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">240</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Clear Filter\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">40</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> xClearFilter<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">Function</span> xSetFilter<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> Len<span style=\"color: #000000;\">&#40;</span>aFiltro<span style=\"color: #000000;\">&#41;</span>=<span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp;USE <span style=\"color: #00C800;\">data</span>\\CUSTOMER <span style=\"color: #0000ff;\">Alias</span> cAlias <br />&nbsp; &nbsp; &nbsp;aFiltro := FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FIRST,LAST,STATE\"</span>,<span style=\"color: #000000;\">&#123;</span> || FIELD->STATE = <span style=\"color: #ff0000;\">\"NY\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;CLOSE cAlias <br />&nbsp; &nbsp; &nbsp;aData:=aFiltro<br />&nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">SetArray</span><span style=\"color: #000000;\">&#40;</span>aData,.T.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetOrder</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;ASort<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aArrayData</span>,,, <span style=\"color: #000000;\">&#123;</span> |x, y| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>==y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Inicio<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> .t.<br /><br /><span style=\"color: #00C800;\">Function</span> xClearFilter<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> len<span style=\"color: #000000;\">&#40;</span>aFiltro<span style=\"color: #000000;\">&#41;</span>><span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp;aFiltro:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp;aData:=aTodos<br />&nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">SetArray</span><span style=\"color: #000000;\">&#40;</span>aData,.T.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetOrder</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> oBrw:<span style=\"color: #000000;\">nLen</span> < Len<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aArrayData</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bKeyCount</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || Len<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aArrayData</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp;ASort<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aArrayData</span>,,, <span style=\"color: #000000;\">&#123;</span> |x, y| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>==y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Inicio<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> .t.<br />*<br /><span style=\"color: #00C800;\">Function</span> Inicio<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; oBrw:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; oBrw:<span style=\"color: #000000;\">cSeek</span>:=<span style=\"color: #ff0000;\">\"\"</span>;oBrw:<span style=\"color: #000000;\">oSeek</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;oBrw:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;oBrw:<span style=\"color: #000000;\">GoTop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span> .T.<br />&nbsp;</div>[/code:1dvmm164]\nDebe haber otra manera sin necesidad de estar cargando la tabla desde la DBF\n\nLo que no he podido lograr es que al hacer doble clip sobre el Header la búsqueda se por esa columna\n\nGracias por la ayuda.", "time": "19:31", "topic": "Búsqueda incremental en Array filtrado", "username": "acuellar" } ]
Búsqueda incremental en Array filtrado
[ { "date": "2020-07-23", "forum": "FiveWin para Harbour/xHarbour", "text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36671#p218697\">viewtopic.php?f=3&t=36671#p218697</a><!-- l -->\nA ver si te ayuda", "time": "20:00", "topic": "Búsqueda incremental en Array filtrado", "username": "cnavarro" } ]
Búsqueda incremental en Array filtrado
[ { "date": "2020-07-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias estimado Cristobal\n\nNo encontré nada de lo que necesito.", "time": "15:12", "topic": "Búsqueda incremental en Array filtrado", "username": "acuellar" } ]
Búsqueda incremental en Array filtrado
[ { "date": "2020-07-25", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote:oct4w027]Al dar Set Filter la filtra por el State=\"NY\". Necesito hacer búsqueda incremental en lo filtrado.\n[/quote:oct4w027]\n\nSet\n[code=fw:oct4w027]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />:<span style=\"color: #000000;\">lIncrFilter</span> := .F.<br />&nbsp;</div>[/code:oct4w027]\n\nYou may set the value of :lSeekWild to .T. or .F. as you require.", "time": "00:32", "topic": "Búsqueda incremental en Array filtrado", "username": "nageswaragunupudi" } ]
Búsqueda incremental en Array filtrado
[ { "date": "2020-07-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Thanks Mr. Rao\n\nI solved it with: oBrw:cFilterFld:=\"COLUMN\"\n\nRegards,", "time": "14:15", "topic": "Búsqueda incremental en Array filtrado", "username": "acuellar" } ]
Búsqueda incremental en Array filtrado
[ { "date": "2013-02-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos\n\nMe gustaría que me tiráseis una manita con el siguiente código que os pongo. Es una búsqueda incremental en un RecordSet y, la búsqueda la hace bien, \npeeeeeeeeeeeeeroooooooo, no doy con la forma de ver que estoy escribiendo, no me pinta nada en el SAY oTexto.\n¿Me podéis decir que hago mal, para que no me pinte lo que tecleo?\n\n[code=fw:15wtfi0h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgBus <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BUSCARCLIE\"</span> <span style=\"color: #0000ff;\">COLOR</span> RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">153</span>,<span style=\"color: #000000;\">204</span>,<span style=\"color: #000000;\">153</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; oBrwCli := TXBrowse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oDlgBus <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; oBrwCli:<span style=\"color: #000000;\">bSeek</span> := <span style=\"color: #000000;\">&#123;</span> |c| BuscaIncr<span style=\"color: #000000;\">&#40;</span> oRsClie,c,<span style=\"color: #ff0000;\">\"Nombre\"</span>,oDlgBus<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; oBrwCli:<span style=\"color: #000000;\">oSeek</span> := oTexto&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; oBrwCli:<span style=\"color: #000000;\">SetAdo</span><span style=\"color: #000000;\">&#40;</span>oRsClie,.T.,.T.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; oBrwCli:<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; := MARQSTYLE_HIGHLCELL <br />&nbsp; &nbsp; &nbsp; oBrwCli:<span style=\"color: #000000;\">nColDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_BLACK <br />&nbsp; &nbsp; &nbsp; oBrwCli:<span style=\"color: #000000;\">nRowDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_BLACK <br />&nbsp; &nbsp; &nbsp; oBrwCli:<span style=\"color: #000000;\">lColDividerComplete</span> := .t. <br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">for</span> nFor := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span> oBrwCli:<span style=\"color: #000000;\">aCols</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrwCli:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> nFor <span style=\"color: #000000;\">&#93;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style=\"color: #000000;\">nEditType</span> := <span style=\"color: #000000;\">0</span> <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">next</span> <br />&nbsp; &nbsp; &nbsp; oBrwCli:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">60</span><br />&nbsp; &nbsp; &nbsp; oBrwCli:<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;\">nWidth</span> := <span style=\"color: #000000;\">500</span><br /><br />&nbsp; &nbsp; &nbsp; oBrwCli:<span style=\"color: #000000;\">CreateFromResource</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2001</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> cTexto <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4001</span> <span style=\"color: #0000ff;\">OF</span> oDlgBus &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">COLOR</span> RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">153</span>,<span style=\"color: #000000;\">204</span>,<span style=\"color: #000000;\">153</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oTexto <span style=\"color: #0000ff;\">Var</span> cNombre <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4002</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span> <span style=\"color: #0000ff;\">of</span> oDlgBus <span style=\"color: #0000ff;\">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">COLOR</span> RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">204</span>,<span style=\"color: #000000;\">204</span>,<span style=\"color: #000000;\">102</span><span style=\"color: #000000;\">&#41;</span> <br /><br />...... <br />botones y Activar el dialogo<br />&nbsp;</div>[/code:15wtfi0h]\n\nLa Función BuscaIncr es la que se encarga de hacer la búsqueda, si hay alguna forma de hacerlo mejor, soy todo ojos....", "time": "21:40", "topic": "Búsqueda incremental en RecordSet", "username": "Pedro" } ]
Búsqueda incremental en RecordSet
[ { "date": "2013-02-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Yo lo utilizo con una Base de Datos, y lo hago incluyendo la siguiente linea:\n\n[code=fw:t1tmsbzm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oBrwCli:<span style=\"color: #000000;\">bUpdateBuffer</span> := <span style=\"color: #000000;\">&#123;</span>|| oSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span></div>[/code:t1tmsbzm]", "time": "21:54", "topic": "Búsqueda incremental en RecordSet", "username": "Bayron" } ]
Búsqueda incremental en RecordSet
[ { "date": "2013-02-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Byron\n\nNo funciona, lo único que hace es crearme una columna al final con el nombre de bUpdateBuffer.\nLo que si he visto es que mi función de bSeek ni hace absolutamente nada, es decir no va a ella cuando inicio el tecleo de búsqueda.\nTambién he visto que la data oSeek solo se emplea en el método Seek, pero no en los métodos de búsqueda de ADO, TMYSQL o DOLPHIN,\npor lo cual será imposible que veamos lo que escribimos.\nDado que uso el fuente de la clase xBrowse en mi programa, trataré de modificarla en el método AdoSeek (ver 12.04) y AdoIncrSeek (ver 12.06)\npara intentar ver lo que escribo", "time": "10:27", "topic": "Búsqueda incremental en RecordSet", "username": "Pedro" } ]
Búsqueda incremental en RecordSet
[ { "date": "2013-02-24", "forum": "FiveWin para Harbour/xHarbour", "text": "This sample demonstrates using incremental seek and wild seek in FWH 12.06 using ADO RecordSets. XBrowse works perfectly and advise not to make any changes to the library.\n\n[code=fw:2ntt0x0b]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.Ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"hbcompat.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oRs, oDlg, oBrw, oCbx, oFont<br />   <span style=\"color: #00C800;\">local</span> lWildSeek   := .f.<br />   <span style=\"color: #00C800;\">local</span> nOpt        := <span style=\"color: #000000;\">1</span><br /><br />   oRs         := GetRecSet<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oRs:<span style=\"color: #000000;\">Sort</span>    := oRs:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Name</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">900</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />      <span style=\"color: #0000ff;\">TITLE</span> FWVERSION ;<br />      <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />   @ <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      DATASOURCE oRs <span style=\"color: #0000ff;\">AUTOCOLS</span> AUTOSORT ;<br />      CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style=\"color: #000000;\">Married</span>:<span style=\"color: #000000;\">SetCheck</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">bClrSel</span>       := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK,CLR_HGRAY <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">nStretchCol</span>   := STRETCHCOL_WIDEST<br />      <span style=\"color: #B900B9;\">//</span><br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   END<br /><br />   @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> nOpt <span style=\"color: #0000ff;\">PROMPTS</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Starting With\"</span>, <span style=\"color: #ff0000;\">\"Containing\"</span> <span style=\"color: #000000;\">&#125;</span> ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">14</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg  ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">lSeekWild</span> := <span style=\"color: #000000;\">&#40;</span> nOpt == <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                  oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">SAY</span> oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">PROMPT</span> oBrw:<span style=\"color: #000000;\">cSeek</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">COLOR</span> CLR_RED,CLR_YELLOW<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> ;<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 /><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />   oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oRs:<span style=\"color: #000000;\">ActiveConnection</span>:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> GetRecSet<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oRs, oCn<br />   <span style=\"color: #00C800;\">local</span> cStr := <span style=\"color: #ff0000;\">\"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"</span> + ;<br />                 <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\s</span>amples<span style=\"color: #000000;\">\\;</span>Extended Properties=dBASE III;\"</span> + ;<br />                 <span style=\"color: #ff0000;\">\"User ID=Admin;Password=;\"</span><br /><br />   <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> oCn := FW_OpenAdoConnection<span style=\"color: #000000;\">&#40;</span> cStr <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #00C800;\">nil</span><br />      MsgStop<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Connection Fail\"</span> <span style=\"color: #000000;\">&#41;</span><br />      QUIT<br />   elseif <span style=\"color: #000000;\">&#40;</span> oRs := FW_OpenRecordSet<span style=\"color: #000000;\">&#40;</span> oCn, ;<br />      <span style=\"color: #ff0000;\">\"SELECT FIRST,CITY,MARRIED,HIREDATE,SALARY FROM CUSTOMERS\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #00C800;\">nil</span><br />      MsgStop<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CUSTOMERS can not be opened\"</span> <span style=\"color: #000000;\">&#41;</span><br />      oCn:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      QUIT<br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> oRs<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:2ntt0x0b]\n\nThis sample also shows how to show the Search String.\n\nNote: For the purpose of the above sample, I have opened c:\\fwh\\samples\\cutomer.dbf as a RecordSet using ADO ( using Jet OLEDB ). If your fwh folder is not in c:, please change the address in the above sample to point to your fwh\\samples folder.\n\nPlease compile and test the above sample, before asking further clarifications.\nScreen Shots:\n\nIncremental Seek:\n[url=http&#58;//img109&#46;imageshack&#46;us/i/adoincrseek&#46;jpg/:2ntt0x0b][img:2ntt0x0b]http&#58;//img109&#46;imageshack&#46;us/img109/8304/adoincrseek&#46;jpg[/img:2ntt0x0b][/url:2ntt0x0b]\n\nWild Seek:\n[url=http&#58;//img17&#46;imageshack&#46;us/i/adowildseek&#46;jpg/:2ntt0x0b][img:2ntt0x0b]http&#58;//img17&#46;imageshack&#46;us/img17/3305/adowildseek&#46;jpg[/img:2ntt0x0b][/url:2ntt0x0b]", "time": "16:31", "topic": "Búsqueda incremental en RecordSet", "username": "nageswaragunupudi" } ]
Búsqueda incremental en RecordSet
[ { "date": "2013-02-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigo prueba asi:\n\n Local nIndex:={\"ma_rutc\",\"ma_nomc\"}\n\n REDEFINE COMBOBOX oCbx VAR cVar ITEMS aIdx ID 1007 OF oDlg UPDATE;\n ON CHANGE SeOrden(oCbx,oLbx,nIndex)\n\n REDEFINE SAY oSay ID 101 OF oDlg UPDATE FONT oVentPrinc:oFont COLOR CLR_BLUE\n oLbx:SetAdo(cMa_Ctes)\n oLbx:bSeek := {|c| BBus(c,cMa_Ctes,nIndex[cVar]) }\n oLbx:oSeek := oSay\n oLbx:bKeyDown := {|nKey| iif( nKey=13,(cKey := ADOField(cMa_Ctes,\"ma_rutc\"),oDlg:End() ),)}\n\n\nSTATIC FUNCTION BBus(cBuscar,oRs,oOrden)\nLocal nLen:=Len(cBuscar)\nstatic nLenAnt\n\nDefault nLenAnt:=0\n\nIf Len(cBuscar) > 1\n If (nLenAnt>nLen,oRs:MoveFirst(),)\n oRs:Find(oOrden+\" Like '\"+UPPER(cbuscar)+\"*'\",,1)\n Else\n oRs:MoveFirst()\n If !Empty(cBuscar)\n oRs:Find(oOrden+\" Like '\"+UPPER(cbuscar)+\"*'\",,1)\n Endif\n Endif\nnLenAnt:=nLen\nRETURN !(oRs:Eof .or. oRs:Bof)\n\n\nSaludos", "time": "15:57", "topic": "Búsqueda incremental en RecordSet", "username": "jbrita" } ]
Búsqueda incremental en RecordSet
[ { "date": "2013-02-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimado jbrita, como ya dije en otro post , el problema del bSeek es que no me toma el que yo hago, sino el de la clase.\nNo se que versión de FWH estas usando pero con la 12.06 no puedo hacer lo que me dices porque nunca va a ir a la funcion BBus(), lo digo porque ya hice una función igual a la que has puesto y jamás llegaba a esa función, (puse unos msginfo para ver si llegaba y nada, no iba). Creo que la explicación la dio mister Nao en el post que te digo\n[url:35by0vqw]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=25686[/url:35by0vqw]", "time": "18:35", "topic": "Búsqueda incremental en RecordSet", "username": "Pedro" } ]
Búsqueda incremental en RecordSet
[ { "date": "2007-08-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola:\nTengo el siguiente código:\n[code:gxvb1mb3]FUNCTION BuscarClientes&#40; oParent&#41;\n LOCAL oDlg, oBrw, oBusqueda, cBusqueda, aResultado\n aResultado&#58;=Sql&#40;\"SELECT rut,nombre,ciudad,email FROM BASEDEDATOS&#46;CLIENTES ORDER BY nombre\"&#41;\n IF aResultado&#91;1&#93;\n IF aResultado&#91;3&#93;&#58;RecordCount>0\n aResultado&#91;3&#93;&#58;MoveFirst&#40;&#41;\n DEFINE DIALOG oDlg RESOURCE \"BUSCARCLIENTES\"\n REDEFINE LISTBOX oBrw ;\n FIELDS Str&#40;aResultado&#91;3&#93;&#58;Fields&#40;0&#41;&#58;value,0&#41;, ;\n aResultado&#91;3&#93;&#58;Fields&#40;1&#41;&#58;value, ;\n aResultado&#91;3&#93;&#58;Fields&#40;2&#41;&#58;value, ;\n aResultado&#91;3&#93;&#58;Fields&#40;3&#41;&#58;value ;\n ID 102;\n FIELDSIZES 80, 250, 100, 250 ;\n HEADERS \"R&#46;U&#46;T&#46;\",\"Razón Social\",\"Ciudad\",\"email\" OF oDlg\n oBrw&#58;bLogicLen &#58;= &#123; || aResultado&#91;3&#93;&#58;RecordCount &#125;\n oBrw&#58;bGoTop &#58;= &#123; || aResultado&#91;3&#93;&#58;MoveFirst&#40;&#41; &#125;\n oBrw&#58;bGoBottom &#58;= &#123; || aResultado&#91;3&#93;&#58;MoveLast&#40;&#41; &#125;\n oBrw&#58;bSkip &#58;= &#123; | nSkip | Salto&#40; aResultado&#91;3&#93;, nSkip &#41; &#125;\n oBrw&#58;cAlias &#58;= \"ARRAY\"\n\n REDEFINE BUTTON ID 301 OF oDlg ACTION &#40; oDlg&#58;bValid&#58;=&#123; || &#46;T&#46;&#125;, oDlg&#58;End&#40;&#41;&#41; ;\n CANCEL\n ACTIVATE DIALOG oDlg CENTER VALID &#46;F&#46;\n ELSE\n MsgStop&#40; \"No existen Clientes en el Maestro\", \"Error\"&#41;\n ENDIF\n aResultado&#91;3&#93;&#58;Close&#40;&#41;\n aResultado&#91;2&#93;&#58;Close&#40;&#41;\n ENDIF\nRETURN NIL[/code:gxvb1mb3]\nMi consulta es la siguiente:\nCómo puedo hacer para realizar una búsqueda incremental sobre el browse ya que este es un array obtenido de un objeto adodb.recordset?.\nLa idea es que yo escriba en el get y al presionar enter o cuando pierda el foco si detecta que hay datos en el get busque por aproximación en el browse y me posicione sobre el primer registro que coincida con la palabra encontrada. La idea es que si coloco AB se posicione sobre el primer registro que comienza con AB.\nEsto lo hago sin problemas al realizar un browse directamente a un .DBF. Nunca lo he realizado en un array.\n\n[quote:gxvb1mb3][b:gxvb1mb3]He intentado esto para poder obtener los datos seleccionados en el browse al presionar un botón o hacer doble click sobre el registro:\n[/b:gxvb1mb3]\n\n[code:gxvb1mb3]nPos&#58;=oBrw&#58;nAt //==>retorna NIL\nnPos&#58;=oBrw&#58;nRowPos //==> retorna el registro donde estoy\nMsgInfo&#40; oBrw&#58;aArray&#91;1,1&#93; //hace que mi aplicación se cuelgue&#46; No muestra ningún error&#46; Simplemente se cuelga&#46;[/code:gxvb1mb3][/quote:gxvb1mb3]\n\nSaludos y mil gracias\nDavid Lagos S.\nCoquimbo-Chile\n\nP.D:René, tu blog está excelente. Felicitaciones.\nAdjunto una imagen\n[img:gxvb1mb3]http&#58;//img512&#46;imageshack&#46;us/my&#46;php?image=imagenbrowserm7&#46;jpg[/img:gxvb1mb3][quote:gxvb1mb3][/quote:gxvb1mb3]", "time": "16:34", "topic": "Búsqueda incremental en wbrowse - SOLUCIONADO vean solución", "username": "metaldrummer" } ]
Búsqueda incremental en wbrowse - SOLUCIONADO vean solución
[ { "date": "2007-08-20", "forum": "FiveWin para Harbour/xHarbour", "text": "David,\n\nTendrás que buscar en los elementos del array, bien usando Left() ó At()", "time": "22:57", "topic": "Búsqueda incremental en wbrowse - SOLUCIONADO vean solución", "username": "Antonio Linares" } ]
Búsqueda incremental en wbrowse - SOLUCIONADO vean solución
[ { "date": "2007-08-20", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2o5vj6mx]David,\n\nTendrás que buscar en los elementos del array, bien usando Left() ó At()[/quote:2o5vj6mx]\n\nAntonio, gracias por la respuesta. Con relación a cómo obtener los datos cuando presiono un botón, ya está resuelto.\nLo que tengo que hacer ahora es poder reasignar los campos al browse en tiempo de ejecución y refrescar el browse.\n\nSi no me equivoco debo modifica el oBrw:bLine, correcto?\nY si es así como recargo :bLine nuevamente?, me refiero a la forma de pasar los datos.\nMe explico. Estoy realizando nuevamente una consulta SQL del tipo where nombre like 'hdhdhd%'. El nuevo resultado de la consulta con adodb.recordset la debo cargar al browse como cuando utilizo el REDEFINE LISTBOX.\nSaludos\nDavid Lagos S.\nCoquimb-Chile", "time": "23:12", "topic": "Búsqueda incremental en wbrowse - SOLUCIONADO vean solución", "username": "metaldrummer" } ]
Búsqueda incremental en wbrowse - SOLUCIONADO vean solución
[ { "date": "2007-08-20", "forum": "FiveWin para Harbour/xHarbour", "text": "David,\n\nbLine es un codeblock que tiene que devolver un array, con un valor por cada columna. Lo interesante es que puede llamar a una función que realice los calculos que sean necesarios y devuelva el array:\n\noBrw:bLine = { || { <col1>, ..., <colN> } }\n\nó llamar a una función:\n[code:137rogbn]\noBrw&#58;bLine = &#123; || CalculaValores&#40;&#41; &#125;\n\nfunction Calculavalores&#40;&#41;\n\n &#46;&#46;&#46; calcula col1, &#46;&#46;&#46; colN\n\nreturn &#123; <col1>, &#46;&#46;&#46;, <colN> &#125;\n[/code:137rogbn]", "time": "23:19", "topic": "Búsqueda incremental en wbrowse - SOLUCIONADO vean solución", "username": "Antonio Linares" } ]
Búsqueda incremental en wbrowse - SOLUCIONADO vean solución
[ { "date": "2007-08-21", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1rv1ppjj]David,\n\nbLine es un codeblock que tiene que devolver un array, con un valor por cada columna. Lo interesante es que puede llamar a una función que realice los calculos que sean necesarios y devuelva el array:\n\noBrw:bLine = { || { <col1>, ..., <colN> } }\n\nó llamar a una función:\n[code:1rv1ppjj]\noBrw&#58;bLine = &#123; || CalculaValores&#40;&#41; &#125;\n\nfunction Calculavalores&#40;&#41;\n\n &#46;&#46;&#46; calcula col1, &#46;&#46;&#46; colN\n\nreturn &#123; <col1>, &#46;&#46;&#46;, <colN> &#125;\n[/code:1rv1ppjj][/quote:1rv1ppjj]\n\nAntonio:\n el bline lo estoy usando para obtener los datos a través de un eval() que funcional a las mil maravillas.\n Aún sigo entrampado con el tema de la búsqueda incremental.\n He intentado a realizar un oRS:Source:=\"nueva consulta SQL\" y luego un oRS:Requery() y se cuelga mi aplicación al momento de oRS:Source.\n Pensando que podía ser por tener el oBrw activo realicé oBrw:Disable() y/o oBrw:Hide() y nada.\n Es lo único que me falta realizar para tener la rutina lista de búsqueda de clientes que me va a servir para cualquier búsqueda.\n No puedo utilizar el nAt, aArray o AScan() ya que nAt retorna nil debido a que nunca utilizo el setarray() ya que los que paso son los datos de un objeto obtenido desde un adodb.recordset.\n Alguien más que me pueda ayudar. Quizás René, ya que tu trabajas todo ADO duro y puro según contaste en un post pasado.\n Gracias nuevamente.\n Saludos\n David Lagos S.\n Coquimbo-Chile", "time": "17:37", "topic": "Búsqueda incremental en wbrowse - SOLUCIONADO vean solución", "username": "metaldrummer" } ]
Búsqueda incremental en wbrowse - SOLUCIONADO vean solución
[ { "date": "2007-08-21", "forum": "FiveWin para Harbour/xHarbour", "text": "[b:14ete5di]A ver compañeros:[/b:14ete5di]\n[b:14ete5di][color=red:14ete5di][i:14ete5di]Primero que todo mil gracias a Vikthor por darme la pauta inicial por donde resolver el problema.[/i:14ete5di][/color:14ete5di][/b:14ete5di]\n\nCuando trabajamos con Ado debemos cargar los datos obtenidos del objeto adobdb.recorset al browse utilizando el método Fields(nº de campo):value en la clausula FIELDS. además debemos definir oBrw:cArray:=\"ARRAY\". Si el campo retorna un número debemos pasarlo a cadena. [color=red:14ete5di][b:14ete5di]MUY Importante esto.[/b:14ete5di][/color:14ete5di]\n\nComo lo que necesitaba era hacer una búsqueda incremental el paso es el siguiente:\n\nDefinimos o Redefinimos un campo GET y le agregamos lo siguiente:\n/*cBusqueda es la variable definida en el GET, puede ser cualquiera*/\n/*oRs es el objeto RecordSet que creamos anteriomente para obtener los datos desde nuestro servidor de base de datos*/\noGet:bLostFocus:={|| Iif( Funcion_de_Busqueda( cBusqueda, oRs), oBrw:Refresh(), NIL)}\n\n[b:14ete5di]NUNCA UTILIZAR oBrw:UpStable() ==> la aplicación se cuelga.[/b:14ete5di]\n\n[code:14ete5di]STATIC FUNCTION Funcion_de_Busqueda&#40; cBusqueda, oRs&#41;\n LOCAL lBusqueda&#58;=&#46;F&#46;, nBookMark&#58;=oRs&#58;BookMark\n IF !Empty&#40; cBusqueda&#41;\n oRs&#58;MoveFirst&#40;&#41;\n oRs&#58;Find&#40; \"nombre LIKE '\"+Alltrim&#40;cBusqueda&#41;+\"%'\",,1&#41;\n IF oRs&#58;Eof&#40;&#41;==&#46;F&#46; &#46;AND&#46; oRs&#58;Bof&#40;&#41;==&#46;F&#46;\n lBusqueda&#58;=&#46;T&#46;\n ELSE\n oRs&#58;BookMark&#58;=nBookMark\n MsgStop&#40; \"No encotramos nada\"&#41;\n ENDIF\n ENDIF\nRETURN lBusqueda[/code:14ete5di]\n\nAdjunto imágenes\n1.- Mostrando el browse\n[img:14ete5di]http&#58;//img131&#46;imageshack&#46;us/img131/337/buscar1qu4&#46;png[/img:14ete5di]\n2.- Si se fijan colocamos el texto: LA y nos muestra la primera coincidencia.\n[img:14ete5di]http&#58;//img410&#46;imageshack&#46;us/img410/6497/buscar2dm9&#46;png[/img:14ete5di]\n3.- Informamos al usuario que su búsqueda falló:\n[img:14ete5di]http&#58;//img511&#46;imageshack&#46;us/img511/9021/buscar3hh6&#46;png[/img:14ete5di]", "time": "20:35", "topic": "Búsqueda incremental en wbrowse - SOLUCIONADO vean solución", "username": "metaldrummer" } ]
Búsqueda incremental en wbrowse - SOLUCIONADO vean solución
[ { "date": "2006-10-25", "forum": "FiveWin para Harbour/xHarbour", "text": "En Clipper+Fivewin el siguiente código funciona correctamente, es decir cada vez que se introduce una letra en el GET el Listbox se mueve hasta el registro que contiene esas letras, sin embargo con FWH el Listbox no se mueve conforme se van introduciendo letras, solamente cuando se pulsa la tecla retroceso después de introdocir una cadena. Por favor, pueden echarle un vistazo al código ?, tal vez sea necesaria alguna optimización para xHarbour pero no encuentro que puede ser:\n\n[code:2w4ss14n] REDEFINE GET oGet VAR cText ID 801 PICTURE \"@!\" OF oDlg;\n ON CHANGE &#40; Self&#58;Assign&#40;&#41;,;\n Locator&#40;\"\"+SubStr&#40;cText,1,Self&#58;nPos-1&#41;+Upper&#40;Chr&#40; nKey &#41;&#41;,oLbx,cUsaBase&#41; &#41;\n\n\n*********#######*****************\nFUNCTION LOCATOR&#40;cKey,oB,cUsaBase&#41;\n*********#######*****************\n// oB = TWBrowse Object, cKey = Contenido del Get\nlocal nSeekrec\n//\nnSeekrec&#58;=&#40;cUsaBase&#41;->&#40;Recno&#40;&#41;&#41;\nIF GetASyncKey&#40; VK_BACK &#41;\ncKey &#58;= SubStr&#40;cKey,1,Len&#40;cKey&#41;-1&#41;\nEndIF\n\n&#40;cUsaBase&#41;->&#40;DbSeek&#40;cKey,&#46;T&#46;&#41;&#41;\nIf !Found&#40;&#41;\nGO nSeekrec\nEndIF\n//\noB&#58;Refresh&#40;&#41;\n//\nRETURN&#40; NIL &#41;\n//\n[/code:2w4ss14n]", "time": "20:36", "topic": "Búsqueda incremental en xHarbour", "username": "Manuel Aranda" } ]
Búsqueda incremental en xHarbour
[ { "date": "2006-10-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Manuel,\n\nAqui tienes un ejemplo completo:\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=3869&start=0&postdays=0&postorder=asc&highlight=incremental\">http://fivetechsoft.com/forums/viewtopi ... ncremental</a><!-- m -->", "time": "23:39", "topic": "Búsqueda incremental en xHarbour", "username": "Antonio Linares" } ]
Búsqueda incremental en xHarbour
[ { "date": "2006-10-26", "forum": "FiveWin para Harbour/xHarbour", "text": "que tal manuel,\nyo uso la busqueda incremental en la msgbar con la twbrowse tee paso un ejemplo de su uso, espero te sirva:\n\nLOCAL cDefaulMsg:=\"\"\nDEFINE DIALOG oDls bla bla bla...\n REDEFINE LISTBOX oBrs ;\n FIELDS (oDCli)->Nombre, (oDCli)->Codigo bla bla bla ....\n\noBrs:bSeek := {|lRet| oBrs:DbfSeek(.T.) }\noBrs:bUpdateBuffer:= {|| UpdateBuffer( oDls:oMsgBar, ;\n cDefaultMsg, oBrs:cBuffer ) }\n\n ACTIVATE DIALOG oDls CENTERED;\n ON INIT MsgBarra(oDls,cDefaultMsg)\n\nSTAT FUNCTION MsgBarra(oDls,cDefaultMsg)\n SET MESSAGE OF oDls TO cDefaultMsg NOINSET\nRETURN Nil\n\nFUNCTION UpdateBuffer( oMsgBar, cDefaultMsg, cBuffer )\n local nClrText:= oMsgBar:nClrText\n local cMsg, oFont\n\n DEFINE FONT oFont NAME \"Ms Sans Serif\" SIZE 0,-10 BOLD\n\n if Len( cBuffer ) > 0\n cMsg:= \"Buscando: \" + upper(cBuffer)\n oMsgBar:nClrText:= CLR_BLUE\n oMsgBar:SetFont(oFont)\n else\n cMsg:= cDefaultMsg\n endif\n oMsgBar:SetMsg( PadR( cMsg ,200) )\n oMsgBar:nClrText:= nClrText\n oFont:End()\nreturn Nil\n\nSalu2\nPaco", "time": "06:23", "topic": "Búsqueda incremental en xHarbour", "username": "Francisco Horta" } ]
Búsqueda incremental en xHarbour
[ { "date": "2006-10-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Antonio y Francisco. Lo pruebo.\n\nUn saludo,\nManuel", "time": "12:30", "topic": "Búsqueda incremental en xHarbour", "username": "Manuel Aranda" } ]
Búsqueda incremental en xHarbour
[ { "date": "2010-08-02", "forum": "FiveWin para Harbour/xHarbour", "text": "MArcelo,\n\nNo se que es \"texto FST\". Si me lo aclaras quizás pueda intentarlo.\n\nPablo,\n\nNo creo que tenga que ver con el cable ni el switch. Probé todo en el ciber de un amigo (cuando está cerrado) y la lentitud es la misma. En teoría, al usar ADS no debería pasar toda la DBF por la red, sino sólo los datos solicitados.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "22:33", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "rolando" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches,\n\nTengo una función en la que realizo una búsqueda secuencial en todos los registros de la DBF de Trabajos realizados. \n\nBusco una coincidencia dentro de tres campos de caracter comunes y tres campos memo cuyo contenido está grabado como RTF, cuando encuentra una coincidencia agrega el recno() del registro y algunos de sus campos a un array que luego es editado aparte. Esto está con DBF común e indices CDX usando ADS local en una red de tres pc's.\n\nTodo esto funciona muy bién y completa una búsqueda en unos 5 segundos (un total de unos 25000 registros) EN LA PC SERVIDOR.\n\n[u:29am6pt7]Si la búsqueda se realiza desde alguna de las otras dos pc's[/u:29am6pt7],[b:29am6pt7][color=#FF0000:29am6pt7] llega a tardar unos tres minutos en completar la búsqueda.[/b:29am6pt7][/color:29am6pt7]\n\nCreería que es la demora por la red pero como estoy usando ADS local no debería pasar, ¿o sí?.\n\nQuizás no esté usando el ADS como corresponde.\n\nEspero alguna ayuda. \n\nGracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "02:11", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "rolando" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches,\n\nSigo intentando y esperando alguna ayuda.\n\nIntenté cambiando la función haciendo un MemoRead al fichero DBF con la intención de hacerle un AT() al fichero en memoria pero me encuentro con dos problemas.\n\n1) Como uso ADS local, por más que abra las DBF's en modo compartido, se nota que, como el ADS es quien las manipula, las abre en modo exclusivo y por eso no carga la DBF en memoria con memoread ya que cuando hago el at() me devuelve 0. Esto no pasa si detengo el ADS.\n\n2) Si detengo el ADS, tampoco me sirve buscar con at() en la BDF cargada con memoread, ya que uso índices CDX y campos memo FPT (que son de extensión variable), esto último hace que cada registro tenga una extensión distinta y se me hace imposible encontrar el registro con el número que me devuelve at().\n\n¿Cómo hacen ustedes búsquedas secuenciales?\n\nGracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "01:08", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "rolando" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\nya que utilizas DBF/CDX intenta tan solo hacer lo mismo (no con AT) pero utilizando el RDD nativo de [x]Harbour\n\nsaludos\n\nMarcelo", "time": "01:32", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "Marcelo Via Giglio" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-02", "forum": "FiveWin para Harbour/xHarbour", "text": "MArcelo,\n\nGracias por responder. Disculpá mi ignorancia pero no logro entender lo que sugieres.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "01:48", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "rolando" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\ntu dices qye estas trabajando con el RDD de ADS (Local), o lei mal? pero lo haces con DBF y CDX verdad? no con ADT, entonces lo que te sugiero como prueba es que no utilices el RDD de ADS y utiliza el RDD de [x]Harbour y pruebas, haber que diferencia encuentras, ya que yo tengo una teoria respecto al uso del RDD ADS (local) en redes locales.\n\nsaludos\n\nMarcelo", "time": "12:57", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "Marcelo Via Giglio" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Marcelo,\n\nTe entiendo, pero la aplicación tiene al comienzo una \"detección\" de si el Servidor ADS está funcionando y, si no es así, dá la opción de usarlo sin ADS o salir del sistema.\n\nYa probé con ADS y sin ADS y es lo mismo, la lentitud es tremenda.\n\n¿Alguna otra idea?.\n\nGracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "14:34", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "rolando" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\nya que utilizas ADS puedes probar la busqueda en texto FST, no lo he probado, pero seria interesante que lo hagas y nos comentes resultados <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nsaludos\n\nMarcelo", "time": "14:39", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "Marcelo Via Giglio" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-02", "forum": "FiveWin para Harbour/xHarbour", "text": "El problema no esta en tu aplicacion, busca el problema en el cableado y en el switch de la red.\nademas recuerda que el programa envia el dbf completo por la red.-", "time": "14:57", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "pablovidal" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas Noches,\n\nAvancé en esto, creo que encontré porque la búsqueda, tanto usando ADS, como sin usar ADS tardaba lo mismo (y mucho) desde una pc remota (1:30 min) y sólo 2 segundos en la pc servidor siendo que se supone con ADS debe ser má rápida.\n\nLo que modifiqué fue una línea de seteo del ADS.\n\nTenía puesto [code=fw:km5gq7ad]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">SET <span style=\"color: #00C800;\">SERVER</span> REMOTE</div>[/code:km5gq7ad] \n\nY lo cambié por [code=fw:km5gq7ad]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">SET <span style=\"color: #00C800;\">SERVER</span> <span style=\"color: #00C800;\">LOCAL</span></div>[/code:km5gq7ad]\n\nCon esto bajó el tiempo de búsqueda en una pc terminal, de 1:30 min a sólo 20 segundos (la búsqueda es secuencial en todos los registros dentro de tres campos memo guardados como RTF y tres campos comunes de caractér).\n\nCreo que más velocidad no se puede pedir teniendo en cuenta que están por medio el switch, cableado y velocidad de la red.\n\nGracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "02:56", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "rolando" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\nclaro que se supone que con ADS seria mas rapido, PERO con ADS server, y claro tu estas en lo correcto, tenias herrado el parametro al querer utilizar ADS LOCAL como si fuera un servidor.\n\nPIENSO... solo PIENSO, que si buscas dentro la documentacion de ADS lo referente a busqueda rapida en texto podrias bajar mas el tiempo de busqueda, ya que lo que haces ahora es busqueda de fuerza bruta, lo que harias con ADS es crear un index para tal efecto y ADS se encargaria de lo demas, mira solo lo he leido y esto no es caracteristica de ADS exclusivamente, tambien de mayoria de otros DBMS.\n\nSin promesas, buscare tiempo esta noche para probar, y te comento si es que no lo haces tu antes\n\nsaludos\n\nMarcelo", "time": "12:51", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "Marcelo Via Giglio" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2010-08-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Perdón por la intromisión e ignorancia quizás.\nEl funcionamitento del ADS en modo Server Local no tiene las mismas características ni funcionamiento del Server Remoto.\nPor lo que tengo entendido, sirve para desarrollar un sistema preparado para hacerlo correr vía ADS pero en realidad no funciona como un sistema cliente/servidor. Incluso muchas de sus funcionalidades, dentro de las más importantes el control de transacciones (rollback) y otras están deshabilitadas (de hecho no pueden funcionar en un ambiente que no sea cliente/servidor).\nEntiendo que en un entorno ADS Local, viaja todo el archivo por la red y esto es parte de la lentitud que tienes.\n\nSi alguno puede aclarar y/o ampliar, mejor.\n\nSaludos\n\nIván", "time": "21:34", "topic": "Búsqueda muy lenta en red - Solucionado", "username": "IVAN TRACHTA" } ]
Búsqueda muy lenta en red - Solucionado
[ { "date": "2009-05-13", "forum": "Utilities / Utilidades", "text": "Hola a todos,\n\nAquí les dejo una función que he estado haciendo estos días (tenía tiempo).\n\nLa finalidad es la búsqueda de un valor dentro de una DBF mediante la función At().\n\nCreo que sólo será útil para ficheros enormes; para los más pequeños las funciones de Harbour ya nos valen.\n\nAgradecería que alguién que tenga algún fichero DBF enorme la pruebe y nos diga si és más rápido que con el comando LOCATE.\nYo no puedo hacerlo, no dispongo de ficheros enormes (ni tampoco espacio en el disco, je, je).\n\nUn Saludo y gracias\nCarlos G.\n\n[code=fw:3lpbsuaz]<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;\">\"Dbstruct.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"DbInfo.ch\"</span><br /><br /><span style=\"color: #B900B9;\">/* Función para buscar en una DBF (en su orden NATURAL) un valor contenido<br />   en un campo determinado.<br />   Simula el comando LOCATE y CONTINUE, pero realizando un AT().<br />   Devuelve el Recno() ó '0' según encuentre o no el valor a buscar.<br />   Se asume que la DBF está abierta y se recibe su Alias().<br /><br />   Su uso es:<br />   nAtInDbf( cAliasDBF, \"APELLIDO\", \"GARCIA\", .F. )<br /><br />   para continuar la búsqueda con los mismos parámetros:<br />   nAtInDbf( cAliasDBF, , , .T. )<br /><br />   Para que nos entendamos, la primera vez vendría a ser un LOCATE, y la segunda<br />   vez vendría a ser un CONTINUE.<br /><br />   --------------------------------------------------------------------------------- */</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> nAtInDbf<span style=\"color: #000000;\">&#40;</span> cAliasDBF, cFieldDBF, cString, lContinue <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> cMemoDbf       := <span style=\"color: #ff0000;\">\"\"</span>, ;<br />       nBytesToField  := <span style=\"color: #000000;\">0</span>, ;<br />       nBytesEndField := <span style=\"color: #000000;\">0</span>, ;<br />       nOffset        := <span style=\"color: #000000;\">0</span>, ;<br />       cSearch        := <span style=\"color: #ff0000;\">\"\"</span>, ;<br />       cfield         := <span style=\"color: #ff0000;\">\"\"</span>, ;<br />       nRegLocate_1   := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">Local</span> aEstruct     := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">Local</span> nPos         := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">DEFAULT</span> lContinue := .F.<br /><br /><span style=\"color: #B900B9;\">/*<br />Traza( 1, cAliasDbf )<br />Traza( 1, ( cAliasDbf )->(DbInfo( DBI_FULLPATH )) )<br />Traza( 1, cFieldDbf )<br />Traza( 1, cString )<br />Traza( 1, lContinue )<br />*/</span><br /><br /><span style=\"color: #00C800;\">If</span> .not. lContinue<br />    <span style=\"color: #00C800;\">If</span> Len<span style=\"color: #000000;\">&#40;</span> cString <span style=\"color: #000000;\">&#41;</span> < <span style=\"color: #000000;\">1</span><br />        <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Not Data to Search.\"</span>, <span style=\"color: #ff0000;\">\"Search Error.\"</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">Endif</span><br />    cMemoDbf       := MemoRead<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> cAliasDbf <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>DbInfo<span style=\"color: #000000;\">&#40;</span> DBI_FULLPATH <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    nOffset        := <span style=\"color: #000000;\">0</span><br />    cSearch        := cString<br />    cField         := Upper<span style=\"color: #000000;\">&#40;</span> cfieldDBF <span style=\"color: #000000;\">&#41;</span><br />    nRegLocate_1   := <span style=\"color: #000000;\">0</span><br /><br />    nBytesToField  := <span style=\"color: #000000;\">0</span><br />    nBytesEndField := <span style=\"color: #000000;\">0</span><br /><br />    aEstruct       := <span style=\"color: #000000;\">&#40;</span> cAliasDBF <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>DBSTRUCT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />    AScan<span style=\"color: #000000;\">&#40;</span> aEstruct, <span style=\"color: #000000;\">&#123;</span> |aCampo| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> aCampo<span style=\"color: #000000;\">&#91;</span> DBS_NAME <span style=\"color: #000000;\">&#93;</span> == cField, ;<br />                                    <span style=\"color: #000000;\">&#40;</span>nBytesEndField := nBytesToField + aCampo<span style=\"color: #000000;\">&#91;</span> DBS_LEN <span style=\"color: #000000;\">&#93;</span> + aCampo<span style=\"color: #000000;\">&#91;</span> DBS_DEC <span style=\"color: #000000;\">&#93;</span>, .T.<span style=\"color: #000000;\">&#41;</span>, ;<br />                                    <span style=\"color: #000000;\">&#40;</span>nBytesToField := nBytesToField + aCampo<span style=\"color: #000000;\">&#91;</span> DBS_LEN <span style=\"color: #000000;\">&#93;</span> + aCampo<span style=\"color: #000000;\">&#91;</span> DBS_DEC <span style=\"color: #000000;\">&#93;</span>, .F. <span style=\"color: #000000;\">&#41;</span> ;<br />                                  <span style=\"color: #000000;\">&#41;</span> ;<br />                     <span style=\"color: #000000;\">&#125;</span> ;<br />         <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">If</span> nBytesEndField = <span style=\"color: #000000;\">0</span><br />        <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Field not found.\"</span>, <span style=\"color: #ff0000;\">\"Search Error.\"</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">Endif</span><br /><br /><span style=\"color: #00C800;\">EndIf</span><br /><br />nPos := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">While</span> nPos <= <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> cAliasDBF <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>Header<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">&#40;</span>nRegLocate_1 * <span style=\"color: #000000;\">&#40;</span> cAliasDBF <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>RecSize<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + nBytesToField<span style=\"color: #000000;\">&#41;</span> .or. ;<br />      nPos > <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> cAliasDBF <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>Header<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">&#40;</span>nRegLocate_1 * <span style=\"color: #000000;\">&#40;</span> cAliasDBF <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>RecSize<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + nBytesEndField<span style=\"color: #000000;\">&#41;</span><br /><br />    nPos      := <span style=\"color: #00C800;\">AT</span><span style=\"color: #000000;\">&#40;</span> cSearch, <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span>cMemoDbf, nOffset + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">If</span> nPos = <span style=\"color: #000000;\">0</span><br />        nRegLocate_1 = <span style=\"color: #000000;\">-1</span><br />        Exit<br />    <span style=\"color: #00C800;\">EndIf</span><br /><br />    nOffset := nPos := nPos + nOffSet<br /><br />    nRegLocate_1 := INT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> nPos - <span style=\"color: #000000;\">&#40;</span> cAliasDBF <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>Header<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;\">&#40;</span> cAliasDBF <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>RecSize<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: #B900B9;\">// Registro anterior al localizado¿?</span><br /><br />    <span style=\"color: #00C800;\">If</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span> nPos - <span style=\"color: #000000;\">&#40;</span> cAliasDBF <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>Header<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;\">&#40;</span> cAliasDBF <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>RecSize<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;\">0</span><br />        nRegLocate_1 = nRegLocate_1 - <span style=\"color: #000000;\">1</span>  <span style=\"color: #B900B9;\">// Registro anterior al localizado.</span><br />    <span style=\"color: #00C800;\">EndIf</span><br /><br />End<br /><br /><span style=\"color: #00C800;\">Return</span> nRegLocate_1 + <span style=\"color: #000000;\">1</span><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------</span><br /> </div>[/code:3lpbsuaz]", "time": "19:31", "topic": "Búsqueda rápida en DBF enorme?", "username": "FiveWiDi" } ]
Búsqueda rápida en DBF enorme?
[ { "date": "2021-02-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Compañeros, buenos días:\n\nTengo un sistema en RED LOCAL con tablas DBF/CDX funcionando perfectamente, excepto en las búsquedas rápidas de artículos por la descripción.\nDesde un terminal el usuario teclea en un GET parte de la descripción y la APP muestra en un Browse un listado de artículos que contienen parte de esa descripción casi instantánemante. Sin embargo si desde otro terminal en ese momento también están buscando, los resultados se cruzan y el browse muestra los resultados del otro terminal.\n\nMi código:\n[code=fw:1kyh3ipm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />  iif<span style=\"color: #000000;\">&#40;</span>file<span style=\"color: #000000;\">&#40;</span>camino+<span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\t</span>empor.cdx'</span><span style=\"color: #000000;\">&#41;</span>,ferase<span style=\"color: #000000;\">&#40;</span>camino+<span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\t</span>empor.cdx'</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> ; sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>  && <span style=\"color: #ff0000;\">\"camino\"</span> es la ruta del PC <span style=\"color: #00C800;\">local</span><br />  <span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">on</span> descrip tag &<span style=\"color: #000000;\">&#40;</span>camino+<span style=\"color: #ff0000;\">\"tempor\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">to</span> &<span style=\"color: #000000;\">&#40;</span>camino+<span style=\"color: #ff0000;\">\"tempor\"</span><span style=\"color: #000000;\">&#41;</span> additive <span style=\"color: #00C800;\">for</span> upper<span style=\"color: #000000;\">&#40;</span>alltrim<span style=\"color: #000000;\">&#40;</span>nomcl<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> $ upper<span style=\"color: #000000;\">&#40;</span>descrip<span style=\"color: #000000;\">&#41;</span>  && <span style=\"color: #ff0000;\">\"nomcl\"</span> es cadena a buscar  </div>[/code:1kyh3ipm]\n\nProbablemente sea un problema de índices, pero NO logro solventarlo.\n¿Alguna idea?\n\nGracias.\nLORENZO.", "time": "09:12", "topic": "Búsquedas cruzadas", "username": "Loren" } ]
Búsquedas cruzadas
[ { "date": "2021-02-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Estás compartiendo el indice tempor.cdx: Ese es el problema Tienes que crear un indice por cada usuario", "time": "09:35", "topic": "Búsquedas cruzadas", "username": "hmpaquito" } ]
Búsquedas cruzadas
[ { "date": "2021-02-10", "forum": "FiveWin para Harbour/xHarbour", "text": "La variable \"camino\" apunta a la ruta de cada PC local, por lo que cada indice \"tempor.cdx\" se crea en cada terminal.\n\n¿Como haría para crear un índice por cada usuario?\n\nGracias.\nLORENZO.", "time": "09:42", "topic": "Búsquedas cruzadas", "username": "Loren" } ]
Búsquedas cruzadas
[ { "date": "2021-02-14", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Loren\":1uotckmk]\n[code=fw:1uotckmk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />  iif<span style=\"color: #000000;\">&#40;</span>file<span style=\"color: #000000;\">&#40;</span>camino+<span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\t</span>empor.cdx'</span><span style=\"color: #000000;\">&#41;</span>,ferase<span style=\"color: #000000;\">&#40;</span>camino+<span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\t</span>empor.cdx'</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> ; sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>  && <span style=\"color: #ff0000;\">\"camino\"</span> es la ruta del PC <span style=\"color: #00C800;\">local</span><br />  <span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">on</span> descrip tag &<span style=\"color: #000000;\">&#40;</span>camino+<span style=\"color: #ff0000;\">\"tempor\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">to</span> &<span style=\"color: #000000;\">&#40;</span>camino+<span style=\"color: #ff0000;\">\"tempor\"</span><span style=\"color: #000000;\">&#41;</span> additive <span style=\"color: #00C800;\">for</span> upper<span style=\"color: #000000;\">&#40;</span>alltrim<span style=\"color: #000000;\">&#40;</span>nomcl<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> $ upper<span style=\"color: #000000;\">&#40;</span>descrip<span style=\"color: #000000;\">&#41;</span>  && <span style=\"color: #ff0000;\">\"nomcl\"</span> es cadena a buscar  </div>[/code:1uotckmk]\n\n[/quote:1uotckmk]\nHaz intentado por cambiarle el additive por temporary?", "time": "03:01", "topic": "Búsquedas cruzadas", "username": "artu01" } ]
Búsquedas cruzadas
[ { "date": "2015-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos\nutilizo para mis búsquedas en xbrowse, el oBrw:Seek, no me funciona para las búsquedas \nde las letras como la CH, Ñ, LL.\nSi bien tengo colocados éstas definiciones al principio de mi prg:\n\nREQUEST HB_Lang_ES // Para establecer idioma de Mensajes, fechas, etc..\nREQUEST HB_CODEPAGE_ESWIN // Para establecer código de página a Español (Ordenación, etc..)\nHB_LangSelect(\"ES\") // Para mensajes, fechas, etc..\nHB_SetCodePage(\"ESWIN\") // Para ordenación (arrays, cadenas, etc..) *Requiere CodePage.lib\nSet_MyLang(\"es_ES\")\nD_SetCaseSensitive(.F.)\n\nAún así no la puedo hacer funcionar, lo raro es, que cuando presiono una de esas teclas el\noBrw:cSeek no las visualiza en la pantalla.\n\nQue me está faltando o que puedo estar haciendo mal?\nMuchas gracias\nRoberto", "time": "20:27", "topic": "Búsquedas en xBrowse", "username": "TOTOVIOTTI" } ]
Búsquedas en xBrowse
[ { "date": "2015-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Probé también con el D_SetCaseSensitive(.T.)\ny hace lo mismo.", "time": "20:35", "topic": "Búsquedas en xBrowse", "username": "TOTOVIOTTI" } ]
Búsquedas en xBrowse
[ { "date": "2015-10-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Tottoviotti\nA ver si esto te orienta\nUso ADS, y tengo estas declaraciones:\nEn el main\nANNOUNCE RDDSYS\nREQUEST ADS, HB_Lang_ESWIN, HB_CODEPAGE_ESWIN, ;\n ADSKeyCount,ADSKeyNo,OrdKeyCount,OrdKeyNo,AdsGetRelKeyPos,AdsSetRelKeyPos,DBFCDX,DBFFPT\n\nluego\n HB_LangSelect( \"ESWIN\" )\n HB_SetCodePage( \"ESWIN\" )\n\nel xBrowse\n REDEFINE XBROWSE ::oLstArt ID BRW_XBRW OF oDlg ;\n COLUMNS \"FART02\", \"FART06\", \"FART10\", \"FART08\", \"FART25\", \"FART18\", \"FART11\", \"FStk01\", \"FStk02\", \"FStk05\", \"FART22\", \"FART23\";\n HEADERS \"Codigo\", \"Descripcion\", \"PrecioB\", \"PrecioN\", \"CoefAj\", \"UltActPrc\", \"Nivel\", \"StkAct\", \"StkMin\", \"UltActStk\", \"Oferta\", \"LstRed\" ;\n ALIAS h0[\"Articulos\"]:cAlias [b:6u25azof]AUTOSORT[/b:6u25azof] FASTEDIT\n\nEstas imágenes con resultado de búsquedas\nbuscando Ñ\n[img:6u25azof]http&#58;//i795&#46;photobucket&#46;com/albums/yy237/MLimonG/Seek1&#46;jpg[/img:6u25azof]\nbuscando acentuada\n[img:6u25azof]http&#58;//i795&#46;photobucket&#46;com/albums/yy237/MLimonG/Seek2&#46;jpg[/img:6u25azof]", "time": "13:25", "topic": "Búsquedas en xBrowse", "username": "MarioG" } ]
Búsquedas en xBrowse
[ { "date": "2013-03-19", "forum": "FiveWin para Harbour/xHarbour", "text": "buenas tardes\n\n \n\nen xHarbour lo hago y funciona muy bien\n\n#include \"FiveWin.Ch\"\n#include \"cstruct.ch\"\n\ntypedef struct { CTYPE_DOUBLE nDouble[200] } DataStructD12\n\nfunction testes()\n\nLOCAL oData1 IS DataStructD12\n\netc.....\n\nreturn nil\n\nHarbour ahora da este error en el archivo cstruct.ch\n\n #xcommand END C STRUCTURE [<!stru!>] => ; ;\n __ClsSetModule( __ActiveStructure() ); ;\n RETURN\nError: Unresolved external '_HB_FUN___CLSSETMODULE'\n\nAlguien sabe cómo cambiar para que funcione correctamente?\n\nAlguien sabe cómo cambiar para que funcione correctamente?\n\ngracias", "time": "19:55", "topic": "C STRUCTURE", "username": "aferra" } ]
C STRUCTURE
[ { "date": "2013-03-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Lo acabo de reportar en la lista de desarrollo de Harbour, a ver cual sería la forma correcta de reemplazar esa función:\n\n[url:3tz2w4de]https&#58;//groups&#46;google&#46;com/forum/?fromgroups=#!topic/harbour-devel/IiUBBXPAOpc[/url:3tz2w4de]", "time": "20:41", "topic": "C STRUCTURE", "username": "Antonio Linares" } ]
C STRUCTURE
[ { "date": "2013-03-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Problema solucionado: \n\nNo puedes usar cstruct.ch de xHarbour, sino el que proporciona Harbour:\n\n[url:2zvzf52b]https&#58;//github&#46;com/harbour/core/blob/master/contrib/xhb/cstruct&#46;ch[/url:2zvzf52b]\n\nCon ese, funciona bien <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "23:17", "topic": "C STRUCTURE", "username": "Antonio Linares" } ]
C STRUCTURE
[ { "date": "2013-03-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Antonio, casi todo está funcionando, sólo la parte que no muestra los gráficos, creo que se debe a tActivex, al Harbour que se debe usar? \n\nUtilizo RmChart para visualizar las gráficas.\n\nSaludos", "time": "12:47", "topic": "C STRUCTURE", "username": "aferra" } ]
C STRUCTURE