messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2013-09-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nPuedes usar la función DrawText() del API de Windows incluida en FWH\n\n[url:iujqxxs8]http://msdn.microsoft.com/en-us/library/windows/desktop/dd162498(v=vs.85).aspx[/url:iujqxxs8]\n\nprueba con el flag DT_WORDBREAK", "time": "09:42", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Antonio Linares" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2013-09-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n yo lo hago asi:\n\nprueba a usar la font \"ARIAL\" ó \"LUCIDA CONSOLE\"\n\n nxLen := 50\n nxLineas := MlCount( ::oQry:FieldGet(\"comentarios\"), nxLen )\n pRen := 3.80 + 00.20\n for x := 1 to nxLineas\n cLine := MemoLine( ::oQry:FieldGet(\"comentarios\"), nxLen, x )\n oPrn:cmSay( pRen, 14.30, cLine, oFnt[5] )\n pRen += 00.20\n next\n\nsaludos\npaco", "time": "16:40", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Francisco Horta" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2013-09-11", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1937wctm]Carlos,\n\nPuedes usar la función DrawText() del API de Windows incluida en FWH\n\n[url:1937wctm]http://msdn.microsoft.com/en-us/library/windows/desktop/dd162498(v=vs.85).aspx[/url:1937wctm]\n\nprueba con el flag DT_WORDBREAK[/quote:1937wctm]\nAntonio:\n¿Como se usaría desde fivewin?.\nveo esta función muy interesante,mas cuando he tenido que imprimir observaciones de un tratamiento en un box del objeto printer, y veo que con esto quedaría perfectamente justificado.\nUn saludo y mil gracias", "time": "18:06", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "groiss" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2013-09-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose Luis,\n\nEn el código fuente de FWH se usa en diversos sitios. Un ejemplo:\n\n#define DT_TOP 0x00000000\n#define DT_LEFT 0x00000000\n#define DT_CENTER 0x00000001\n#define DT_RIGHT 0x00000002\n#define DT_VCENTER 0x00000004\n#define DT_BOTTOM 0x00000008\n#define DT_WORDBREAK 0x00000010\n#define DT_SINGLELINE 0x00000020\n#define DT_EXPANDTABS 0x00000040\n#define DT_TABSTOP 0x00000080\n#define DT_NOCLIP 0x00000100\n#define DT_EXTERNALLEADING 0x00000200\n#define DT_CALCRECT 0x00000400\n#define DT_NOPREFIX 0x00000800\n\nDrawText( hDC, cText, { nRow + 35, nCol - 5, nRow + 48, nCol + 40 }, DT_WORDBREAK )", "time": "20:48", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Antonio Linares" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2013-09-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio:\n\nA partir de que versión se incluyó la función DrawText() ??\n\nSaludos", "time": "15:33", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Armando" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2013-09-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Armando,\n\nDesde casi el principio <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "17:34", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Antonio Linares" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2013-09-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias maestro !\n\nSaludos", "time": "18:13", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Armando" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2013-09-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias, Antonio, en cuanto me incorpore de las vacacionesme pongo con ella, pues el ema me ha creado mas de un dolor de cabeza.\nUn saludo y mil gracias\nJosé Luis", "time": "18:22", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "groiss" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2014-04-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Tengo un documento con Tprinter, don he sustituido un campo caracter por otro Memo (mas grande) y logicamente no funciona con el siguiente código:\n\noPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, , ROJO )\n\nSi le pongo ancho,se puede ver solo la primera linea del memo oPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, 2500, ROJO )\n\nLogicamente debería usar DrawText. \n\nHe probado con nAltoTexto := DrawText( hdc, mcomer->NOTAS, { nFilReg + 0.5, 4.5, nFilReg + 10, 2500 }, DT_WORDBREAK ) y compruebo que me devuelve siempre un valor superior a cero, con el número de lineas del DRAWTEXT con la cual la función es correcta. Pero no aparece nada en el documento. \n\nHe probado con oPrn:CmSay ( nFilReg+0.5, 4.5, DrawText( hdc, mcomer->NOTAS, { nFilReg + 0.5, 4.5, nFilReg + 10, 2500 }, DT_WORDBREAK ), oFon3, , NEGRO )\n\nPero nada. ¿que tengo que hacer para que aparezca en el documento)", "time": "17:51", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Manuel Valdenebro" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2014-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Manuel Valdenebro\":1nbux91a]Tengo un documento con Tprinter, don he sustituido un campo caracter por otro Memo (mas grande) y logicamente no funciona con el siguiente código:\n\noPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, , ROJO )\n\nSi le pongo ancho,se puede ver solo la primera linea del memo oPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, 2500, ROJO )\n\nLogicamente debería usar DrawText. \n\nHe probado con nAltoTexto := DrawText( hdc, mcomer->NOTAS, { nFilReg + 0.5, 4.5, nFilReg + 10, 2500 }, DT_WORDBREAK ) y compruebo que me devuelve siempre un valor superior a cero, con el número de lineas del DRAWTEXT con la cual la función es correcta. Pero no aparece nada en el documento. \n\nHe probado con oPrn:CmSay ( nFilReg+0.5, 4.5, DrawText( hdc, mcomer->NOTAS, { nFilReg + 0.5, 4.5, nFilReg + 10, 2500 }, DT_WORDBREAK ), oFon3, , NEGRO )\n\nPero nada. ¿que tengo que hacer para que aparezca en el documento)[/quote:1nbux91a]\n\n¿Alguna alma caritativa que me dé una ayudita?", "time": "06:36", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Manuel Valdenebro" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2014-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Manuel,\n\nPara imprimir yo utilizo la estupenda clase UtilPrn de Rafa Thefull. Esa clase lleva impresion de campos memo. La clase lleva los fuentes, por lo que debe ser facil coger \"lo que se necesite\" para adaptarlo a tu situacion.\n\nSaludos", "time": "07:25", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "hmpaquito" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2014-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Manuel, \ntendrás que fabricarte una funcion para imprimir los memos\nBasado en el codigo que puso el compañero Francisco Horta unos post más arriba\n[code=fw:1ix1n2ux]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Function</span> PintaMemo<span style=\"color: #000000;\">&#40;</span> oPrn, nRow, nCol, nWidth, cMemo, oFont <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> cLine  := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">Local</span> nLineas := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">Local</span> x<br /><span style=\"color: #00C800;\">Local</span> nAvanza  := <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #B900B9;\">//nWidth ancho de columna</span><br />    nLineas := MlCount<span style=\"color: #000000;\">&#40;</span> cMemo, nWidth  <span style=\"color: #000000;\">&#41;</span><br />    nAvanza := nRow<br />    <span style=\"color: #00C800;\">for</span> x := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> nLineas<br />        cLine := MemoLine<span style=\"color: #000000;\">&#40;</span> cMemo, nWidth, x <span style=\"color: #000000;\">&#41;</span><br />        oPrn:<span style=\"color: #000000;\">cmSay</span><span style=\"color: #000000;\">&#40;</span> nAvanza, nCol, cLine, oFont <span style=\"color: #000000;\">&#41;</span><br />        nAvanza += oFont:<span style=\"color: #000000;\">nHeight</span> + <span style=\"color: #000000;\">0.2</span>    <span style=\"color: #B900B9;\">// Esto será lo más dificil aunque con oFont:nHeight podrás calcular algo</span><br />   <span style=\"color: #00C800;\">next</span><br /><span style=\"color: #00C800;\">Return</span> nLineas<br /> </div>[/code:1ix1n2ux]\n\nNo lo he probado, pero espero te de por lo menos alguna luz", "time": "12:43", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "cnavarro" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2014-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias hmpaquito y Cristobal por vuestra contestación. La solución para imprimir un campo MEMO, tanto con la clase tReport como con la clase tPinter, la tengo implementada desde hace tiempo con un MEMOLINE, al igual que hace Rafa Carmona en su clase tImprime. \n\nPero si leeis la contestación en el inicio de este hilo del maestro Antonio Linares, el da una solución distinta con la función de Windows DrawText(). Sobre esto iba mi pregunta. Es decir, sobre imprimir un campo MEMO, sin la antigua funcion MEMOLINE.\n\nHe conseguido que la función DrawText() me devuelva el número de lineas del campo memo, pero no sé despues como hacer para que se imprima el contenido del campo memo de esta nueva manera.", "time": "15:52", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Manuel Valdenebro" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2014-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba asi.\n\ncTxt:=\"Décimo Noveno: El Trabajador no podrá ingresar al trabajo en estado de ebriedad, ni podrá consumir \" +;\n \"bebidas alcohólicas ni sustancias prohibidas en su lugar de trabajo. Ni se permitirá el porte de armas \" +;\n \"blancas ni de ninguna otra especie. \"\nImp_Memo(cTxt,oPrn,16.6,2.0,18.0,oFnt1,0.4,)\n\nFUNCTION Imp_Memo(cTxt,oPrn,nRow,nCol,nWid,oFont,nSkp,nClr)\n LOCAL cLin, lCont:=.T., nP:=0, lNext, cC, nW\n DEFAULT nSkp:=0.4, nClr:=0\n cTxt:=Alltrim(cTxt)\n nW:=nWid-0.2\n nRow-=nSkp\n oPrn:Cmtr2Pix(0,@nWid)\n DO WHILE lCont // un desmadre para separar\n cLin:=cC:=\"\" // y justificar los memos!!\n lNext:=.T.\n DO WHILE oPrn:GetTextWidth(cLin,oFont)<nWid ;\n .AND. nP<=Len(cTxt) .AND. lNext\n nP++\n cC:=Substr(cTxt,nP,1)\n IF Asc(cC)<>13\n cLin+=cC\n ELSE\n nP++\n lNext:=.F.\n ENDIF\n ENDDO\n IF Asc(cC)<>13 .AND. Asc(cC)<>0\n cC:=Substr(cTxt,nP+1,1)\n IF \" \"$cLin .AND. cC<>\" \"\n DO WHILE cC<>\" \" .AND. Len(cLin)>0\n cLin:=Substr(cLin,1,Len(cLin)-1)\n cC:=Right(cLin,1)\n nP--\n ENDDO\n ELSE\n cLin:=Substr(cLin,1,Len(cLin)-2)+\"-\"\n cC:=Right(cLin,1)\n nP-=2\n ENDIF\n oPrn:CmSay(nRow+=nSkp,nCol,Alltrim(cLin),oFont,nW,nClr,,3)\n ELSE\n oPrn:CmSay(nRow+=nSkp,nCol,Alltrim(cLin),oFont,,nClr)\n ENDIF\n IF nP>=Len(cTxt)\n lCont:=.F.\n ENDIF\n ENDDO\nRETURN (Nil)\n\nsaludos", "time": "16:25", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "jbrita" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2014-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Ahora si entiendo lo que intentas\nHas probado directamente con:\n[code=fw:5wm92mk5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />DrawText<span style=\"color: #000000;\">&#40;</span> oPrn:<span style=\"color: #000000;\">hdc</span>, mcomer->NOTAS, <span style=\"color: #000000;\">&#123;</span> nFilReg + <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">4.5</span>, nFilReg + <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">2500</span> <span style=\"color: #000000;\">&#125;</span>, DT_WORDBREAK <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp;</div>[/code:5wm92mk5]", "time": "18:14", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "cnavarro" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2014-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"cnavarro\":3nkxjvix]Ahora si entiendo lo que intentas\nHas probado directamente con:\n[code=fw:3nkxjvix]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />DrawText<span style=\"color: #000000;\">&#40;</span> oPrn:<span style=\"color: #000000;\">hdc</span>, mcomer->NOTAS, <span style=\"color: #000000;\">&#123;</span> nFilReg + <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">4.5</span>, nFilReg + <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">2500</span> <span style=\"color: #000000;\">&#125;</span>, DT_WORDBREAK <span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:3nkxjvix][/quote:3nkxjvix]\n\nEsa función te devuelve el número de lineas a imprimir, según el ancho que le pongas. Pero no imprime nada.", "time": "22:57", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Manuel Valdenebro" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2014-04-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Allá por el 2002 hice algunos cambios a TPrinter y los vengo usando desde entonces sin problema. Publique ejemplos, ya no los tengo pero he aquí los cambios.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.despachoarteaga.com.mx/descargas/Printer.zip\">http://www.despachoarteaga.com.mx/descargas/Printer.zip</a><!-- m -->", "time": "02:23", "topic": "Ayuda -imprimir factura con columna texto tipo memo", "username": "Alfredo Arteaga" } ]
Ayuda -imprimir factura con columna texto tipo memo
[ { "date": "2022-09-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos.\n\nTengo una necesidad urgente de poder implementar un requerimiento, sobre el uso de Combobox.\n\nMaestro Antonio, me presento un código para manejar 2 combobox, el cual amablemente Francisco Alegría adapto a mi necesidad y quedo funcionando muy bien.\n\nEste se trata que al seleccionar una Ciudad en su Array, filtra y muestra en el array de comunas, solo las que pertenecen, pero ahora debo agregar un 3er array, que contiene los sectores de cada comuna y que debe ser filtrado según la comuna seleccionada, final mente obtendría para una ciudad, todas las comunas y para cada comuna todos sus sectores.\n\nMuy agradecido de Francisco por haber modificado este codigo.\n\nEspero haber expuesto bien mi requerimiento.\n\nMuchos saludos.\nAntonio\n\nCódigo Funcional para 2 Combobox anidados:\n[code=fw:1r0uv3d4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">function</span> Prue_Combo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oDlg, cCiudad, cComuna, oComuna<br />   <span style=\"color: #00C800;\">local</span> aCiudades, aComunas, aArr<br /><br />   aArr := CrearArrays2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   aCiudades := aArr<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   aComunas  := aArr<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><br /><br />   cCiudad := aCiudades<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   cComuna := aComunas<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Seleccione Ciudad y Comuna\"</span><br /><br />   @ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> cCiudad <span style=\"color: #0000ff;\">ITEMS</span> aCiudades <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">130</span>,<span style=\"color: #000000;\">200</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> oComuna:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span> aComunas<span style=\"color: #000000;\">&#91;</span> AScan<span style=\"color: #000000;\">&#40;</span> aCiudades, cCiudad <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, oComuna:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">&#40;</span> oComuna:<span style=\"color: #000000;\">aItems</span><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;\">&#41;</span><br /><br />   @ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">160</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oComuna <span style=\"color: #0000ff;\">VAR</span> cComuna <span style=\"color: #0000ff;\">ITEMS</span> aComunas<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">130</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />   @ <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">300</span>/<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>-<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">100</span>/<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Mostrar seleccionado\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />            <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> cCiudad, cComuna <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">Function</span> CrearArrays2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> aArray1 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aArray2 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aItems := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, nVar, n<br />   <span style=\"color: #00C800;\">local</span> aCiudades:=<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'ARICA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'PARINACOTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'IQUIQUE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'TAMARUGAL'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'ANTOFAGASTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">49</span>,<span style=\"color: #ff0000;\">'SANTIAGO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">54</span>,<span style=\"color: #ff0000;\">'TALAGANTE'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #00C800;\">local</span> aComunas:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'ARICA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'CAMARONES'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'PUTRE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'GENERAL LAGOS'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'IQUIQUE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'ALTO HOSPICIO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'POZO ALMONTE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'CAMIÑA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'COLCHANE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'HUARA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'PICA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'ANTOFAGASTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'MEJILLONES'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'SIERRA GORDA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'TALTAL'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #00C800;\">local</span> aSector= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'CERRO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'COSTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'CENTRO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'COSTA SUR'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'VALLE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'ALTO PIREN'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'ALTO BLANCO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'VALLE VERDE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'RIO MAIPO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'ALTO JAHUEL'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'SAN JORGE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'SAN LEON'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'CERRILLOS'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'SAN ADOLFO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'EL MONTE'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br /><br /><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>aCiudades<span style=\"color: #000000;\">&#41;</span><br />      aadd<span style=\"color: #000000;\">&#40;</span>aArray1, aCiudades<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 />      nVar := aCiudades<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />      aItems := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />      AEval<span style=\"color: #000000;\">&#40;</span> aComunas, <span style=\"color: #000000;\">&#123;</span>|a| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>a<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> == nVar, aadd<span style=\"color: #000000;\">&#40;</span>aItems, a<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;\">&#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> len<span style=\"color: #000000;\">&#40;</span>aItems<span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">0</span>, aadd<span style=\"color: #000000;\">&#40;</span>aItems,<span style=\"color: #ff0000;\">\"Sin Valor\"</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span><br />      aadd<span style=\"color: #000000;\">&#40;</span>aArray2, aItems<span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">Next</span><br /><br />  SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">&#123;</span> aArray1, aArray2 <span style=\"color: #000000;\">&#125;</span><br /><br /> </div>[/code:1r0uv3d4]", "time": "16:38", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "remtec" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos.\n\nAlguna posibilidad?\n\nSaludos\n\nAntonio", "time": "01:22", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "remtec" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Acá te dejo el ejemplo, prueba y comenta.\n[code=fw:1yzs5nja]<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: #00C800;\">function</span> Prue_Combo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, cCiudad, cComuna, oComuna<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aCiudades, aComunas, aArr, nZ1, nZ2, encon,i, nZona<br /><br />&nbsp; &nbsp;aArr := CrearArrays2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aCiudades := aArr<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;aComunas &nbsp;:= aArr<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><br /><br />&nbsp; <span style=\"color: #B900B9;\">// cCiudad := aCiudades[1] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<----- Aqui siempre se ubica en el primer registro</span><br />&nbsp; <span style=\"color: #B900B9;\">// cComuna := aComunas[1,1] &nbsp; &nbsp; &nbsp; &nbsp; <----- Aqui siempre se ubica en el primer registro</span><br /><br />&nbsp; &nbsp;cCiudad := <span style=\"color: #ff0000;\">'TAMARUGAL'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// <----- Aqui le asigno un valor cualquier, donde quiero que se ubique</span><br />&nbsp; &nbsp;cComuna := <span style=\"color: #ff0000;\">'COLCHANE'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// <----- Aqui le asigno un valor cualquier, donde quiero que se ubique</span><br /><br /><br />****** Aqui aplico tu rutina para ubicar la Comuna y lo hace muy bien<br /><br />nZ1:=<span style=\"color: #000000;\">0</span><br />nZ2:=<span style=\"color: #000000;\">0</span><br />encon:=.F.<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>aComunas<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;nZona := ascan<span style=\"color: #000000;\">&#40;</span>aComunas<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span>,Trim<span style=\"color: #000000;\">&#40;</span>cComuna<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nZona > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; encon := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//MsgInfo(\"La posicion es \" + str(i)+ \",\"+ str(nZona))</span><br />&nbsp; &nbsp; &nbsp; &nbsp; nZ1:=i<br />&nbsp; &nbsp; &nbsp; &nbsp; nZ2:=nZona<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">NEXT</span> i<br /><span style=\"color: #00C800;\">IF</span> !encon<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"No lo encontro\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// El Proble que nunca se ubica el la comuna seleccionada en el combobox, siempre lo hace en el primer elemento</span><br /><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Seleccione Ciudad y Comuna\"</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> cCiudad <span style=\"color: #0000ff;\">ITEMS</span> aCiudades <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">130</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> oComuna:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span> aComunas<span style=\"color: #000000;\">&#91;</span> AScan<span style=\"color: #000000;\">&#40;</span> aCiudades, cCiudad <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, oComuna:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">&#40;</span> oComuna:<span style=\"color: #000000;\">aItems</span><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;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">160</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oComuna <span style=\"color: #0000ff;\">VAR</span> cComuna <span style=\"color: #0000ff;\">ITEMS</span> aComunas<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">130</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// <------- Aqui necedito que se muestre al ingresar la comuna seleccionada</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">300</span>/<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>-<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">100</span>/<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Mostrar seleccionado\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> cCiudad, cComuna <span style=\"color: #000000;\">&#41;</span><br />&nbsp; <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>oComuna:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span> aComunas<span style=\"color: #000000;\">&#91;</span> nZ1<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, oComuna:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">&#40;</span> nZ2 <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">//<- Creo que te faltaba esto</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">Function</span> CrearArrays2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aArray1 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aArray2 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aItems := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, nVar, n<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aCiudades:=<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'ARICA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'PARINACOTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'IQUIQUE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'TAMARUGAL'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'ANTOFAGASTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">49</span>,<span style=\"color: #ff0000;\">'SANTIAGO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">54</span>,<span style=\"color: #ff0000;\">'TALAGANTE'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aComunas:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'ARICA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'CAMARONES'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'PUTRE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'GENERAL LAGOS'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'IQUIQUE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'ALTO HOSPICIO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'POZO ALMONTE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'CAMIÑA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'COLCHANE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'HUARA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'PICA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'ANTOFAGASTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'MEJILLONES'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'SIERRA GORDA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'TALTAL'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br /><span style=\"color: #B900B9;\">// Aquí se generan los nuevos Array para hacer los filtro del combobox</span><br /><br /><br />&nbsp; <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>aCiudades<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aadd<span style=\"color: #000000;\">&#40;</span>aArray1, aCiudades<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 />&nbsp; &nbsp; &nbsp; nVar := aCiudades<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; aItems := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; AEval<span style=\"color: #000000;\">&#40;</span> aComunas, <span style=\"color: #000000;\">&#123;</span>|a| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>a<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> == nVar, aadd<span style=\"color: #000000;\">&#40;</span>aItems, a<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;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> len<span style=\"color: #000000;\">&#40;</span>aItems<span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">0</span>, aadd<span style=\"color: #000000;\">&#40;</span>aItems,<span style=\"color: #ff0000;\">\"Sin Valor\"</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aadd<span style=\"color: #000000;\">&#40;</span>aArray2, aItems<span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">Next</span><br /><br />&nbsp; SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">&#123;</span> aArray1, aArray2 <span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:1yzs5nja]", "time": "04:08", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "cmsoft" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-07", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"cmsoft\":3dq8v4vp]Acá te dejo el ejemplo, prueba y comenta.\n[code=fw:3dq8v4vp]<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: #00C800;\">function</span> Prue_Combo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oDlg, cCiudad, cComuna, oComuna<br />   <span style=\"color: #00C800;\">local</span> aCiudades, aComunas, aArr, nZ1, nZ2, encon,i, nZona<br /><br />   aArr := CrearArrays2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   aCiudades := aArr<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   aComunas  := aArr<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><br /><br />  <span style=\"color: #B900B9;\">// cCiudad := aCiudades[1]          <----- Aqui siempre se ubica en el primer registro</span><br />  <span style=\"color: #B900B9;\">// cComuna := aComunas[1,1]         <----- Aqui siempre se ubica en el primer registro</span><br /><br />   cCiudad := <span style=\"color: #ff0000;\">'TAMARUGAL'</span>              <span style=\"color: #B900B9;\">// <----- Aqui le asigno un valor cualquier, donde quiero que se ubique</span><br />   cComuna := <span style=\"color: #ff0000;\">'COLCHANE'</span>          <span style=\"color: #B900B9;\">// <----- Aqui le asigno un valor cualquier, donde quiero que se ubique</span><br /><br /><br />****** Aqui aplico tu rutina para ubicar la Comuna y lo hace muy bien<br /><br />nZ1:=<span style=\"color: #000000;\">0</span><br />nZ2:=<span style=\"color: #000000;\">0</span><br />encon:=.F.<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>aComunas<span style=\"color: #000000;\">&#41;</span><br />     nZona := ascan<span style=\"color: #000000;\">&#40;</span>aComunas<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span>,Trim<span style=\"color: #000000;\">&#40;</span>cComuna<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #00C800;\">IF</span> nZona > <span style=\"color: #000000;\">0</span><br />        encon := .T.<br />        <span style=\"color: #B900B9;\">//MsgInfo(\"La posicion es \" + str(i)+ \",\"+ str(nZona))</span><br />        nZ1:=i<br />        nZ2:=nZona<br />     <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">NEXT</span> i<br /><span style=\"color: #00C800;\">IF</span> !encon<br />    <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"No lo encontro\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// El Proble que nunca se ubica el la comuna seleccionada en el combobox, siempre lo hace en el primer elemento</span><br /><br /><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Seleccione Ciudad y Comuna\"</span><br /><br />   @ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> cCiudad <span style=\"color: #0000ff;\">ITEMS</span> aCiudades <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">130</span>,<span style=\"color: #000000;\">200</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> oComuna:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span> aComunas<span style=\"color: #000000;\">&#91;</span> AScan<span style=\"color: #000000;\">&#40;</span> aCiudades, cCiudad <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, oComuna:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">&#40;</span> oComuna:<span style=\"color: #000000;\">aItems</span><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;\">&#41;</span><br /><br />   @ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">160</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oComuna <span style=\"color: #0000ff;\">VAR</span> cComuna <span style=\"color: #0000ff;\">ITEMS</span> aComunas<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">130</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg                   <span style=\"color: #B900B9;\">// <------- Aqui necedito que se muestre al ingresar la comuna seleccionada</span><br />   <br />   @ <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">300</span>/<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>-<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">100</span>/<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Mostrar seleccionado\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />            <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> cCiudad, cComuna <span style=\"color: #000000;\">&#41;</span><br />  <br />   <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>oComuna:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span> aComunas<span style=\"color: #000000;\">&#91;</span> nZ1<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, oComuna:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">&#40;</span> nZ2 <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #B900B9;\">//<- Creo que te faltaba esto</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">Function</span> CrearArrays2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> aArray1 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aArray2 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aItems := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, nVar, n<br />   <span style=\"color: #00C800;\">local</span> aCiudades:=<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'ARICA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'PARINACOTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'IQUIQUE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'TAMARUGAL'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'ANTOFAGASTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">49</span>,<span style=\"color: #ff0000;\">'SANTIAGO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">54</span>,<span style=\"color: #ff0000;\">'TALAGANTE'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #00C800;\">local</span> aComunas:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'ARICA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'CAMARONES'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'PUTRE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'GENERAL LAGOS'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'IQUIQUE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'ALTO HOSPICIO'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'POZO ALMONTE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'CAMIÑA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'COLCHANE'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'HUARA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #ff0000;\">'PICA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'ANTOFAGASTA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'MEJILLONES'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'SIERRA GORDA'</span><span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #ff0000;\">'TALTAL'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br /><span style=\"color: #B900B9;\">// Aquí se generan los nuevos Array para hacer los filtro del combobox</span><br /><br /><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>aCiudades<span style=\"color: #000000;\">&#41;</span><br />      aadd<span style=\"color: #000000;\">&#40;</span>aArray1, aCiudades<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 />      nVar := aCiudades<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />      aItems := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />      AEval<span style=\"color: #000000;\">&#40;</span> aComunas, <span style=\"color: #000000;\">&#123;</span>|a| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>a<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> == nVar, aadd<span style=\"color: #000000;\">&#40;</span>aItems, a<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;\">&#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> len<span style=\"color: #000000;\">&#40;</span>aItems<span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">0</span>, aadd<span style=\"color: #000000;\">&#40;</span>aItems,<span style=\"color: #ff0000;\">\"Sin Valor\"</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span><br />      aadd<span style=\"color: #000000;\">&#40;</span>aArray2, aItems<span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">Next</span><br /><br />  SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">&#123;</span> aArray1, aArray2 <span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:3dq8v4vp][/quote:3dq8v4vp]\n\n\nAmigo Cesar.\n\nMil disculpas por haberte molestado.\n\nComo siempre, eres un Maestro, pero en esta publicación, me encuentro solicitando un tercer combobox anidado.\n\nEl código que me has entregado funciono perfecto, pero es otro requerimiento que te realice en tu correo privado, de poder modificar sobre los combobox ya grabados.\n\nMe alegro mucho que lo hayas publicados para nuestros colegas que lo puedan nececitar.\n\n\nInfinitas gracias.\n\nMuchos Saludos.\n\nAntonio", "time": "04:34", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "remtec" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos Buen dia\n\nAlguna idea de como anidar 3 combobox, codigo funcionando Ciudad y Comuna, falta agregar sectores que depende de Comunas??\n\nSaludos\n\nAntonio", "time": "16:14", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "remtec" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\nAplicando la misma lógica que usamos en el primer combo para que se rellene el segundo, podrias extenderlo al segundo para que se rellene el tercero.\n\nNo lo he probado, pero diria que es el camino a seguir", "time": "17:14", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "Antonio Linares" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen dia Maestro Antonio.\n\nMuchas gracias por responder.\n\nEs lo que he tratado de hacer, pero no me ha resultado, ya llevo 2 dias y no doy con la solucion, continuare intentando, claro que entre mas intentos mas me nublo.\n\nMuchos saludos\n\nAntonio.", "time": "17:41", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "remtec" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Aqui tienes una primera versión, cuya lógica aun no es correcta, pero te puede servir de arranque <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nDepende de como quieras organizar las provincias, las ciudades y los barrios. Segun como ordenes los arrays asi habrá\nque cambiar el código.\n\n[code=fw:20uul2e1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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 />   <span style=\"color: #00C800;\">local</span> oDlg, cProvincia := <span style=\"color: #ff0000;\">\"Almeria\"</span>, oCiudades, cCiudad := <span style=\"color: #ff0000;\">\"Uno\"</span><br />   <span style=\"color: #00C800;\">local</span> cBarrio := <span style=\"color: #ff0000;\">\"aaa\"</span>, oBarrios<br />   <span style=\"color: #00C800;\">local</span> aProvincias := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Almeria\"</span>, <span style=\"color: #ff0000;\">\"Cadiz\"</span>, <span style=\"color: #ff0000;\">\"Cordoba\"</span>, <span style=\"color: #ff0000;\">\"Granada\"</span>, <span style=\"color: #ff0000;\">\"Huelva\"</span>, <span style=\"color: #ff0000;\">\"Jaen\"</span>, <span style=\"color: #ff0000;\">\"Malaga\"</span>, <span style=\"color: #ff0000;\">\"Sevilla\"</span> <span style=\"color: #000000;\">&#125;</span> <br />   <span style=\"color: #00C800;\">local</span> aCiudades := <span style=\"color: #000000;\">&#123;</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>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Cuatro\"</span>, <span style=\"color: #ff0000;\">\"Cinco\"</span>, <span style=\"color: #ff0000;\">\"Seis\"</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Siete\"</span>, <span style=\"color: #ff0000;\">\"Ocho\"</span>, <span style=\"color: #ff0000;\">\"Nueve\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">local</span> aBarrios := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"aaa\"</span>, <span style=\"color: #ff0000;\">\"bbb\"</span>, <span style=\"color: #ff0000;\">\"ccc\"</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ddd\"</span>, <span style=\"color: #ff0000;\">\"eee\"</span>, <span style=\"color: #ff0000;\">\"fff\"</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ggg\"</span>, <span style=\"color: #ff0000;\">\"hhh\"</span>, <span style=\"color: #ff0000;\">\"iii\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Seleccione provincia, ciudad y barrio\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">200</span><br /><br />   @ <span style=\"color: #000000;\">1</span>,  <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">COMBOBOX</span> cProvincia <span style=\"color: #0000ff;\">ITEMS</span> aProvincias ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> oCiudades:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span> aCiudades<span style=\"color: #000000;\">&#91;</span> AScan<span style=\"color: #000000;\">&#40;</span> aProvincias, cProvincia <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, oCiudades:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">&#40;</span> oCiudades:<span style=\"color: #000000;\">aItems</span><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;\">&#41;</span><br /><br />   @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCiudades <span style=\"color: #0000ff;\">VAR</span> cCiudad <span style=\"color: #0000ff;\">ITEMS</span> aCiudades<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> oBarrios:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span> GetBarrios<span style=\"color: #000000;\">&#40;</span> aCiudades, cCiudad, aBarrios <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, oBarrios:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">&#40;</span> oBarrios:<span style=\"color: #000000;\">aItems</span><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;\">&#41;</span>  <br /><br />   @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">21</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oBarrios <span style=\"color: #0000ff;\">VAR</span> cBarrio <span style=\"color: #0000ff;\">ITEMS</span> aBarrios<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br /><br />   @ <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Mostrar seleccionado\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> cProvincia, cCiudad + <span style=\"color: #ff0000;\">\",\"</span> + cBarrio <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> GetBarrios<span style=\"color: #000000;\">&#40;</span> aCiudades, cCiudad, aBarrios <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> n, nAt<br /><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> aCiudades <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> nAt := AScan<span style=\"color: #000000;\">&#40;</span> aCiudades<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span>, cCiudad <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #000000;\">0</span> <br />         <span style=\"color: #00C800;\">return</span> aBarrios<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><br />      <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">next</span><br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #ff0000;\">\"\"</span>  </div>[/code:20uul2e1]", "time": "18:49", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "Antonio Linares" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Imagino que la forma correcta de organizar los datos seria asi:\n\n local aProvincias := { \"Almeria\", \"Cadiz\", \"Cordoba\", \"Granada\", \"Huelva\", \"Jaen\", \"Malaga\", \"Sevilla\" }\n local aCiudades := { { \"Uno\", \"Dos\", \"Tres\" }, { \"Cuatro\", \"Cinco\", \"Seis\" }, { \"Siete\", \"Ocho\", \"Nueve\" } }\n local aBarrios := { { { \"aaa\", \"bbb\", \"ccc\" }, { \"ddd\", \"eee\", \"fff\" }, { \"ggg\", \"hhh\", \"iii\" } },;\n { { \"jjj\", \"kkk\", \"lll\" }, { \"mmm\", \"nnn\", \"ooo\" }, { \"ppp\"; \"qqq\", \"rrr\" } },;\n { { \"sss\", \"ttt\", \"uuu\" }, { \"vvv\", \"www\", \"xxx\" }, { \"yyy\", \"zzz\" } } }\n\nluego la ciudad \"Uno\" tiene los barrios { \"aaa\", \"bbb\", \"ccc\" }\nla ciudad \"Dos\" tiene los barrios { \"ddd\", \"eee\", \"fff\" }\netc...\n\nSegun como quieras organizar los datos, asi tiene que cambiar el código para encontrar la provincia, ciudad y barrio", "time": "18:59", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "Antonio Linares" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Maestro Antonio\n\nMuy amable, muchas gracias por su ayuda.\n\nEstoy intentando encontrar el porque se cae después de algunas selecciones, es aleatorio, en la primera selección de ciudad, o en otras de los combobox.\n\nSeguiré a ver si logro encontrar el origen.\n\n\nMuchas gracias\n\nAntonio.\n\nError:\n[code=fw:1xan26s6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />Application<br />===========<br />&nbsp; &nbsp;Path and <span style=\"color: #0000ff;\">name</span>: <span style=\"color: #000000;\">C</span>:\\Desa\\Clarp Estetica\\Clarp.exe <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">32</span> bits<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">Size</span>: <span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">357</span>,<span style=\"color: #000000;\">440</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style=\"color: #000000;\">Harbour</span> <span style=\"color: #000000;\">3.2</span>.0dev <span style=\"color: #000000;\">&#40;</span>r2008190002<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;version: <span style=\"color: #000000;\">FWH</span> <span style=\"color: #000000;\">22.03</span><br />&nbsp; &nbsp;C compiler version: <span style=\"color: #000000;\">Borland</span>/Embarcadero C++ <span style=\"color: #000000;\">7.0</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">32</span>-bit<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Windows version: <span style=\"color: #000000;\">6.2</span>, Build <span style=\"color: #000000;\">9200</span> <br /><br />&nbsp; &nbsp;Time <span style=\"color: #0000ff;\">from</span> start: <span style=\"color: #000000;\">0</span> hours <span style=\"color: #000000;\">0</span> mins <span style=\"color: #000000;\">12</span> secs <br />&nbsp; &nbsp;Error occurred <span style=\"color: #00C800;\">at</span>: <span style=\"color: #000000;\">07</span>/<span style=\"color: #000000;\">09</span>/<span style=\"color: #000000;\">2022</span>, <span style=\"color: #000000;\">20</span>:<span style=\"color: #000000;\">37</span>:<span style=\"color: #000000;\">02</span><br />&nbsp; &nbsp;Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1132</span> &nbsp;Error de rango: <span style=\"color: #000000;\">acceso</span> al array<br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#91;</span> &nbsp; <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> = A &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp;\"</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>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp;\"</span>,<span style=\"color: #ff0000;\">\"Cuatro\"</span>,<span style=\"color: #ff0000;\">\"Cinco\"</span>,<span style=\"color: #ff0000;\">\"Seis\"</span><span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp;\"</span>,<span style=\"color: #ff0000;\">\"Siete\"</span>,<span style=\"color: #ff0000;\">\"Ocho\"</span>,<span style=\"color: #ff0000;\">\"Nueve\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span> length: <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#91;</span> &nbsp; <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> = N &nbsp; <span style=\"color: #000000;\">5</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\Clarp.PRG => <span style=\"color: #000000;\">&#40;</span>b<span style=\"color: #000000;\">&#41;</span>COMBOBOX3<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">565</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">COMBOBOX</span>.PRG => TCOMBOBOX:<span style=\"color: #0000ff;\">CHANGE</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">581</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\CONTROL.PRG => TCONTROL:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1824</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">COMBOBOX</span>.PRG => TCOMBOBOX:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">923</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">WINDOW</span>.PRG => _FWH<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3560</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: &nbsp;=> SENDMESSAGE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #000000;\">COMMAND</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">453</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: &nbsp;=> TWINDOW:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1140</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: &nbsp;=> DIALOGBOXINDIRECT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #0000ff;\">ACTIVATE</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">304</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\Clarp.PRG => COMBOBOX3<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">574</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\Clarp.PRG => <span style=\"color: #000000;\">&#40;</span>b<span style=\"color: #000000;\">&#41;</span>MAIN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">111</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">BTNBMP</span>.PRG => TBTNBMP:<span style=\"color: #0000ff;\">CLICK</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">713</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">BTNBMP</span>.PRG => TBTNBMP:<span style=\"color: #000000;\">LBUTTONUP</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">999</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\CONTROL.PRG => TCONTROL:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1845</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">BTNBMP</span>.PRG => TBTNBMP:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2051</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">WINDOW</span>.PRG => _FWH<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3560</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: &nbsp;=> WINRUN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1xan26s6]", "time": "00:40", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "remtec" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-08", "forum": "FiveWin para Harbour/xHarbour", "text": "La razón es simple:\n\nEstas intentando acceder al elemento quinto de un array que tiene solo tres elementos:\n\n [ 1] = A {{\" \",\"Uno\",\"Dos\",\"Tres\"},{\" \",\"Cuatro\",\"Cinco\",\"Seis\"},{\" \",\"Siete\",\"Ocho\",\"Nueve\"}} length: 3\n [ 2] = N 5", "time": "05:57", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "Antonio Linares" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Otra forma, enredado pero funcional <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\n[code=fw:1mcofe7w]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> lInicia := .T.<br /><br /><span style=\"color: #00C800;\">Function</span> Inicio<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oDlg, oCiudades, oComunas, oSectores, aCiudCbx := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aComunCbx := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aSectCbx := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cCiudad, cComuna, cSector, nPos := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">LOCAL</span> aCiudades := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1\"</span>,<span style=\"color: #ff0000;\">\"Ciudad Uno\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2\"</span>,<span style=\"color: #ff0000;\">\"Ciudad Dos\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3\"</span>,<span style=\"color: #ff0000;\">\"Ciudad Tres\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   <br />   <span style=\"color: #00C800;\">LOCAL</span> aComunas  := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1\"</span>,<span style=\"color: #ff0000;\">\"Comuna Uno Ciud.Uno\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2\"</span>,<span style=\"color: #ff0000;\">\"Comuna Dos Ciud.Uno\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.3\"</span>,<span style=\"color: #ff0000;\">\"Comuna Tres Ciud.Uno\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.1\"</span>,<span style=\"color: #ff0000;\">\"Comuna Uno Ciud.Dos\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.2\"</span>,<span style=\"color: #ff0000;\">\"Comuna Dos Ciud.Dos\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.3\"</span>,<span style=\"color: #ff0000;\">\"Comuna Tres Ciud.Dos\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.1\"</span>,<span style=\"color: #ff0000;\">\"Comuna Uno Ciud.Tres\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.2\"</span>,<span style=\"color: #ff0000;\">\"Comuna Dos Ciud.Tres\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   <br />   <span style=\"color: #00C800;\">LOCAL</span> aSectores := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.1.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.1.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1.3\"</span>,<span style=\"color: #ff0000;\">\"Sector 3 Com.1.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1.4\"</span>,<span style=\"color: #ff0000;\">\"Sector 4 Com.1.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.3\"</span>,<span style=\"color: #ff0000;\">\"Sector 3 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.4\"</span>,<span style=\"color: #ff0000;\">\"Sector 4 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.5\"</span>,<span style=\"color: #ff0000;\">\"Sector 5 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.3.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.1.3\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.3.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.1.3\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.3.3\"</span>,<span style=\"color: #ff0000;\">\"Sector 3 Com.1.3\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.1.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.2.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.1.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.2.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.2.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.2.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.2.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.2.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.3.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.2.3\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.1.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.3.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.1.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.3.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.2.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.3.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.2.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.3.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.2.3\"</span>,<span style=\"color: #ff0000;\">\"Sector 3 Com.3.2\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   <br />   AEVAL<span style=\"color: #000000;\">&#40;</span>aCiudades,<span style=\"color: #000000;\">&#123;</span>|aReg| AADD<span style=\"color: #000000;\">&#40;</span>aCiudCbx,aReg<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;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />   cCiudad := aCiudCbx<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   <br />   aComunCbx := CargaComuna<span style=\"color: #000000;\">&#40;</span>aCiudades<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,aComunas<span style=\"color: #000000;\">&#41;</span><br />   cComuna := aComunCbx<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   <br />   aSectCbx := CargaSector<span style=\"color: #000000;\">&#40;</span>aComunas<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,aSectores<span style=\"color: #000000;\">&#41;</span><br />   cSector := aSectCbx<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">600</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Nested Combobox\"</span> TRUEPIXEL<br />   <br />        @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCiudades <span style=\"color: #0000ff;\">VAR</span> cCiudad <span style=\"color: #0000ff;\">ITEMS</span> aCiudCbx  <span style=\"color: #0000ff;\">OF</span> oDlg <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 />           oCiudades:<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span>|| nPos := ASCAN<span style=\"color: #000000;\">&#40;</span>aCiudades,<span style=\"color: #000000;\">&#123;</span>|x|x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>=cCiudad <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> ,;<br />                                    CargaComuna<span style=\"color: #000000;\">&#40;</span>aCiudades<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, aComunas, oComunas, @cComuna<span style=\"color: #000000;\">&#41;</span> ,;<br />                                    CargaSector<span style=\"color: #000000;\">&#40;</span>aComunas<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, aSectores, oSectores, @cSector<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />   <br />        @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">190</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oComunas  <span style=\"color: #0000ff;\">VAR</span> cComuna <span style=\"color: #0000ff;\">ITEMS</span> aComunCbx <span style=\"color: #0000ff;\">OF</span> oDlg <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 />           oComunas:<span style=\"color: #000000;\">bChange</span>  := <span style=\"color: #000000;\">&#123;</span>|| nPos := ASCAN<span style=\"color: #000000;\">&#40;</span>aComunas,<span style=\"color: #000000;\">&#123;</span>|x|x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>=cComuna <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> ,;<br />                                    CargaSector<span style=\"color: #000000;\">&#40;</span>aComunas<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, aSectores, oSectores, @cSector<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   <br />        @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">370</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oSectores <span style=\"color: #0000ff;\">VAR</span> cSector <span style=\"color: #0000ff;\">ITEMS</span> aSectCbx  <span style=\"color: #0000ff;\">OF</span> oDlg <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 />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #B900B9;\">// ON PAINT (oCiudades:Open(),oComunas:Open(),oSectores:Open())</span><br />   <br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> CargaComuna<span style=\"color: #000000;\">&#40;</span>cCiudad, aComunas, oComunas, cComuna<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> aResp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, cResp<br />   <span style=\"color: #00C800;\">FOR</span> EACH cResp IN aComunas<br />       <span style=\"color: #00C800;\">if</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span>cResp<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> == cCiudad<br />          AADD<span style=\"color: #000000;\">&#40;</span>aResp,cResp<span style=\"color: #000000;\">&#91;</span><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;\">IF</span> !lInicia<br />      oComunas:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span>aResp,.F.<span style=\"color: #000000;\">&#41;</span><br />      cComuna := aResp<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />      oComunas:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span>aResp<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> CargaSector<span style=\"color: #000000;\">&#40;</span>cComuna, aSectores, oSectores, cSector<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> aResp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, cResp<br />   <span style=\"color: #00C800;\">FOR</span> EACH cResp IN aSectores<br />       <span style=\"color: #00C800;\">if</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span>cResp<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span> == cComuna<br />          AADD<span style=\"color: #000000;\">&#40;</span>aResp,cResp<span style=\"color: #000000;\">&#91;</span><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;\">IF</span> !lInicia<br />      oSectores:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span>aResp,.F.<span style=\"color: #000000;\">&#41;</span><br />      cSector := aResp<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />      oSectores:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br />   lInicia := .F.<br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span>aResp<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------//</span><br /><br /> </div>[/code:1mcofe7w]", "time": "03:51", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "Cgallegoa" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-09", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Cgallegoa\":3afi6qfm]Otra forma, enredado pero funcional <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\n[code=fw:3afi6qfm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> lInicia := .T.<br /><br /><span style=\"color: #00C800;\">Function</span> Inicio<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oDlg, oCiudades, oComunas, oSectores, aCiudCbx := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aComunCbx := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aSectCbx := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cCiudad, cComuna, cSector, nPos := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">LOCAL</span> aCiudades := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1\"</span>,<span style=\"color: #ff0000;\">\"Ciudad Uno\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2\"</span>,<span style=\"color: #ff0000;\">\"Ciudad Dos\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3\"</span>,<span style=\"color: #ff0000;\">\"Ciudad Tres\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   <br />   <span style=\"color: #00C800;\">LOCAL</span> aComunas  := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1\"</span>,<span style=\"color: #ff0000;\">\"Comuna Uno Ciud.Uno\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2\"</span>,<span style=\"color: #ff0000;\">\"Comuna Dos Ciud.Uno\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.3\"</span>,<span style=\"color: #ff0000;\">\"Comuna Tres Ciud.Uno\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.1\"</span>,<span style=\"color: #ff0000;\">\"Comuna Uno Ciud.Dos\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.2\"</span>,<span style=\"color: #ff0000;\">\"Comuna Dos Ciud.Dos\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.3\"</span>,<span style=\"color: #ff0000;\">\"Comuna Tres Ciud.Dos\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.1\"</span>,<span style=\"color: #ff0000;\">\"Comuna Uno Ciud.Tres\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.2\"</span>,<span style=\"color: #ff0000;\">\"Comuna Dos Ciud.Tres\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   <br />   <span style=\"color: #00C800;\">LOCAL</span> aSectores := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.1.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.1.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1.3\"</span>,<span style=\"color: #ff0000;\">\"Sector 3 Com.1.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.1.4\"</span>,<span style=\"color: #ff0000;\">\"Sector 4 Com.1.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.3\"</span>,<span style=\"color: #ff0000;\">\"Sector 3 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.4\"</span>,<span style=\"color: #ff0000;\">\"Sector 4 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.2.5\"</span>,<span style=\"color: #ff0000;\">\"Sector 5 Com.1.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.3.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.1.3\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.3.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.1.3\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1.3.3\"</span>,<span style=\"color: #ff0000;\">\"Sector 3 Com.1.3\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.1.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.2.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.1.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.2.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.2.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.2.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.2.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.2.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"2.3.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.2.3\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.1.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.3.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.1.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.3.1\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.2.1\"</span>,<span style=\"color: #ff0000;\">\"Sector 1 Com.3.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.2.2\"</span>,<span style=\"color: #ff0000;\">\"Sector 2 Com.3.2\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />                       <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"3.2.3\"</span>,<span style=\"color: #ff0000;\">\"Sector 3 Com.3.2\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   <br />   AEVAL<span style=\"color: #000000;\">&#40;</span>aCiudades,<span style=\"color: #000000;\">&#123;</span>|aReg| AADD<span style=\"color: #000000;\">&#40;</span>aCiudCbx,aReg<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;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />   cCiudad := aCiudCbx<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   <br />   aComunCbx := CargaComuna<span style=\"color: #000000;\">&#40;</span>aCiudades<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,aComunas<span style=\"color: #000000;\">&#41;</span><br />   cComuna := aComunCbx<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   <br />   aSectCbx := CargaSector<span style=\"color: #000000;\">&#40;</span>aComunas<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,aSectores<span style=\"color: #000000;\">&#41;</span><br />   cSector := aSectCbx<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">600</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Nested Combobox\"</span> TRUEPIXEL<br />   <br />        @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCiudades <span style=\"color: #0000ff;\">VAR</span> cCiudad <span style=\"color: #0000ff;\">ITEMS</span> aCiudCbx  <span style=\"color: #0000ff;\">OF</span> oDlg <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 />           oCiudades:<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span>|| nPos := ASCAN<span style=\"color: #000000;\">&#40;</span>aCiudades,<span style=\"color: #000000;\">&#123;</span>|x|x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>=cCiudad <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> ,;<br />                                    CargaComuna<span style=\"color: #000000;\">&#40;</span>aCiudades<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, aComunas, oComunas, @cComuna<span style=\"color: #000000;\">&#41;</span> ,;<br />                                    CargaSector<span style=\"color: #000000;\">&#40;</span>aComunas<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, aSectores, oSectores, @cSector<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />   <br />        @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">190</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oComunas  <span style=\"color: #0000ff;\">VAR</span> cComuna <span style=\"color: #0000ff;\">ITEMS</span> aComunCbx <span style=\"color: #0000ff;\">OF</span> oDlg <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 />           oComunas:<span style=\"color: #000000;\">bChange</span>  := <span style=\"color: #000000;\">&#123;</span>|| nPos := ASCAN<span style=\"color: #000000;\">&#40;</span>aComunas,<span style=\"color: #000000;\">&#123;</span>|x|x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>=cComuna <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> ,;<br />                                    CargaSector<span style=\"color: #000000;\">&#40;</span>aComunas<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, aSectores, oSectores, @cSector<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   <br />        @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">370</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oSectores <span style=\"color: #0000ff;\">VAR</span> cSector <span style=\"color: #0000ff;\">ITEMS</span> aSectCbx  <span style=\"color: #0000ff;\">OF</span> oDlg <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 />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #B900B9;\">// ON PAINT (oCiudades:Open(),oComunas:Open(),oSectores:Open())</span><br />   <br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> CargaComuna<span style=\"color: #000000;\">&#40;</span>cCiudad, aComunas, oComunas, cComuna<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> aResp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, cResp<br />   <span style=\"color: #00C800;\">FOR</span> EACH cResp IN aComunas<br />       <span style=\"color: #00C800;\">if</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span>cResp<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> == cCiudad<br />          AADD<span style=\"color: #000000;\">&#40;</span>aResp,cResp<span style=\"color: #000000;\">&#91;</span><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;\">IF</span> !lInicia<br />      oComunas:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span>aResp,.F.<span style=\"color: #000000;\">&#41;</span><br />      cComuna := aResp<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />      oComunas:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span>aResp<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> CargaSector<span style=\"color: #000000;\">&#40;</span>cComuna, aSectores, oSectores, cSector<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> aResp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, cResp<br />   <span style=\"color: #00C800;\">FOR</span> EACH cResp IN aSectores<br />       <span style=\"color: #00C800;\">if</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span>cResp<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span> == cComuna<br />          AADD<span style=\"color: #000000;\">&#40;</span>aResp,cResp<span style=\"color: #000000;\">&#91;</span><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;\">IF</span> !lInicia<br />      oSectores:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span>aResp,.F.<span style=\"color: #000000;\">&#41;</span><br />      cSector := aResp<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />      oSectores:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br />   lInicia := .F.<br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span>aResp<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------//</span><br /><br /> </div>[/code:3afi6qfm][/quote:3afi6qfm]\n\nHola Carlos.\n\nMuy amable, muchas gracias por tu ayuda y buena voluntad.\n\nDisculpa no haber respondido antes, lamentablemente mi sector estuvo sin energía eléctrica y sin poder encender equipos.\n\nPrové tu código, pero a mi me muestra solo el 1er elemento de cada combobox, no muestra ningún elemento mas.\n\nMuchas gracias por gestión.\n\nSaludos\n\nAntonio", "time": "04:20", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "remtec" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2022-09-09", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":380843iq]La razón es simple:\n\nEstas intentando acceder al elemento quinto de un array que tiene solo tres elementos:\n\n [ 1] = A {{\" \",\"Uno\",\"Dos\",\"Tres\"},{\" \",\"Cuatro\",\"Cinco\",\"Seis\"},{\" \",\"Siete\",\"Ocho\",\"Nueve\"}} length: 3\n [ 2] = N 5[/quote:380843iq]\n\n\nBuenas noches Maestro Antonio.\n\nRecien pudiendo encender equipos.\n\nMuchas gracias por su indicación, si me había dado cuenta del motivo del error antes del corte de energía, pero malamente pensé en seguir viendo hoy la forma de solucionarlo, y no se pudieron encender equipos.\n\nMuchos Saludos y muy agradecido.\n\nAntonio", "time": "04:24", "topic": "Ayuda 3 Combobox Anidados * URGENTE ??", "username": "remtec" } ]
Ayuda 3 Combobox Anidados * URGENTE ??
[ { "date": "2015-05-12", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:2i1kd4e1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />Señores... Buenas noches<br /><br />uso : <span style=\"color: #000000;\">fwh</span> <span style=\"color: #000000;\">15.01</span> + xharbour.com <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">12.3</span><span style=\"color: #000000;\">&#41;</span><br /><br />Requiero retornar un valor a través de una función, usando un parámetro por referencia y obtengo valores diferentes si lo hago desde un <span style=\"color: #0000ff;\">GET</span>:<span style=\"color: #0000ff;\">VALID</span>  o silo hago invocando la función directamente :<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> capturaValorTexto<span style=\"color: #000000;\">&#40;</span>nCanTar,nUniMed,nPreAdi<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">LOCAL</span> oDlgBr1,  oCanTem, oBotAce<br /><span style=\"color: #00C800;\">LOCAL</span> oWndAct := GetWndDefault<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> lEstFun := .T.<br /><br />nUniMed := <span style=\"color: #000000;\">32</span>  <br /><br />set decimals <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">6</span><br /><br /><span style=\"color: #00C800;\">PUBLIC</span> cCanTem := SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">16</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgBr1 <span style=\"color: #0000ff;\">TITLE</span> HB_OEMTOANSI<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Registro de cantidades\"</span><span style=\"color: #000000;\">&#41;</span> ;<br />           <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">280</span>,<span style=\"color: #000000;\">550</span> ;<br />           <span style=\"color: #0000ff;\">OF</span> oWndAct <span style=\"color: #0000ff;\">PIXEL</span><br /><br />   @ <span style=\"color: #000000;\">25</span>,<span style=\"color: #000000;\">05</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Cantidad \"</span>  ;<br />           <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">20</span> ;<br />           <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE <span style=\"color: #0000ff;\">FONT</span> M->oFonAc1 <span style=\"color: #0000ff;\">OF</span> oDlgBr1<br /><br />   @ <span style=\"color: #000000;\">15</span>,<span style=\"color: #000000;\">70</span> <span style=\"color: #0000ff;\">GET</span> oCanTem <span style=\"color: #0000ff;\">VAR</span> cCanTem <span style=\"color: #0000ff;\">OF</span> oDlgBr1 ;   <span style=\"color: #B900B9;\">// cCanTem := \"1*1\" </span><br />           <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"XXXXXXXXXXXXXXXX\"</span> ;<br />           <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">25</span> ;<br />           <span style=\"color: #0000ff;\">UPDATE</span> ;<br />           <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE,CLR_GREEN <span style=\"color: #0000ff;\">FONT</span> M->oFonAc8 ;<br />           <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> convierteSartaValores<span style=\"color: #000000;\">&#40;</span>cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi<span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #000000;\">&#41;</span>   <br /><span style=\"color: #B900B9;\">//esta es la función                                    1*1, 0 , 32          </span><br /><br />   @ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">100</span> BUTTONBMP oBotAce <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Aceptar\"</span>;<br />             <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oDlgBr1:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>  ;<br />             <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">16</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlgBr1<br /><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgBr1  <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oCanTem:<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: #B900B9;\">// VALORES RETORNADOS</span><br />ALERT<span style=\"color: #000000;\">&#40;</span>nCanTar<span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// 0.031000</span><br />ALERT<span style=\"color: #000000;\">&#40;</span>M->xCanSug<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// 0.031250</span><br /><br /><span style=\"color: #B900B9;\">// INVOCANDO LA FUNCION DIRECTAMENTE</span><br /><br /><span style=\"color: #B900B9;\">/* cCanTem := \"1*1\"<br />   nUniMed := 32 <br />  nCanTar := 0<br /><br />convierteSartaValores(cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi)<br /><br />// VALORES RETORNADOS<br />ALERT(nCanTar)  // 0.031250<br />ALERT(M->xCanSug) // 0.031250  VARIABLE PUBLICA<br /><br />*/</span><br /><br /><br /><span style=\"color: #00C800;\">RETURN</span>  lEstFun<br /><br /><span style=\"color: #B900B9;\">//***************************************************************</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> convierteSartaValores<span style=\"color: #000000;\">&#40;</span>cCanTem,nCanTar,nUniMed,oDlgBr1,oBotAce,lEstFun,nPreAdi<span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #00C800;\">LOCAL</span> nCanTmo := <span style=\"color: #000000;\">0</span>  , nvlrCa1 := nvlrCa2 := nvlrCa3 := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">LOCAL</span> nPosIni := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">LOCAL</span> nPosFin := <span style=\"color: #000000;\">0</span> , cCanTe2 := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">LOCAL</span> nCanFac := <span style=\"color: #000000;\">0</span><br /><br />set decimals <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">6</span><br /><br />nPosIni := ATNUM<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'*'</span>,cCanTem,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />cCanTe2 := SUBS<span style=\"color: #000000;\">&#40;</span>cCanTem,nPosIni<span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span><br />nPosFin := ATNUM<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'*'</span>,cCanTe2,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">IF</span> nPosFin > <span style=\"color: #000000;\">0</span><br />   nPosFin += nPosIni<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// PARA EL EJP. CONVIERTE EL TEXTO \"1*1\" => 1</span><br /><span style=\"color: #00C800;\">IF</span> nPosIni > <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">IF</span> nPosFin > <span style=\"color: #000000;\">0</span><br />      nvlrCa1 := VAL<span style=\"color: #000000;\">&#40;</span>SUBS<span style=\"color: #000000;\">&#40;</span>cCanTem,<span style=\"color: #000000;\">1</span>,nPosIni<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />      nvlrCa2 := VAL<span style=\"color: #000000;\">&#40;</span>SUBS<span style=\"color: #000000;\">&#40;</span>cCanTem,nPosIni<span style=\"color: #000000;\">+1</span>,nPosFin<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />      nvlrCa3 := VAL<span style=\"color: #000000;\">&#40;</span>SUBS<span style=\"color: #000000;\">&#40;</span>cCanTem,nPosFin<span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />      nCanTmo := <span style=\"color: #000000;\">&#40;</span> nvlrCa1 * nvlrCa2 * nvlrCa3 <span style=\"color: #000000;\">&#41;</span><br />      nCanFac :=  nvlrCa1 * <span style=\"color: #000000;\">&#40;</span> nvlrCa2 + nvlrCa3 <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ELSE</span><br />      nvlrCa1 := VAL<span style=\"color: #000000;\">&#40;</span>SUBS<span style=\"color: #000000;\">&#40;</span>cCanTem,<span style=\"color: #000000;\">1</span>,nPosIni<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />      nvlrCa2 := VAL<span style=\"color: #000000;\">&#40;</span>SUBS<span style=\"color: #000000;\">&#40;</span>cCanTem,nPosIni<span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />      nCanTmo := <span style=\"color: #000000;\">&#40;</span> nvlrCa1 * nvlrCa2 <span style=\"color: #000000;\">&#41;</span><br />      nCanFac := nvlrCa2<br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br />   M->vMenReg<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := cCanTem<br /><span style=\"color: #00C800;\">ELSE</span><br />   nCanFac := <span style=\"color: #000000;\">0</span><br />   nCanTmo := VAL<span style=\"color: #000000;\">&#40;</span>cCanTem<span style=\"color: #000000;\">&#41;</span><br />   nCanTar := nCanTmo<br />   M->xCanSug := nCanTar<br />   lEstFun := .F.<br />   <span style=\"color: #00C800;\">RETURN</span> .T.<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />nPreAdi := nCanFac<br /><br />nCanTar := <span style=\"color: #000000;\">&#40;</span> nCanTmo / nUniMed <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// ESTA ES LA OPERACION FINAL => ( 1 / 32 )</span><br /><br />M->xCanSug := nCanTar     <span style=\"color: #B900B9;\">// VARIABLE PUBLICA</span><br /><br />lEstFun := .T.<br /><br /><span style=\"color: #00C800;\">RETURN</span> <br /><br /><span style=\"color: #B900B9;\">//***************************************************************</span><br /><br />JOHNSON RUSSI <br /> </div>[/code:2i1kd4e1]", "time": "00:04", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "russimicro" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2015-05-12", "forum": "FiveWin para Harbour/xHarbour", "text": "No parece que estés modificando cCanTem desde la función", "time": "11:38", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "Antonio Linares" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2015-05-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio..\n\nLa variable es \"nCanTar\" , convierteSartaValores(cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi),\nel hecho es que si la modifica pero la retorna redondeada a tres decimales", "time": "12:25", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "russimicro" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2015-05-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola, \nPrueba lo siguiente:\n\n[code=fw:pkw26v1c]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />SET DECIMALS <span style=\"color: #0000ff;\">TO</span> nDecimal <span style=\"color: #B900B9;\">// NUMERO DE DECIMALES QUE NECESITES</span><br />nCanTar := <span style=\"color: #000000;\">&#40;</span> nCanTmo / nUniMed <span style=\"color: #000000;\">&#41;</span><br />SET DECIMALS <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #B900B9;\">// VUELVES AL VALOR </span><br />&nbsp;</div>[/code:pkw26v1c]\n\nEspero te sirva la idea.\nSaludos,", "time": "14:21", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "jrestojeda" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2015-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "ya lo tengo definido...\nset decimals to 6\n\nel problema se da si llamo la función desde el action de un get... porque de forma directa funciona bien\n\nGracias por su respuesta....\n\nSi alguien tiene el tiempo podemos programar una conexión remota tipo team viewer y les muestro directamente el funcionamiento en el retorno de la función", "time": "01:48", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "russimicro" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2015-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "En tu código:\n\n[code=fw:1bbwxj2k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">15</span>,<span style=\"color: #000000;\">70</span> <span style=\"color: #0000ff;\">GET</span> oCanTem <span style=\"color: #0000ff;\">VAR</span> cCanTem <span style=\"color: #0000ff;\">OF</span> oDlgBr1 ; &nbsp; <span style=\"color: #B900B9;\">// cCanTem := \"1*1\" </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"XXXXXXXXXXXXXXXX\"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">25</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE,CLR_GREEN <span style=\"color: #0000ff;\">FONT</span> M->oFonAc8 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> convierteSartaValores<span style=\"color: #000000;\">&#40;</span>cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi<span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp;</div>[/code:1bbwxj2k]\n\nla variable cCanTem es la que se muestra en el GET. \n\nLuego si el valor del GET tiene que cambiar entonces cCanTem debería ser modificado.\n\nTal vez no estoy entendiendo el problema", "time": "18:33", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "Antonio Linares" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2015-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio...\n\nBuena tarde ...\n\nLa secuencia es esta :\n1. Capturo un texto con este formato \"1*1\" -> un trozo de lamina de un metro --> en la variable \"cCanTem\" \n2. el método convierteSartaValores(cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi) , recibe la variable : cCanTem, como una sarta, la convierte en numérica y la regresa como numerica en la varibale @nCanTar ( asi nCanTar := VAL(1)*VAL(1) / 32 (valor final para este ejemplo)\n3. El valor de retorno en nCanTar, es el que evaluó ---> ALERT(nCanTar) // 0.031000\n\n/// resumen del código \n @ 15,70 GET oCanTem VAR cCanTem OF oDlgBr1 ; // cCanTem := \"1*1\" \n PICTURE \"XXXXXXXXXXXXXXXX\" ;\n PIXEL SIZE 120,25 ;\n UPDATE ;\n COLOR CLR_WHITE,CLR_GREEN FONT M->oFonAc8 ;\n VALID ( convierteSartaValores(cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi) ) \n\nACTIVATE DIALOG oDlgBr1 CENTER ON INIT ( oCanTem:SetFocus() )\n\n// VALORES RETORNADOS\nALERT(nCanTar) // 0.031000\nconvierteSartaValores(cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi)\nALERT(nCanTar) // 0.031250\n\nNota : Antonio como puede notar en el código inicial invoco la función convierteSartaValores(), desde el get y directamente y retorna estos valores : 0.031000 y 0.031250 respectivamente.\n\nNota: La variable que debe almacenar el valor final es nCanTar , que a su vez llega como parámetro a la función : \nFUNCTION capturaValorTexto(nCanTar,nUniMed,nPreAdi), ahora si declaro la variable nCanTar como local en este método el valor retornado por ambas invocaciones es igual (0.031250 ) => división de 1 / 32 , con set decimals to 6 \n\n\nJohnson Russi", "time": "21:53", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "russimicro" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2015-05-17", "forum": "FiveWin para Harbour/xHarbour", "text": "ok entendido, entendí que el valor modificado tenía que llegar al GET\n\nTienes definido set decimals to 6 antes de llamar a la función capturaValorTexto() ?", "time": "20:45", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "Antonio Linares" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2015-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio\n\nBuena noche\n\n1. Uso : \"set decimals to 6\" en todo el .prg\n2. Llegue a la siguiente conclusión : si la variable nCanTar, usada asi : \"VALID ( convierteSartaValores(cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi) )\", es una variable local la retorna con los 6 decimales y si es publica(dese el inicio de la aplicación ) , la retorna modificada pero con tres decimales.\n3. Por Ahora , es la solución que le di... usarla como local y luego asignársela a la variable final(la publica)\n4. Si usted considera ver el caso en ejecución estaré atento a su disposición de tiempo para una asistencia remota\n\nGracias\n\nSaludos\n\nJohnson Russi Tello", "time": "02:29", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "russimicro" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2015-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Johnson,\n\nSi te funciona bien, eso es lo que cuenta <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "08:15", "topic": "Ayuda : Retorno de GET VALID + FUNCTION(@variable)", "username": "Antonio Linares" } ]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[ { "date": "2021-07-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches\nTengo una aplicación algo \"viejita\", y la programe con ADO, el cliente me busco para hacer algunas adecuaciones y agregarle algunos modulos.\nAquí me surgío una duda.\nEsta aplicación la trabajo generando un oRs con \n[code=fw:2of4716j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">::<span style=\"color: #000000;\">oRs</span> := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">&#41;</span><br />         ::<span style=\"color: #000000;\">oRs</span>:<span style=\"color: #000000;\">CursorLocation</span> := adUseClient<br />         ::<span style=\"color: #000000;\">oRs</span>:<span style=\"color: #000000;\">CursorType</span>     := adOpenDynamic<br />         ::<span style=\"color: #000000;\">oRs</span>:<span style=\"color: #000000;\">LockType</span>       := adLockOptimistic<br />         ::<span style=\"color: #000000;\">oRs</span>:<span style=\"color: #000000;\">ActiveConnection</span> := ::<span style=\"color: #000000;\">cStrConn</span><br />         ::<span style=\"color: #000000;\">oRs</span>:<span style=\"color: #000000;\">Source</span>         := <span style=\"color: #ff0000;\">\"select * from usuario2;\"</span><br />         ::<span style=\"color: #000000;\">oRs</span>:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:2of4716j]\nComo puedo \"recuperar\" el resultado de un STORED PROCEDURE a ese oRs ??\nAlgo así como ::oRS := TraeElResultadoDelSToreProcedure(\"nombre del store procedure\")\n[code=fw:2of4716j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCmd := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Command\"</span> <span style=\"color: #000000;\">&#41;</span><br />         oCmd:<span style=\"color: #000000;\">ActiveConnection</span> := ::<span style=\"color: #000000;\">oConn</span><br />         oCmd:<span style=\"color: #000000;\">CommandType</span>      := adCmdStoredProc<br />         oCmd:<span style=\"color: #000000;\">CommandText</span>      := <span style=\"color: #ff0000;\">\"buscar_ALGO\"</span>  <span style=\"color: #B900B9;\">// Strored Procedure Name</span><br />         oCmd:<span style=\"color: #000000;\">Prepared</span>         := .T.<br /><br />         oParam := oCmd:<span style=\"color: #000000;\">CreateParameter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"letras\"</span>, adVarChar, adParamInput, <span style=\"color: #000000;\">50</span>  <span style=\"color: #000000;\">&#41;</span><br />         oCmd:<span style=\"color: #000000;\">PARAMETERS</span>:<span style=\"color: #000000;\">Append</span><span style=\"color: #000000;\">&#40;</span> oParam <span style=\"color: #000000;\">&#41;</span><br />         oCmd:<span style=\"color: #000000;\">PARAMETERS</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"letras\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span>  := AllTrim<span style=\"color: #000000;\">&#40;</span>cLetras<span style=\"color: #000000;\">&#41;</span></div>[/code:2of4716j]\nAlguien puede orientarme.\n\nPara aprovechar el que le voy a volver a \"meter mano\" a esta aplicación después de algunos años.\n\nMuchas gracias <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "03:40", "topic": "Ayuda ADODB", "username": "ricardog" } ]
Ayuda ADODB
[ { "date": "2021-07-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Solucionado.\nMuchas Gracias <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "22:35", "topic": "Ayuda ADODB", "username": "ricardog" } ]
Ayuda ADODB
[ { "date": "2021-07-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Ricardo,\n\nCómo lo has solucionado ?", "time": "23:03", "topic": "Ayuda ADODB", "username": "Antonio Linares" } ]
Ayuda ADODB
[ { "date": "2022-09-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos Buenas tardes.\n\nTengo un problema, no logro dar con la forma de la búsqueda en Arreglo.\n\nVariable: cVar:=\"MENTON\"\n\nArray aAdmZonas:={ {\"\"}, {\"BARRAS\", \"MANDIBULA\", \"MARIONETAS\", \"POMULO\", \"CARA\"}, {\"CEJAS\", \"POMULO\", \"SOBRE CEJAS\",\"LABIO SUPERIOOR\"}}\n\nComo puedo saber la posición de la cVar, dentro de aAdmZonas?\n\nMuchos Saludos.\n\nAntonio", "time": "23:12", "topic": "Ayuda AScan en Array", "username": "remtec" } ]
Ayuda AScan en Array
[ { "date": "2022-09-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Esta sería una manera, creo que con aeval sería más óptima\n[code=fw:3d65wdz8]<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 /><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> cVar, aAdmZonas, i, nPos, lEncontro := .f.<br />&nbsp; &nbsp;cVar:=<span style=\"color: #ff0000;\">\"MENTON\"</span><br /><br />&nbsp; &nbsp;aAdmZonas:=<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"BARRAS\"</span>, <span style=\"color: #ff0000;\">\"MANDIBULA\"</span>, <span style=\"color: #ff0000;\">\"MARIONETAS\"</span>, <span style=\"color: #ff0000;\">\"POMULO\"</span>, <span style=\"color: #ff0000;\">\"CARA\"</span>,<span style=\"color: #ff0000;\">\"MENTON\"</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"CEJAS\"</span>, <span style=\"color: #ff0000;\">\"POMULO\"</span>, <span style=\"color: #ff0000;\">\"SOBRE CEJAS\"</span>,<span style=\"color: #ff0000;\">\"LABIO SUPERIOOR\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<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>aAdmZonas<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nPos := ascan<span style=\"color: #000000;\">&#40;</span>aAdmZonas<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span>,cVar<span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nPos > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"La posicion es \"</span> + str<span style=\"color: #000000;\">&#40;</span>i<span style=\"color: #000000;\">&#41;</span>+ <span style=\"color: #ff0000;\">\",\"</span>+ str<span style=\"color: #000000;\">&#40;</span>nPos<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lEncontro := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span> &nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span> i<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !lEncontro<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"No lo encontro\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:3d65wdz8]", "time": "23:43", "topic": "Ayuda AScan en Array", "username": "cmsoft" } ]
Ayuda AScan en Array
[ { "date": "2007-04-21", "forum": "FiveWin para CA-Clipper", "text": "Tenngo el programa en una maquina , y desde el escritorio de la otra cree un acceso directo al exe, cuando lo ejecuto no me muestra ninguno de los iconos de los botones , ademas de producirme error en la apertura de archivos.\n\n \ndesde ya muchisimas gracias\nFabian\n<!-- e --><a href=\"mailto:databaselab2002@yahoo.com.ar\">databaselab2002@yahoo.com.ar</a><!-- e -->", "time": "03:21", "topic": "Ayuda Acceso directo a aplicacion en XP", "username": "Databaselab2002" } ]
Ayuda Acceso directo a aplicacion en XP
[ { "date": "2007-04-21", "forum": "FiveWin para CA-Clipper", "text": "Los recursos de la aplicación los mantienes dentro del EXE ó en una DLL ?", "time": "08:23", "topic": "Ayuda Acceso directo a aplicacion en XP", "username": "Antonio Linares" } ]
Ayuda Acceso directo a aplicacion en XP
[ { "date": "2007-04-21", "forum": "FiveWin para CA-Clipper", "text": "Si Antonio\nLe terndria que poner verdad ?\n\nPath:=\"\\\"+CurDir()\n\n\n SET PATH TO &cPath\n SET DEFAULT TO &cPath\n \nSaludos\nFabian\n<!-- e --><a href=\"mailto:databaselab2002@yahoo.com.ar\">databaselab2002@yahoo.com.ar</a><!-- e -->", "time": "13:52", "topic": "Ayuda Acceso directo a aplicacion en XP", "username": "Databaselab2002" } ]
Ayuda Acceso directo a aplicacion en XP
[ { "date": "2007-04-23", "forum": "FiveWin para CA-Clipper", "text": "Estás usando una DLL para los recursos ?\n\nEn caso afirmativo, y si no se muestran los recursos, entonces es que no consigue encontrar la DLL. Prueba a copiarla a tu ordenador", "time": "10:53", "topic": "Ayuda Acceso directo a aplicacion en XP", "username": "Antonio Linares" } ]
Ayuda Acceso directo a aplicacion en XP
[ { "date": "2007-04-23", "forum": "FiveWin para CA-Clipper", "text": "Si no creas una unidad de red no te va a funcionar.\nEstos son los pasos a seguir en Windows XP:\n\n1.- En el ordenador principal y desde el explorador de windows, pulsar con el botón derecho del ratón sobre la carpeta donde está instalado el programa y elegir la opción Compartir. Posteriormente elegir la opción Compartir como y asignar un nombre al recurso compartido; también debe señalarse como tipo de acceso, acceso total. \n\n2.- Desde el ordenador secundario, pulsar con el botón derecho del ratón sobre el icono del escritorio Mis sitios red y elegir la opción Conectar a unidad de red. Posteriormente elegir una unidad de red que esté libre y como ruta de acceso: \\\\nombredelpcprincipal\\nombredelrecursocompartido. Para facilitar el proceso, elija una ruta de acceso existente y cambie el nombre del recurso compartido por el que se haya asignado al crearlo en el paso 1. \n\n3.- Crear icono en el escritorio del ordenador secundario.Pulsar con el botón derecho del ratón sobre el escritorio y elegir la opción Nuevo-Acceso Directo-Examinar y elegir el archivo ejecutable de la unidad anteriormente creada. \n\nUn saludo,\nManuel\n\n\n[quote=\"Databaselab2002\":20zeil4a]Tenngo el programa en una maquina , y desde el escritorio de la otra cree un acceso directo al exe, cuando lo ejecuto no me muestra ninguno de los iconos de los botones , ademas de producirme error en la apertura de archivos.\n\n \ndesde ya muchisimas gracias\nFabian\n<!-- e --><a href=\"mailto:databaselab2002@yahoo.com.ar\">databaselab2002@yahoo.com.ar</a><!-- e -->[/quote:20zeil4a]", "time": "20:50", "topic": "Ayuda Acceso directo a aplicacion en XP", "username": "Manuel Aranda" } ]
Ayuda Acceso directo a aplicacion en XP
[ { "date": "2020-08-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos al forum\n\nEstoy implementado este ejemplo en mi aplicacion. Este es lo que baje hbide-master\n\nTrato de implementar el menu y me sale este error al compilar.\n\nTodo lo que dice ::Super:? me da error\n\n[code=fw:3tj7p2ti]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">Display</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> HbMenu<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;\">METHOD</span> ProcessKey<span style=\"color: #000000;\">&#40;</span> nKey <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> HbMenu<br /><br />   <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />      <span style=\"color: #00C800;\">case</span> nKey == K_MWBACKWARD<br />         ::<span style=\"color: #000000;\">GoDown</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />         <br />      <span style=\"color: #00C800;\">case</span> nKey == K_MWFORWARD   <br />         ::<span style=\"color: #000000;\">GoUp</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #00C800;\">otherwise</span><br />         ::<span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">ProcessKey</span><span style=\"color: #000000;\">&#40;</span> nKey <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endcase</span><br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span>   <br /><br /> </div>[/code:3tj7p2ti]", "time": "14:44", "topic": "Ayuda Al compilar me Da error en ::Super", "username": "ruben Dario" } ]
Ayuda Al compilar me Da error en ::Super
[ { "date": "2020-08-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Cambia ::Super por Super", "time": "04:30", "topic": "Ayuda Al compilar me Da error en ::Super", "username": "Antonio Linares" } ]
Ayuda Al compilar me Da error en ::Super
[ { "date": "2020-08-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias \nFunciono", "time": "01:43", "topic": "Ayuda Al compilar me Da error en ::Super", "username": "ruben Dario" } ]
Ayuda Al compilar me Da error en ::Super
[ { "date": "2014-11-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos al Fórum\nEstoy compilando la carpeta xharbour-code Rev 10042\\xharbour\\samples\\pe\n\nPE.PRG y editorhi.PRG y editorlo.c\n\nNo esta compilado editorlo.c , este es el error. no se porque no lo compila.\n\n\nMe genera estos errores.\n\neste es el bc para compilarlo no se donde esta el erro.\n\n[code=fw:3iqpo1eu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />#BCC<br />VERSION=BCB<span style=\"color: #000000;\">.01</span><br />!ifndef CC_DIR<br />CC_DIR = $<span style=\"color: #000000;\">&#40;</span>MAKE_DIR<span style=\"color: #000000;\">&#41;</span><br />!<span style=\"color: #00C800;\">endif</span><br /><br />!ifndef HB_DIR<br />HB_DIR = $<span style=\"color: #000000;\">&#40;</span>HARBOUR_DIR<span style=\"color: #000000;\">&#41;</span><br />!<span style=\"color: #00C800;\">endif</span><br /><br />DEFX=__HARBOUR__<br />ifeq <span style=\"color: #000000;\">&#40;</span>$<span style=\"color: #000000;\">&#40;</span>DEBUG<span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span><br />    DEBUG=__NODEBUG__<br /><span style=\"color: #00C800;\">endif</span><br />ifeq <span style=\"color: #000000;\">&#40;</span>$<span style=\"color: #000000;\">&#40;</span>PRG_COMPILER<span style=\"color: #000000;\">&#41;</span>,XHARBOUR<span style=\"color: #000000;\">&#41;</span><br />    DEFX=__XHARBOUR__<br /><span style=\"color: #00C800;\">endif</span><br /><br />FWDIR = \\fwh<br /><br />#lparam= /L /M /Q  ANTES ASI/L /N /W<br /><br />RECURSE= NO <br /> <br />SHELL = <br />COMPRESS = YES<br />EXTERNALLIB = NO<br />XFWH = NO<br />FILESTOADD =  <span style=\"color: #000000;\">1</span><br />WARNINGLEVEL =  <span style=\"color: #000000;\">0</span><br />USERDEFINE = <br />USERINCLUDE = <br />GUI = NO<br />MT = NO<br />INCLU = include<br /><br />SRC00 = .\\<br />SRC01 = prg<br />SRC02 = obj<br />SRC03 = c<br /><br />PROJECT = PLASMENU.exe $<span style=\"color: #000000;\">&#40;</span>PR<span style=\"color: #000000;\">&#41;</span><br /><br />OBJFILES = $<span style=\"color: #000000;\">&#40;</span>SRC02<span style=\"color: #000000;\">&#41;</span>\\PXPMENU.obj <span style=\"color: #B900B9;\">//</span><br /> $<span style=\"color: #000000;\">&#40;</span>SRC02<span style=\"color: #000000;\">&#41;</span>\\PXP0013.obj <span style=\"color: #B900B9;\">//</span><br /> $<span style=\"color: #000000;\">&#40;</span>SRC02<span style=\"color: #000000;\">&#41;</span>\\PXPASIG.obj <span style=\"color: #B900B9;\">//</span><br /> $<span style=\"color: #000000;\">&#40;</span>SRC02<span style=\"color: #000000;\">&#41;</span>\\PE.obj <span style=\"color: #B900B9;\">//</span><br /> $<span style=\"color: #000000;\">&#40;</span>SRC02<span style=\"color: #000000;\">&#41;</span>\\editorhi.obj <span style=\"color: #B900B9;\">//</span><br /><br /> $<span style=\"color: #000000;\">&#40;</span>OB<span style=\"color: #000000;\">&#41;</span> <br /><br />PRGFILES = $<span style=\"color: #000000;\">&#40;</span>SRC01<span style=\"color: #000000;\">&#41;</span>\\PXPMENU.PRG <span style=\"color: #B900B9;\">//</span><br /> $<span style=\"color: #000000;\">&#40;</span>SRC01<span style=\"color: #000000;\">&#41;</span>\\PXP0013.PRG <span style=\"color: #B900B9;\">//</span><br /> $<span style=\"color: #000000;\">&#40;</span>SRC01<span style=\"color: #000000;\">&#41;</span>\\PXPASIG.PRG <span style=\"color: #B900B9;\">//</span><br /> $<span style=\"color: #000000;\">&#40;</span>SRC01<span style=\"color: #000000;\">&#41;</span>\\PE.PRG <span style=\"color: #B900B9;\">//</span><br /> $<span style=\"color: #000000;\">&#40;</span>SRC01<span style=\"color: #000000;\">&#41;</span>\\editorhi.PRG <span style=\"color: #B900B9;\">//</span><br /><br /> $<span style=\"color: #000000;\">&#40;</span>PS<span style=\"color: #000000;\">&#41;</span> <br /><br />OBJCFILES = $<span style=\"color: #000000;\">&#40;</span>OBJ<span style=\"color: #000000;\">&#41;</span>\\editorlo.obj $<span style=\"color: #000000;\">&#40;</span>OBC<span style=\"color: #000000;\">&#41;</span> <br /><br />CFILES = editorlo.c  $<span style=\"color: #000000;\">&#40;</span>CF<span style=\"color: #000000;\">&#41;</span><br />RESFILES = <br />RESDEPEN = <br />TOPMODULE = $<span style=\"color: #000000;\">&#40;</span>SRC01<span style=\"color: #000000;\">&#41;</span>\\PLASMENU.PRG<br />LIBFILES = lang.lib vm.lib rtl.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib dbffpt.lib common.lib gtwin.lib codepage.lib ct.lib tip.lib pcrepos.lib hsx.lib hbsix.lib debug.lib hbhpdf.lib png.lib zlib.lib $<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\lib\\xHarb\\librub_xh.lib $<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\lib\\xHarb\\librub1_xh.lib $<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\lib\\xHarb\\grump_xh.lib $<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\lib\\xHarb\\libsuper_xh.lib $<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\lib\\xHarb\\dialog32_xh.lib $<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\lib\\xHarb\\filexls_xh.lib $<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\LIB\\Fivehx.lib $<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\LIB\\FiveHC.lib $<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\lib\\xHarb\\dolphin_xh.lib $<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\lib\\xHarb\\libmysql.lib $<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\lib\\xHarb\\EasyRep_xh.lib $<span style=\"color: #000000;\">&#40;</span>CC_DIR<span style=\"color: #000000;\">&#41;</span>\\lib\\psdk\\psapi.lib <br /><br />EXTLIBFILES =<br />DEFFILE = <br />HARBOURFLAGS =  -w0<br />CFLAG1 =  -OS $<span style=\"color: #000000;\">&#40;</span>SHELL<span style=\"color: #000000;\">&#41;</span>  $<span style=\"color: #000000;\">&#40;</span>CFLAGS<span style=\"color: #000000;\">&#41;</span> -d -c -L$<span style=\"color: #000000;\">&#40;</span>HB_DIR<span style=\"color: #000000;\">&#41;</span>\\lib <br />CFLAG2 =  -I$<span style=\"color: #000000;\">&#40;</span>HB_DIR<span style=\"color: #000000;\">&#41;</span>\\include;$<span style=\"color: #000000;\">&#40;</span>CC_DIR<span style=\"color: #000000;\">&#41;</span>\\include;$<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\include<br />RFLAGS = <br />LFLAGS = -L$<span style=\"color: #000000;\">&#40;</span>CC_DIR<span style=\"color: #000000;\">&#41;</span>\\lib\\obj;$<span style=\"color: #000000;\">&#40;</span>CC_DIR<span style=\"color: #000000;\">&#41;</span>\\lib;$<span style=\"color: #000000;\">&#40;</span>HB_DIR<span style=\"color: #000000;\">&#41;</span>\\lib -Gn -M -m -s -Tpe -x -ap<br />IFLAGS = <br />LINKER = ilink32<br /> <br />ALLOBJ = c0x32.obj $<span style=\"color: #000000;\">&#40;</span>OBJFILES<span style=\"color: #000000;\">&#41;</span> $<span style=\"color: #000000;\">&#40;</span>OBJCFILES<span style=\"color: #000000;\">&#41;</span><br />ALLRES = $<span style=\"color: #000000;\">&#40;</span>RESDEPEN<span style=\"color: #000000;\">&#41;</span><br />ALLLIB = $<span style=\"color: #000000;\">&#40;</span>LIBFILES<span style=\"color: #000000;\">&#41;</span> import32.lib cw32.lib<br />.autodepend<br /> <br />#DEPENDS<br /> <br />#COMMANDS<br />.cpp.obj:<br />$<span style=\"color: #000000;\">&#40;</span>CC_DIR<span style=\"color: #000000;\">&#41;</span>\\BIN\\bcc32 $<span style=\"color: #000000;\">&#40;</span>CFLAG1<span style=\"color: #000000;\">&#41;</span> $<span style=\"color: #000000;\">&#40;</span>CFLAG2<span style=\"color: #000000;\">&#41;</span> -o$* $**<br /> <br />.c.obj:<br />$<span style=\"color: #000000;\">&#40;</span>CC_DIR<span style=\"color: #000000;\">&#41;</span>\\BIN\\bcc32 -I$<span style=\"color: #000000;\">&#40;</span>HB_DIR<span style=\"color: #000000;\">&#41;</span>\\include $<span style=\"color: #000000;\">&#40;</span>CFLAG1<span style=\"color: #000000;\">&#41;</span> $<span style=\"color: #000000;\">&#40;</span>CFLAG2<span style=\"color: #000000;\">&#41;</span> -o$* $**<br /> <br />.prg.obj:<br />$<span style=\"color: #000000;\">&#40;</span>HB_DIR<span style=\"color: #000000;\">&#41;</span>\\bin\\harbour -D__EXPORT__ -D$<span style=\"color: #000000;\">&#40;</span>DEFX<span style=\"color: #000000;\">&#41;</span> -n -go -I$<span style=\"color: #000000;\">&#40;</span>HB_DIR<span style=\"color: #000000;\">&#41;</span>\\include;$<span style=\"color: #000000;\">&#40;</span>SRC00<span style=\"color: #000000;\">&#41;</span>\\include;$<span style=\"color: #000000;\">&#40;</span>FWDIR<span style=\"color: #000000;\">&#41;</span>\\include $<span style=\"color: #000000;\">&#40;</span>HARBOURFLAGS<span style=\"color: #000000;\">&#41;</span> -o$* $** > error.log <br /><br />.rc.res:<br />$<span style=\"color: #000000;\">&#40;</span>CC_DIR<span style=\"color: #000000;\">&#41;</span>\\BIN\\brcc32 $<span style=\"color: #000000;\">&#40;</span>RFLAGS<span style=\"color: #000000;\">&#41;</span> $<<br /> <br />#BUILD<br /> <br />$<span style=\"color: #000000;\">&#40;</span>PROJECT<span style=\"color: #000000;\">&#41;</span>: $<span style=\"color: #000000;\">&#40;</span>CFILES<span style=\"color: #000000;\">&#41;</span> $<span style=\"color: #000000;\">&#40;</span>OBJFILES<span style=\"color: #000000;\">&#41;</span> $<span style=\"color: #000000;\">&#40;</span>RESDEPEN<span style=\"color: #000000;\">&#41;</span> $<span style=\"color: #000000;\">&#40;</span>DEFFILE<span style=\"color: #000000;\">&#41;</span><br />    $<span style=\"color: #000000;\">&#40;</span>CC_DIR<span style=\"color: #000000;\">&#41;</span>\\BIN\\$<span style=\"color: #000000;\">&#40;</span>LINKER<span style=\"color: #000000;\">&#41;</span> @&&!  <br />    $<span style=\"color: #000000;\">&#40;</span>LFLAGS<span style=\"color: #000000;\">&#41;</span> +<br />    $<span style=\"color: #000000;\">&#40;</span>ALLOBJ<span style=\"color: #000000;\">&#41;</span>, +<br />    $<span style=\"color: #000000;\">&#40;</span>PROJECT<span style=\"color: #000000;\">&#41;</span>,, +<br />    $<span style=\"color: #000000;\">&#40;</span>ALLLIB<span style=\"color: #000000;\">&#41;</span>, +<br />    $<span style=\"color: #000000;\">&#40;</span>DEFFILE<span style=\"color: #000000;\">&#41;</span>, +<br />    $<span style=\"color: #000000;\">&#40;</span>ALLRES<span style=\"color: #000000;\">&#41;</span> <br />!<br /> </div>[/code:3iqpo1eu]\n\n\n\n[code=fw:3iqpo1eu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />K:\\v_xharb>\\xharbour\\bin\\hbmake genep_xh.bc <br />K:\\BCC582\\BIN\\ilink32 @makefile.lnk<br />Turbo Incremental Link <span style=\"color: #000000;\">6.70</span> Copyright <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">1997</span><span style=\"color: #000000;\">-2014</span> Embarcadero Technologies, Inc.<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_NEW'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_CONFIG'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_KILL'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_UNLOCK'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_ADDTEXT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_SETTEXT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_LCOUNT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_INSTEXT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_GETTEXT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_GETLINE'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_GETNEXT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_READTEXT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_STABILIZE'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_ROW'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_COL'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_WINROW'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_WINCOL'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_PUTCHAR'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_DOWN'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_UP'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_DELLINE'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_DELWORD'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_DELCHAR'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_BSPACE'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_RETURN'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_PGDOWN'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_PGUP'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_TOP'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_BOTTOM'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_RIGHT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_LEFT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_HOME'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_END'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_PWORD'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_PUSH'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_POP'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br /><br /> </div>[/code:3iqpo1eu]", "time": "21:04", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruben,\n\nLos errores que has puesto son de enlazado pero no los de compilado.\n\nPuedes copiar aqui el contenido de editorlo.c ?", "time": "07:39", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "proba con esta app\na ver si te funciona.\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=29379&p=165884&hilit=creamake#p165884\">viewtopic.php?f=6&t=29379&p=165884&hilit=creamake#p165884</a><!-- l -->", "time": "15:44", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "goosfancito" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1a5qqn99]Ruben,\n\nLos errores que has puesto son de enlazado pero no los de compilado.\n\nPuedes copiar aqui el contenido de editorlo.c ?[/quote:1a5qqn99]\n\nGracias Antonio.\n\nAquí esta el código.\n\n[url:1a5qqn99]http&#58;//www&#46;4shared&#46;com/rar/i_FdcL7cba/carpeta_pe&#46;html[/url:1a5qqn99]", "time": "16:35", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruben,\n\nUsas Borland ?", "time": "19:03", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Aqui compila bien con Borland aunque salen una serie de warnings que habria que revisar:\n\n[quote:36w6mo5r]c:\\temp>c:\\bcc582\\bin\\bcc32 -c -Ic:\\harbour\\include editorlo.c\nBorland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland\neditorlo.c:\nWarning W8060 editorlo.c 349: Possibly incorrect assignment in function FormatTe\nxt\nWarning W8012 editorlo.c 406: Comparing signed and unsigned values in function N\newText\nWarning W8075 editorlo.c 456: Suspicious pointer conversion in function HB_ED_AD\nDTEXT\nWarning W8060 editorlo.c 500: Possibly incorrect assignment in function GoToLine\n\nWarning W8075 editorlo.c 643: Suspicious pointer conversion in function HB_ED_IN\nSTEXT\nWarning W8012 editorlo.c 971: Comparing signed and unsigned values in function H\nB_ED_GETLINE\nWarning W8075 editorlo.c 1082: Suspicious pointer conversion in function HB_ED_S\nETTEXT\nWarning W8004 editorlo.c 1155: 'lConv' is assigned a value that is never used in\n function HB_ED_READTEXT\nWarning W8012 editorlo.c 1238: Comparing signed and unsigned values in function\nHB_ED_STABILIZE\nWarning W8060 editorlo.c 1299: Possibly incorrect assignment in function HB_ED_S\nTABILIZE\nWarning W8012 editorlo.c 1929: Comparing signed and unsigned values in function\nEnd\nWarning W8012 editorlo.c 1943: Comparing signed and unsigned values in function\nEnd\nWarning W8012 editorlo.c 2059: Comparing signed and unsigned values in function\nDelChar\nWarning W8012 editorlo.c 2154: Comparing signed and unsigned values in function\nBackSpace\nWarning W8060 editorlo.c 2190: Possibly incorrect assignment in function BackSpa\nce\nWarning W8012 editorlo.c 2317: Comparing signed and unsigned values in function\nNextWord\nWarning W8012 editorlo.c 2380: Comparing signed and unsigned values in function\nPreviousWord\nWarning W8012 editorlo.c 2468: Comparing signed and unsigned values in function\nformat_line\nWarning W8012 editorlo.c 2636: Comparing signed and unsigned values in function\nPutChar\nWarning W8012 editorlo.c 2876: Comparing signed and unsigned values in function\nReturn\n\nc:\\temp>[/quote:36w6mo5r]", "time": "21:45", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2vnvdmnd]Aqui compila bien con Borland aunque salen una serie de warnings que habria que revisar:\n\n[quote:2vnvdmnd]c:\\temp>c:\\bcc582\\bin\\bcc32 -c -Ic:\\harbour\\include editorlo.c\nBorland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland\neditorlo.c:\nWarning W8060 editorlo.c 349: Possibly incorrect assignment in function FormatTe\nxt\nWarning W8012 editorlo.c 406: Comparing signed and unsigned values in function N\newText\nWarning W8075 editorlo.c 456: Suspicious pointer conversion in function HB_ED_AD\nDTEXT\nWarning W8060 editorlo.c 500: Possibly incorrect assignment in function GoToLine\n\nWarning W8075 editorlo.c 643: Suspicious pointer conversion in function HB_ED_IN\nSTEXT\nWarning W8012 editorlo.c 971: Comparing signed and unsigned values in function H\nB_ED_GETLINE\nWarning W8075 editorlo.c 1082: Suspicious pointer conversion in function HB_ED_S\nETTEXT\nWarning W8004 editorlo.c 1155: 'lConv' is assigned a value that is never used in\n function HB_ED_READTEXT\nWarning W8012 editorlo.c 1238: Comparing signed and unsigned values in function\nHB_ED_STABILIZE\nWarning W8060 editorlo.c 1299: Possibly incorrect assignment in function HB_ED_S\nTABILIZE\nWarning W8012 editorlo.c 1929: Comparing signed and unsigned values in function\nEnd\nWarning W8012 editorlo.c 1943: Comparing signed and unsigned values in function\nEnd\nWarning W8012 editorlo.c 2059: Comparing signed and unsigned values in function\nDelChar\nWarning W8012 editorlo.c 2154: Comparing signed and unsigned values in function\nBackSpace\nWarning W8060 editorlo.c 2190: Possibly incorrect assignment in function BackSpa\nce\nWarning W8012 editorlo.c 2317: Comparing signed and unsigned values in function\nNextWord\nWarning W8012 editorlo.c 2380: Comparing signed and unsigned values in function\nPreviousWord\nWarning W8012 editorlo.c 2468: Comparing signed and unsigned values in function\nformat_line\nWarning W8012 editorlo.c 2636: Comparing signed and unsigned values in function\nPutChar\nWarning W8012 editorlo.c 2876: Comparing signed and unsigned values in function\nReturn\n\nc:\\temp>[/quote:2vnvdmnd][/quote:2vnvdmnd]\n\nGracias Antonio\nRevisando si compila , pero al Generar el ejecutable , genera el mismo error. Que enuncie inicialmente.\nLe anexo el makefile.lnk\n\n[code=fw:2vnvdmnd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />-LK:\\BCC582\\lib\\obj;K:\\BCC582\\lib;K:\\xHarbour\\lib -Gn -M -m -s -Tpe -x -ap +<br />c0x32.obj obj\\PXPMENU.obj obj\\PXP0013.obj obj\\PXPASIG.obj obj\\PXPASIG1.obj obj\\PXPASIGa.obj obj\\PXPASIG1a.obj obj\\PXPBR27.obj obj\\PXPTB04.obj obj\\PXPTB04a.obj obj\\PXPBRXX.obj obj\\PXPBRXXa.obj obj\\PXPTBROW.obj obj\\PXPCONDI.obj obj\\PXPCOND1.obj obj\\PXPRESQL_1.obj obj\\PXPRESQL_1a.obj obj\\PXP100.obj obj\\PXP101.obj obj\\PXP102.obj obj\\PXP110.obj obj\\PXP200.obj obj\\PXP210.obj obj\\PXP300.obj obj\\PXP301.obj obj\\PXP302.obj obj\\PXP303.obj obj\\PXP304.obj obj\\PXP305.obj obj\\PXP306.obj obj\\PXP307.obj obj\\PXP308.obj obj\\PXP309.obj obj\\PXP310.obj obj\\PXP311.obj obj\\PXP312.obj obj\\PXP313.obj obj\\PXP320.obj obj\\PXP321.obj obj\\PXP322.obj obj\\PXP323.obj obj\\PXP324.obj obj\\PXP330.obj obj\\PXP400.obj obj\\PXP401.obj obj\\PXP403.obj obj\\PXP404.obj obj\\PXP405.obj obj\\PXP406.obj obj\\PXP407.obj obj\\PXP408.obj obj\\PXP409.obj obj\\PXP440.obj obj\\PXP441.obj obj\\PXP442.obj obj\\PXP450.obj obj\\PXP451.obj obj\\PXP452.obj obj\\PXP453.obj obj\\PXP454.obj obj\\PXP460.obj obj\\PXP500.obj obj\\PXP501.obj obj\\PXP502.obj obj\\PXP503.obj obj\\PXP504.obj obj\\PXP505.obj obj\\PXP510.obj obj\\PXP600.obj obj\\PXP601.obj obj\\PXP602.obj obj\\PXP603.obj obj\\PXP604.obj obj\\PXP610.obj obj\\PXP700.obj obj\\PXP701.obj obj\\PXP702.obj obj\\PXP800.obj obj\\PXP801.obj obj\\PXP802.obj obj\\PXP803.obj obj\\PXP804.obj obj\\PXP4000.obj obj\\PXP4001.obj obj\\PXP4002.obj obj\\PXP4003.obj obj\\PXP4003A.obj obj\\PXP4004.obj obj\\PXP5000.obj obj\\PXP5001.obj obj\\PXP5010.obj obj\\PXP5011.obj obj\\PXP7000.obj obj\\PXP7001.obj obj\\PXP7002.obj obj\\PXP9000.obj obj\\PXP9001.obj obj\\PXP1065.obj obj\\PXP1071.obj obj\\PXP3010.obj obj\\PXP3011.obj obj\\PXPCARGA.obj obj\\CXCASIG.obj obj\\CXCASIG1.obj obj\\CXCASIGa.obj obj\\CXCASIG1a.obj obj\\CXC1431.obj obj\\CXC403.obj obj\\CXC404.obj obj\\CXC405.obj obj\\CXC406.obj obj\\CXC407.obj obj\\CXC408.obj obj\\CXC501.obj obj\\CXC602.obj obj\\CXCTBR27.obj obj\\NXNASIG.obj obj\\NXNASIG1.obj obj\\NXNASIGa.obj obj\\NXNASIG1a.obj obj\\NXNTBRO.obj obj\\NXN400.obj obj\\NXN500.obj obj\\NXN501.obj obj\\NXN600.obj obj\\NXN610.obj obj\\NXN611.obj obj\\NXN612.obj obj\\NXN613.obj obj\\NXN614.obj obj\\NXN615.obj obj\\NXN700.obj obj\\NXN1000.obj obj\\NXN1001.obj obj\\NXN1002.obj obj\\NXN1003.obj obj\\NXN1004.obj obj\\NXN1005.obj obj\\NXN1050.obj obj\\NXN1051.obj obj\\NXN1431.obj obj\\NXN2040.obj obj\\NXNTBROW.obj obj\\NXNTBR21.obj obj\\CONASIG.obj obj\\CONASIG1.obj obj\\CONASIGa.obj obj\\CONASIG1a.obj obj\\CONTBR28.obj obj\\CONT502.obj obj\\CONT503.obj obj\\CONT510.obj obj\\CONT1050.obj obj\\CONT1080.obj obj\\CONT1081.obj obj\\PXPFunc_1.obj obj\\PXPFunc_2.obj obj\\PXPFunc_3.obj obj\\PXPClases.obj obj\\PXPClavag.obj obj\\s3meta2.obj obj\\DEMO_FWH.obj obj\\PXPFASTR_1.obj obj\\PXPEYSAREP_1.obj obj\\PXPFUNCIONES.obj obj\\PXP_CLASE.obj obj\\PXP1030.obj obj\\PE.obj obj\\editorhi.obj obj\\editorlo.obj, +<br />PLASMENU.exe,, +<br />lang.lib vm.lib rtl.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib dbffpt.lib common.lib gtwin.lib codepage.lib ct.lib tip.lib pcrepos.lib hsx.lib hbsix.lib debug.lib hbhpdf.lib png.lib zlib.lib libnf.lib .\\\\lib\\xHarb\\librub_xh.lib .\\\\lib\\xHarb\\librub1_xh.lib .\\\\lib\\xHarb\\grump_xh.lib .\\\\lib\\xHarb\\libsuper_xh.lib .\\\\lib\\xHarb\\dialog32_xh.lib .\\\\lib\\xHarb\\filexls_xh.lib \\fwh\\LIB\\Fivehx.lib \\fwh\\LIB\\FiveHC.lib .\\\\lib\\xHarb\\dolphin_xh.lib .\\\\lib\\xHarb\\libmysql.lib .\\\\lib\\xHarb\\EasyRep_xh.lib K:\\BCC582\\lib\\psdk\\psapi.lib import32.lib cw32.lib, +<br />, +<br /> </div>[/code:2vnvdmnd]\n\nAntonio Usted genero el Ejecutable. Para saber si pasa lo mismo.\n\n\nGracias", "time": "01:05", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruben,\n\nTienes que enlazar la libreria hbmisc.lib de Harbour", "time": "15:47", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-29", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1ia6cuwx]Ruben,\n\nTienes que enlazar la libreria hbmisc.lib de Harbour[/quote:1ia6cuwx]\n\nGracias Antonio.\n\nLo estoy compiladon con Harbour y bcc68\nMe da este error\n\n[code=fw:1ia6cuwx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />K:\\v_xharb>if not exist obj md obj <br /><br />K:\\v_xharb>K:\\BCC582\\bin\\make -fpe.mak <br />MAKE Version <span style=\"color: #000000;\">5.2</span> &nbsp;Copyright <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">1987</span>, <span style=\"color: #000000;\">2000</span> Borland<br />&nbsp; &nbsp; K:\\harbour\\bin\\harbour K:\\v_xharb\\pe\\pe.PRG /L /N /W /Oobj\\ /IK:\\FWH\\include;K:\\harbour\\include;.\\include <br />Harbour <span style=\"color: #000000;\">3.2</span>.0dev <span style=\"color: #000000;\">&#40;</span>r1406271520<span style=\"color: #000000;\">&#41;</span><br />Copyright <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">1999</span><span style=\"color: #000000;\">-2014</span>, http:<span style=\"color: #B900B9;\">//harbour-project.org/</span><br />Compiling <span style=\"color: #ff0000;\">'K:<span style=\"color: #000000;\">\\v</span>_xharb<span style=\"color: #000000;\">\\p</span>e<span style=\"color: #000000;\">\\p</span>e.PRG'</span>...<br /><br />Lines <span style=\"color: #000000;\">41</span>, Functions/Procedures <span style=\"color: #000000;\">2</span><br />Generating C source output <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'obj<span style=\"color: #000000;\">\\p</span>e.c'</span>... Done.<br />&nbsp; &nbsp; K:\\BCC582\\bin\\bcc32 -c -tWM -IK:\\harbour\\include -oobj\\pe obj\\pe.c <br />Embarcadero C++ <span style=\"color: #000000;\">6.80</span> <span style=\"color: #00C800;\">for</span> Win32 Copyright <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">1993</span><span style=\"color: #000000;\">-2014</span> Embarcadero Technologies, Inc.<br />obj\\pe.c:<br />&nbsp; &nbsp; <span style=\"color: #000000;\">K</span>:\\harbour\\bin\\harbour K:\\v_xharb\\pe\\editorhi.PRG /L /N /W /Oobj\\ /IK:\\FWH\\include;K:\\harbour\\include;.\\include <br />Harbour <span style=\"color: #000000;\">3.2</span>.0dev <span style=\"color: #000000;\">&#40;</span>r1406271520<span style=\"color: #000000;\">&#41;</span><br />Copyright <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">1999</span><span style=\"color: #000000;\">-2014</span>, http:<span style=\"color: #B900B9;\">//harbour-project.org/</span><br />Compiling <span style=\"color: #ff0000;\">'K:<span style=\"color: #000000;\">\\v</span>_xharb<span style=\"color: #000000;\">\\p</span>e<span style=\"color: #000000;\">\\e</span>ditorhi.PRG'</span>...<br /><br /><span style=\"color: #000000;\">100</span><br /><br /><span style=\"color: #000000;\">200</span><br /><br /><span style=\"color: #000000;\">300</span><br /><br /><span style=\"color: #000000;\">100</span><br /><br /><span style=\"color: #000000;\">100</span><br /><br /><span style=\"color: #000000;\">200</span><br /><br /><span style=\"color: #000000;\">300</span><br /><br /><span style=\"color: #000000;\">400</span><br /><br /><span style=\"color: #000000;\">500</span><br /><br /><span style=\"color: #000000;\">600</span><br /><br />Lines <span style=\"color: #000000;\">1334</span>, Functions/Procedures <span style=\"color: #000000;\">25</span><br />Generating C source output <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'obj<span style=\"color: #000000;\">\\e</span>ditorhi.c'</span>... Done.<br />&nbsp; &nbsp; K:\\BCC582\\bin\\bcc32 -c -tWM -IK:\\harbour\\include -oobj\\editorhi obj\\editorhi.c <br />Embarcadero C++ <span style=\"color: #000000;\">6.80</span> <span style=\"color: #00C800;\">for</span> Win32 Copyright <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">1993</span><span style=\"color: #000000;\">-2014</span> Embarcadero Technologies, Inc.<br />obj\\editorhi.c:<br />&nbsp; &nbsp; <span style=\"color: #000000;\">echo</span> off<br />&nbsp; &nbsp; echo K:\\BCC582\\lib\\c0w32.obj + > b32.bc<br />&nbsp; &nbsp; echo OBJ\\pe.obj + >> b32.bc <br />&nbsp; &nbsp; echo OBJ\\editorhi.obj, + >> b32.bc <br />&nbsp; &nbsp; echo pe.exe, + >> b32.bc <br />&nbsp; &nbsp; echo pe.map, + >> b32.bc <br />&nbsp; &nbsp; echo K:\\FWH\\lib\\FiveH.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\FWH\\lib\\FiveHC.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbrtl.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbvm.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\gtgui.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hblang.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbcpage.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbmacro.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbrdd.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\rddntx.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\rddcdx.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\rddfpt.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbsix.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbdebug.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbcommon.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbpp.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbpcre.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbct.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbzlib.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbmisc.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbtip.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\png.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\harbour\\lib\\hbwin.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\BCC582\\lib\\cw32.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\BCC582\\lib\\import32.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\BCC582\\lib\\psdk\\odbc32.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\BCC582\\lib\\psdk\\nddeapi.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\BCC582\\lib\\psdk\\iphlpapi.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\BCC582\\lib\\psdk\\msimg32.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\BCC582\\lib\\psdk\\psapi.lib + >> b32.bc<br />&nbsp; &nbsp; echo K:\\BCC582\\lib\\psdk\\rasapi32.lib >> b32.bc<br />&nbsp; &nbsp; K:\\BCC582\\bin\\ilink32 -Gn -aa -Tpe -s @b32.bc<br />Turbo Incremental Link <span style=\"color: #000000;\">6.70</span> Copyright <span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">1997</span><span style=\"color: #000000;\">-2014</span> Embarcadero Technologies, Inc.<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_CTOT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|VALBLANK<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_HB_COMPILEFROMBUF'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|HARBOUR<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_TOLEAUTO'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|HARBOUR<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_HHASKEY'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|FWDECODE<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_TTOS'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|ADOFUNCS<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_GETACTIVEOBJECT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|OLEFUNCS<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_CREATEOBJECT'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|OLEFUNCS<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ANSITOWIDE'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|TGET<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_DATETIME'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|PRV2PDF<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_HB_DECODE'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|XBROWSE<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_WILDMATCH'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|XBROWSE<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_NUMTOHEX'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|XBROWSE<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_STRTOHEX'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|XBROWSE<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_HEXTOSTR'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|XBROWSE<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_NOTIFY'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\FWH\\LIB\\FIVEH.LIB|WINDOW<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_KILL'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_UNLOCK'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_PUSH'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_FUN_ED_POP'</span> referenced <span style=\"color: #0000ff;\">from</span> K:\\V_XHARB\\OBJ\\EDITORHI.OBJ<br />Error: <span style=\"color: #000000;\">Unable</span> <span style=\"color: #0000ff;\">to</span> perform link<br /><br />** error <span style=\"color: #000000;\">2</span> ** deleting pe.exe<br />&nbsp;</div>[/code:1ia6cuwx]\nEste es el Archivo pe.mak\n\n[code]\n\nHDIRL=K:\\harbour\nBCDIR=K:\\BCC582\nFWDIR=K:\\FWH\n\n.path.OBJ = .\\obj \n.path.CH = $(FWDIR)\\include;$(HDIRL)\\include\nPRG= \\\nK:\\v_xharb\\pe\\pe.prg \\\nK:\\v_xharb\\pe\\editorhi.prg\n\nC= \\\nK:\\v_xharb\\pe\\editorlo.c\n\nOBJ=$(PRG:.prg=.obj)\nOBJS=$(OBJ:.\\=.obj\\)\n\nPROJECT : pe.exe\n\npe.exe : $(OBJS)\n echo off\n echo $(BCDIR)\\lib\\c0w32.obj + > b32.bc\n echo OBJ\\pe.obj + >> b32.bc \n echo OBJ\\editorhi.obj, + >> b32.bc \n echo pe.exe, + >> b32.bc \n echo pe.map, + >> b32.bc \n echo $(FWDIR)\\lib\\FiveH.lib + >> b32.bc\n echo $(FWDIR)\\lib\\FiveHC.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbrtl.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbvm.lib + >> b32.bc\n echo $(HDIRL)\\lib\\gtgui.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hblang.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbcpage.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbmacro.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbrdd.lib + >> b32.bc\n echo $(HDIRL)\\lib\\rddntx.lib + >> b32.bc\n echo $(HDIRL)\\lib\\rddcdx.lib + >> b32.bc\n echo $(HDIRL)\\lib\\rddfpt.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbsix.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbdebug.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbcommon.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbpp.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbpcre.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbct.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbzlib.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbmisc.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbtip.lib + >> b32.bc\n echo $(HDIRL)\\lib\\png.lib + >> b32.bc\n echo $(HDIRL)\\lib\\hbwin.lib + >> b32.bc\n echo $(BCDIR)\\lib\\cw32.lib + >> b32.bc\n echo $(BCDIR)\\lib\\import32.lib + >> b32.bc\n echo $(BCDIR)\\lib\\psdk\\odbc32.lib + >> b32.bc\n echo $(BCDIR)\\lib\\psdk\\nddeapi.lib + >> b32.bc\n echo $(BCDIR)\\lib\\psdk\\iphlpapi.lib + >> b32.bc\n echo $(BCDIR)\\lib\\psdk\\msimg32.lib + >> b32.bc\n echo $(BCDIR)\\lib\\psdk\\psapi.lib + >> b32.bc\n echo $(BCDIR)\\lib\\psdk\\rasapi32.lib >> b32.bc\n\n $(BCDIR)\\bin\\ilink32 -Gn -aa -Tpe -s @b32.bc\n\n.PRG.OBJ: \n $(HDIRL)\\bin\\harbour $< /L /N /W /Oobj\\ /I$(FWDIR)\\include;$(HDIRL)\\include;.\\include \n $(BCDIR)\\bin\\bcc32 -c -tWM -I$(HDIRL)\\include -oobj\\$& obj\\$&.c \n\n.C.OBJ: \n echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp \n echo -I$(HDIRL)\\include;$(FWDIR)\\include >> tmp \n $(BCDIR)\\bin\\bcc32 -oobj\\$& @tmp $&.c \n\n del tmp\n\n[code]", "time": "18:10", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Tienes que enlazar la libreria hbcplr.lib de Harbour", "time": "19:54", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-29", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2zg73uw6]Tienes que enlazar la libreria hbcplr.lib de Harbour[/quote:2zg73uw6]\n\nGracias Antonio\nenlazo la libreria hbcplr.lib , y sigue lo mismo.\n\nPero Enlazo esta librería xhb.lib\n\nNo se que otra librería me falta.\n\nY me dan estos errores.\nTurbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.\nError: Unresolved external '_HB_FUN_ED_KILL' referenced from K:\\V_XHARB\\OBJ\\EDITORHI.OBJ\nError: Unresolved external '_HB_FUN_ED_UNLOCK' referenced from K:\\V_XHARB\\OBJ\\EDITORHI.OBJ\nError: Unresolved external '_HB_FUN_ED_PUSH' referenced from K:\\V_XHARB\\OBJ\\EDITORHI.OBJ\nError: Unresolved external '_HB_FUN_ED_POP' referenced from K:\\V_XHARB\\OBJ\\EDITORHI.OBJ\nError: Unable to perform link", "time": "20:37", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Tienes que enlazar hbmisc.lib", "time": "22:36", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1uplg37w]Tienes que enlazar hbmisc.lib[/quote:1uplg37w]\n\nGracias Antonio.\n\nPero ya tenia esta hbmisc.lib , pero sigue el mismo problema.", "time": "00:53", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruben,\n\nPrueba a crear esas 4 funciones de esta forma:\n\nfunction ED_KILL()\n\nreturn nil\n\ny a ver si asi te construye el EXE", "time": "01:53", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":ahzty7t4]Ruben,\n\nPrueba a crear esas 4 funciones de esta forma:\n\nfunction ED_KILL()\n\nreturn nil\n\ny a ver si asi te construye el EXE[/quote:ahzty7t4]\n\nYa cree la 4 funciones, y crea el ejecutable.\n\nPero al Ejecutar me da estos errores\n\n[code=fw:ahzty7t4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />Application<br />===========<br />&nbsp; &nbsp;Path and <span style=\"color: #0000ff;\">name</span>: <span style=\"color: #000000;\">K</span>:\\v_xharb\\pe.exe <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">32</span> bits<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">Size</span>: <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">874</span>,<span style=\"color: #000000;\">880</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style=\"color: #000000;\">Harbour</span> <span style=\"color: #000000;\">3.2</span>.0dev <span style=\"color: #000000;\">&#40;</span>r1406271520<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;Version: <span style=\"color: #000000;\">FWH</span> <span style=\"color: #000000;\">14.06</span><br />&nbsp; &nbsp;Windows version: <span style=\"color: #000000;\">6.2</span>, Build <span style=\"color: #000000;\">9200</span> <br /><br />&nbsp; &nbsp;Time <span style=\"color: #0000ff;\">from</span> start: <span style=\"color: #000000;\">0</span> hours <span style=\"color: #000000;\">0</span> mins <span style=\"color: #000000;\">0</span> secs <br />&nbsp; &nbsp;Error occurred <span style=\"color: #00C800;\">at</span>: <span style=\"color: #000000;\">11</span>/<span style=\"color: #000000;\">29</span>/<span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">21</span>:<span style=\"color: #000000;\">44</span>:<span style=\"color: #000000;\">44</span><br />&nbsp; &nbsp;Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1076</span> &nbsp;Argument error: >=<br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#91;</span> &nbsp; <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> = P &nbsp; 0x2841E4<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#91;</span> &nbsp; <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> = N &nbsp; <span style=\"color: #000000;\">0</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">K</span>:\\v_xharb\\pe\\editorhi.PRG => EDITORNEW<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">K</span>:\\v_xharb\\pe\\pe.PRG => MEMOEDITOR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">K</span>:\\v_xharb\\pe\\pe.PRG => MAIN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />System<br />======<br />&nbsp; &nbsp;CPU type: <span style=\"color: #000000;\">Intel</span><span style=\"color: #000000;\">&#40;</span>R<span style=\"color: #000000;\">&#41;</span> Core<span style=\"color: #000000;\">&#40;</span>TM<span style=\"color: #000000;\">&#41;</span> i3<span style=\"color: #000000;\">-2100</span> CPU @ <span style=\"color: #000000;\">3</span>.10GHz <span style=\"color: #000000;\">3100</span> Mhz<br />&nbsp; &nbsp;Hardware memory: <span style=\"color: #000000;\">7103</span> megs<br /><br />&nbsp; &nbsp;Free System resources: <span style=\"color: #000000;\">90</span> %<br />&nbsp; &nbsp; &nbsp; &nbsp; GDI &nbsp; &nbsp;resources: <span style=\"color: #000000;\">90</span> %<br />&nbsp; &nbsp; &nbsp; &nbsp; User &nbsp; resources: <span style=\"color: #000000;\">90</span> %<br /><br />&nbsp; &nbsp;Windows total applications running: <span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">1</span> , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">2</span> , C:\\Windows\\SYSTEM32\\SHLWAPI.dll &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">3</span> Conmutación de tareas, K:\\v_xharb\\pe.exe &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">4</span> DDE <span style=\"color: #00C800;\">Server</span> <span style=\"color: #0000ff;\">Window</span>, C:\\Windows\\SYSTEM32\\OLE32.DLL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><br />Variables in use<br />================<br />&nbsp; &nbsp;Procedure &nbsp; &nbsp; Type &nbsp; Value<br />&nbsp; &nbsp;==========================<br />&nbsp; &nbsp;EDITORNEW<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">1</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">O</span> &nbsp; &nbsp;<span style=\"color: #00C800;\">Class</span>: <span style=\"color: #000000;\">ERROR</span><br />&nbsp; &nbsp;MEMOEDITOR<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">1</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">2</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">3</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">23</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">4</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">79</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">5</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">254</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">6</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">7</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">8</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">9</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style=\"color: #000000;\">10</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">168</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> &nbsp; <span style=\"color: #000000;\">1</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">P</span> &nbsp; &nbsp;0x2841E4<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> &nbsp; <span style=\"color: #000000;\">2</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> &nbsp; <span style=\"color: #000000;\">3</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">P</span> &nbsp; &nbsp;0x2841E4<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> &nbsp; <span style=\"color: #000000;\">4</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> &nbsp; <span style=\"color: #000000;\">5</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> &nbsp; <span style=\"color: #000000;\">6</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp;MAIN<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">1</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">C</span> &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">2</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">3</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">4</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">23</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">5</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">N</span> &nbsp; &nbsp;<span style=\"color: #000000;\">79</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style=\"color: #000000;\">6</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">L</span> &nbsp; &nbsp;.F.<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> &nbsp; <span style=\"color: #000000;\">1</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">U</span> &nbsp; &nbsp;<br /><br />Linked RDDs<br />===========<br />&nbsp; &nbsp;DBF<br />&nbsp; &nbsp;DBFFPT<br />&nbsp; &nbsp;DBFBLOB<br />&nbsp; &nbsp;DBFNTX<br /><br />DataBases in use<br />================<br /><br />Classes in use:<br />===============<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">1</span> ERROR<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">2</span> HBCLASS<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">3</span> HBOBJECT<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">4</span> TREG32<br /><br />Memory Analysis<br />===============<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">204</span> <span style=\"color: #00C800;\">Static</span> variables<br /><br />&nbsp; &nbsp;Dynamic memory consume:<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">Actual</span> &nbsp;Value: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">0</span> bytes<br />&nbsp; &nbsp; &nbsp; Highest Value: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">0</span> bytes<br />\u001a<br />&nbsp;</div>[/code:ahzty7t4]", "time": "03:49", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruben,\n\nPublica aqui el código de editorhi.PRG, gracias\n\nEn el método New() parece que se le intenta restar un número a un puntero.", "time": "08:13", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2dy7chtf]Ruben,\n\nPublica aqui el código de editorhi.PRG, gracias\n\nEn el método New() parece que se le intenta restar un número a un puntero.[/quote:2dy7chtf]\n\nAquí esta todo el código.", "time": "14:58", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"ruben Dario\":257s2j5z][quote=\"Antonio Linares\":257s2j5z]Ruben,\n\nPublica aqui el código de editorhi.PRG, gracias\n\nEn el método New() parece que se le intenta restar un número a un puntero.[/quote:257s2j5z][/quote:257s2j5z]\n\nAquí esta todo el código\n\n[url]\n<!-- m --><a class=\"postlink\" href=\"https://www.dropbox.com/s/hggzhwmh9m57bl2/codigo%20fuente%20pe.rar?dl=0\">https://www.dropbox.com/s/hggzhwmh9m57b ... e.rar?dl=0</a><!-- m -->\n[/url]", "time": "15:08", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruben,\n\nEste código que deseas usar para que es ?\n\nQue funcionalidad es la que buscas ?", "time": "15:12", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2jy8v8nl]Ruben,\n\nEste código que deseas usar para que es ?\n\nQue funcionalidad es la que buscas ?[/quote:2jy8v8nl]\n\nSolamente quería comparar con el que maneja clipper, ya que los encontré en los ejemplos de xharbour.\nYa que tengo una aplicación de clipper que emigre a xharbour , y quería ver la funcionalidad de este editor.\nmientras emigro a FWH. dicha aplicación.\n\nSegún veo el código estas funciones están definidas editorlo.c, no se porque no las toma.\naquí esta en el trozo de código, pero tiene una definición #ifdef mc51, \n\n\n/*\n **\n*/\n#ifdef mc51\nCLIPPER_ACTION( HB_ED_PUSH )\n{\n int i;\n\n i =0;\n while( i < 5 && EStack[i] )\n i++;\n\n EStack[ i ] =ED;\n}\n\nCLIPPER_ACTION( HB_ED_POP )\n{\n int i;\n\n i =0;\n while( i < 5 && EStack[i] )\n i++;\n\n if( i )\n {\n ED =EStack[ i-1 ];\n EStack[ i-1 ] =NULL;\n }\n}\n#endif", "time": "20:05", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "ruben Dario" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruben,\n\nFWH te ofrece varios editores. El más potente es scintilla. \n\nTienes un ejemplo en FWH\\samples\\sciedit.prg", "time": "20:40", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola, donde puedo descargar el editor de texto PE.exe en modo consola, para probar?\n\nGracias, saludos.", "time": "13:47", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "karinha" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:3n148wog]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/***<br />*<br />*   Pe.prg<br />*<br />*  Simple program editor in Clipper.<br />*<br />*  Copyright (c) 1993, Computer Associates International, Inc.<br />*  All rights reserved.<br />*<br />*  Compile:    CLIPPER pe /n/w/m<br />*  Link:       RTLINK FILE pe<br />*  Execute:    pe <file><br />*<br />*/</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"inkey.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"setcurs.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"memoedit.ch\"</span><br /><br /><br /><span style=\"color: #B900B9;\">/* key defs for pe */</span><br /><span style=\"color: #00D7D7;\">#define</span> EK_WRITE K_ALT_W<br /><span style=\"color: #00D7D7;\">#define</span> EK_QUIT  K_ESC<br /><span style=\"color: #00D7D7;\">#define</span> EK_WQUIT K_CTRL_W<br /><br /><br /><span style=\"color: #B900B9;\">/* structure used to contain information about edit in progress */</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_TOP      <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_LEFT     <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_BOTTOM   <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_RIGHT    <span style=\"color: #000000;\">4</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> ES_FILE     <span style=\"color: #000000;\">5</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_TEXT     <span style=\"color: #000000;\">6</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> ES_WIDTH    <span style=\"color: #000000;\">7</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_TABSIZE  <span style=\"color: #000000;\">8</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_SCROLL   <span style=\"color: #000000;\">9</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_WRAP     <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_INS      <span style=\"color: #000000;\">11</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> ES_ROW      <span style=\"color: #000000;\">12</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_COL      <span style=\"color: #000000;\">13</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_RELROW   <span style=\"color: #000000;\">14</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_RELCOL   <span style=\"color: #000000;\">15</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> ES_CHANGED  <span style=\"color: #000000;\">16</span><br /><span style=\"color: #00D7D7;\">#define</span> ES_LASTKEY  <span style=\"color: #000000;\">17</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> ES_PATTERN  <span style=\"color: #000000;\">18</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> ES_LENGTH   <span style=\"color: #000000;\">18</span><br /><br /><br /><span style=\"color: #00D7D7;\">#define</span> NextTab<span style=\"color: #000000;\">&#40;</span>y, z<span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>y<span style=\"color: #000000;\">&#41;</span> + z <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>y<span style=\"color: #000000;\">&#41;</span> % z <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #B900B9;\">/* static vars scope to entire module */</span><br /><span style=\"color: #00C800;\">static</span> aEdit<br /><span style=\"color: #00C800;\">static</span> nMaxRow<br /><span style=\"color: #00C800;\">static</span> nMaxCol<br /><span style=\"color: #00C800;\">static</span> nStatCol<br /><br /><br />****<br />*   pe<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />*<br /><br />func pe<span style=\"color: #000000;\">&#40;</span>cFile<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> nKey, lDone, cScreen<br /><br />    Set<span style=\"color: #000000;\">&#40;</span>_SET_BELL, .f.<span style=\"color: #000000;\">&#41;</span><br />    Set<span style=\"color: #000000;\">&#40;</span>_SET_SCOREBOARD, .f.<span style=\"color: #000000;\">&#41;</span><br />    SetKey<span style=\"color: #000000;\">&#40;</span>K_F1, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> IsColor<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        SetColor<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"w+/b, b/w, b\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">else</span><br />        SetColor<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"w/n, n/w\"</span><span style=\"color: #000000;\">&#41;</span><br />    end<br /><br />    <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> Empty<span style=\"color: #000000;\">&#40;</span>cFile<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        cFile := <span style=\"color: #ff0000;\">\"untitled\"</span><br />    elseif <span style=\"color: #000000;\">&#40;</span> Rat<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".\"</span>, cFile<span style=\"color: #000000;\">&#41;</span> <= Rat<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span>, cFile) )<br />        cFile := cFile + \"</span>.prg<span style=\"color: #ff0000;\">\"<br />    end<br /><br />    nMaxRow := Maxrow()<br />    nMaxCol := Maxcol()<br />    nStatCol := nMaxCol - 19<br /><br />    /* create the edit structure */<br />    aEdit               := Array(ES_LENGTH)<br />    aEdit[ES_FILE]      := Lower(cFile)<br />    aEdit[ES_TEXT]      := MemoRead(cFile)<br /><br />    aEdit[ES_TOP]       := 0<br />    aEdit[ES_LEFT]      := 0<br />    aEdit[ES_BOTTOM]    := nMaxRow - 2<br />    aEdit[ES_RIGHT]     := nMaxCol<br /><br />    aEdit[ES_WIDTH]     := 132<br />    aEdit[ES_TABSIZE]   := 4<br />    aEdit[ES_SCROLL]    := .f.<br />    aEdit[ES_WRAP]      := .t.<br />    aEdit[ES_INS]       := Set(_SET_INSERT)<br /><br />    aEdit[ES_ROW]       := 1<br />    aEdit[ES_COL]       := 0<br />    aEdit[ES_RELROW]    := 0<br />    aEdit[ES_RELCOL]    := 0<br /><br />    aEdit[ES_CHANGED]   := .f.<br />    aEdit[ES_LASTKEY]   := 0<br /><br />    aEdit[ES_PATTERN]   := \"</span><span style=\"color: #ff0000;\">\"<br /><br />    cScreen := SaveScreen(0, 0, nMaxRow, nMaxCol)<br />    cls<br /><br />    @ nMaxRow - 1, 0 TO nMaxRow - 1, nMaxCol<br />    Msg( \"</span>File: <span style=\"color: #ff0000;\">\" + aEdit[ES_FILE] )<br />    lDone := .f.<br /><br /><br />    while (!lDone)<br />        DoEditing()<br /><br />        nKey := aEdit[ES_LASTKEY]<br /><br />        do case<br />        case (nKey == K_ALT_S)<br />            Search()<br /><br />        case (nKey == K_ALT_A)<br />            SearchAgain()<br /><br />        case (nKey == EK_WRITE)<br />            EditWrite()<br /><br />        case (nKey == EK_QUIT)<br />            lDone := PExit()<br /><br />        case (nKey == EK_WQUIT)<br />            EditWrite()<br />            lDone := PExit()<br /><br />        otherwise<br />        end<br /><br />    end<br /><br />    if ( IsColor() )<br />        SetColor(\"</span>,,n<span style=\"color: #ff0000;\">\")<br />    end<br /><br />    RestScreen(0, 0, nMaxRow, nMaxCol, cScreen)<br />    @ nMaxRow, nMaxCol SAY \"</span><span style=\"color: #ff0000;\">\"<br /><br />return (NIL)<br /><br /><br />****<br />*   DoEditing()<br />*<br /><br />func DoEditing()<br /><br />    aEdit[ES_WRAP] := .t.<br />    aEdit[ES_TEXT] := MemoEdit( aEdit[ES_TEXT],     ;<br />                                aEdit[ES_TOP],      ;<br />                                aEdit[ES_LEFT],     ;<br />                                aEdit[ES_BOTTOM],   ;<br />                                aEdit[ES_RIGHT],    ;<br />                                .t., \"</span>ufunc<span style=\"color: #ff0000;\">\",       ;<br />                                aEdit[ES_WIDTH],    ;<br />                                aEdit[ES_TABSIZE],  ;<br />                                aEdit[ES_ROW],      ;<br />                                aEdit[ES_COL],      ;<br />                                aEdit[ES_RELROW],   ;<br />                                aEdit[ES_RELCOL]    ;<br />                              )<br /><br />return (NIL)<br /><br /><br />****<br />*   Prompt()<br />*<br /><br />func Prompt(cSay, cGet)<br />local getList := {}, bInsSave, bAltISave<br /><br />    bInsSave := SetKey(K_INS, {|| SetCursor(if( Set(_SET_INSERT,            ;<br />                                                !Set(_SET_INSERT) ),        ;<br />                                                SC_NORMAL, SC_INSERT) ) }   ;<br />                      )<br /><br />    bAltISave := SetKey(K_ALT_I, SetKey(K_INS))<br /><br />    Msg(Space(nStatCol))<br />    @ nMaxRow,0 SAY cSay    ;<br />                GET cGet    ;<br />                Picture \"</span>@KS<span style=\"color: #ff0000;\">\" + Ltrim(Str(nStatCol - (Len(cSay) + 2)))<br />    READ<br /><br />    SetKey(K_INS, bInsSave)<br />    SetKey(K_ALT_I, bAltISave)<br />    aEdit[ES_INS] := Set(_SET_INSERT)<br /><br />return (cGet)<br /><br /><br />****<br />*   NewName()<br />*<br /><br />func NewName()<br />local name<br /><br />    name := Prompt(\"</span>Enter <span style=\"color: #00C800;\">new</span> output file <span style=\"color: #0000ff;\">name</span>:<span style=\"color: #ff0000;\">\", PadR(aEdit[ES_FILE], 64))<br />    name := Lower(Ltrim(Rtrim(name)))<br />    if ( !Empty(name) .and. name != aEdit[ES_FILE] )<br />        aEdit[ES_FILE] := name<br />        aEdit[ES_CHANGED] := .t.<br />    end<br /><br />    Msg(\"</span>File: <span style=\"color: #ff0000;\">\" + aEdit[ES_FILE])<br /><br />return (NIL)<br /><br /><br />****<br />*   xSearch()<br />*<br /><br />func xSearch(x)<br />local nRow, pos, offset, newcol, a<br /><br />    if ( !Empty(aEdit[ES_PATTERN]) )<br />        nRow := aEdit[ES_ROW]<br />        pos := x + MLCToPos(aEdit[ES_TEXT],     ;<br />                            aEdit[ES_WIDTH],    ;<br />                            aEdit[ES_ROW],      ;<br />                            aEdit[ES_COL],      ;<br />                            aEdit[ES_TABSIZE],  ;<br />                            aEdit[ES_WRAP]      ;<br />                           )<br /><br />        offset := pos + At(aEdit[ES_PATTERN],Substr(aEdit[ES_TEXT], pos)) - 1<br />        if ( offset >= pos )<br />            a := MPosToLC(aEdit[ES_TEXT],   ;<br />                          aEdit[ES_WIDTH],  ;<br />                          offset,           ;<br />                          aEdit[ES_TABSIZE],;<br />                          aEdit[ES_WRAP]    ;<br />                         )<br /><br />            aEdit[ES_ROW] := a[1]<br />            newcol := a[2]<br />            aEdit[ES_RELCOL] := aEdit[ES_RELCOL] + newcol - aEdit[ES_COL]<br />            aEdit[ES_COL] := newcol<br /><br />            if ( aEdit[ES_ROW] - nRow <=                                ;<br />                 aEdit[ES_BOTTOM] - aEdit[ES_TOP] - aEdit[ES_RELROW]    ;<br />               )<br /><br />                aEdit[ES_RELROW] := aEdit[ES_RELROW] + aEdit[ES_ROW] - nRow<br /><br />            end<br /><br />            Msg(\"</span>Search completed.<span style=\"color: #ff0000;\">\")<br /><br />        else<br />            Msg(\"</span>Pattern not found.<span style=\"color: #ff0000;\">\")<br />        end<br />    else<br />        Msg(\"</span><span style=\"color: #ff0000;\">\")<br />    end<br /><br />return (NIL)<br /><br /><br />****<br />*   Search()<br />*<br /><br />func Search()<br />local pattern<br /><br />    pattern := Prompt(\"</span>Search <span style=\"color: #00C800;\">for</span>:<span style=\"color: #ff0000;\">\", PadR(aEdit[ES_PATTERN], 64))<br />    pattern := Ltrim(Rtrim(pattern))<br />    if ( !Empty(pattern) )<br />        aEdit[ES_PATTERN] := pattern<br />        xSearch(0)<br />    else<br />        Msg(\"</span><span style=\"color: #ff0000;\">\")<br />    end<br /><br />return (NIL)<br /><br /><br />****<br />*   SearchAgain()<br />*<br /><br />func SearchAgain()<br />return (xSearch(1))<br /><br /><br />****<br />*   ufunc()<br />*<br /><br />func ufunc(nMode, nLine, nCol)<br />local nKey<br /><br />    aEdit[ES_LASTKEY]   := nKey := LastKey()<br />    aEdit[ES_ROW]       := nLine<br />    aEdit[ES_COL]       := nCol<br />    aEdit[ES_RELROW]    := Row() - aEdit[ES_TOP]<br />    aEdit[ES_RELCOL]    := Col() - aEdit[ES_LEFT]<br /><br /><br />    if (nMode == ME_INIT)<br />        if (aEdit[ES_WRAP])<br />            /* turn off word wrap */<br />            aEdit[ES_WRAP] := .f.<br />            return (ME_TOGGLEWRAP)  /* NOTE */<br />        end<br /><br />        SetCursor( if(aEdit[ES_INS], SC_INSERT, SC_NORMAL) )<br /><br />    elseif (nMode == ME_IDLE)<br />        StatMsg()<br /><br />    else<br />        /* keystroke exception */<br />        if (nMode == ME_UNKEYX)<br />            aEdit[ES_CHANGED] := .t.<br />        end<br /><br />        do case<br />        case (nKey == K_F1)<br />            DisplayHelp()<br /><br />        case (nKey == K_ALT_H)<br />            DisplayHelp()<br /><br />        case (nKey == K_ALT_F)<br />            Msg( \"</span>File: <span style=\"color: #ff0000;\">\" + aEdit[ES_FILE] )<br /><br />        case (nKey == K_ALT_O)<br />            NewName()<br /><br />        case (nKey == K_INS)<br />            aEdit[ES_INS] := !Set(_SET_INSERT)<br />            SetCursor( if(aEdit[ES_INS], SC_INSERT, SC_NORMAL) )<br />            return (nKey)<br /><br />        case (nKey == K_ALT_I)<br />            aEdit[ES_INS] := !Set(_SET_INSERT)<br />            SetCursor( if(aEdit[ES_INS], SC_INSERT, SC_NORMAL) )<br />            return (K_INS)<br /><br />        case (nKey == K_ALT_S)<br />            /* search */<br />            return (K_CTRL_W)<br /><br />        case (nKey == K_ALT_A)<br />            /* search again */<br />            return (K_CTRL_W)<br /><br />        case (nKey == K_ALT_X)<br />            aEdit[ES_LASTKEY] := EK_QUIT<br />            return (K_CTRL_W)<br /><br />        case (nKey == EK_QUIT)<br />            return (K_CTRL_W)<br /><br />        case (nKey == EK_WRITE)<br />            return (K_CTRL_W)<br /><br />        otherwise<br />        end<br />    end<br /><br />return (0)<br /><br /><br /><br />****<br />*   EditWrite()<br />*<br /><br />func EditWrite()<br />local lRet<br /><br />    lRet := .t.<br />    if ( aEdit[ES_CHANGED] )<br />        Msg( \"</span>Writing <span style=\"color: #ff0000;\">\" + aEdit[ES_FILE] )<br /><br />        if ( MemoWrit(aEdit[ES_FILE], aEdit[ES_TEXT]) )<br />            Msg(\"</span>Write OK<span style=\"color: #ff0000;\">\")<br />            aEdit[ES_CHANGED] := .f.<br /><br />        else<br />            Msg(\"</span>Write error<span style=\"color: #ff0000;\">\")<br />            lRet := .f.<br /><br />        end<br />    else<br />        Msg(\"</span>File has not been modified -- not written.<span style=\"color: #ff0000;\">\")<br /><br />    end<br /><br />return (lRet)<br /><br /><br />****<br />*   Msg()<br />*<br /><br />func Msg(text)<br />static oldLength := 0<br /><br />    if (oldLength != 0)<br />        @ nMaxRow, 0 SAY Replicate(\"</span> <span style=\"color: #ff0000;\">\", oldLength)<br />    end<br /><br />    @ nMaxRow, 0 SAY text<br />    oldLength := Len(text)<br /><br />return (NIL)<br /><br /><br />****<br />*   StatMsg()<br />*<br /><br />func StatMsg()<br />local cLine, cCol, nCtype, nRow, nCol<br /><br />    cLine := PadR( LTrim(Str(aEdit[ES_ROW])), 6 )<br />    cCol := LTrim( Str(aEdit[ES_COL]) )<br /><br />    nCtype := SetCursor(0)<br />    nRow := Row()<br />    nCol := Col()<br />    @ nMaxRow, nStatCol SAY \"</span>Line: <span style=\"color: #ff0000;\">\" + cLine + \"</span>Col: <span style=\"color: #ff0000;\">\" + cCol + \"</span>  <span style=\"color: #ff0000;\">\"<br />    DevPos(nRow, nCol)<br />    SetCursor(nCtype)<br /><br />return (NIL)<br /><br /><br />****<br />*   PExit()<br />*<br /><br />func PExit()<br />local c, lRet, nCtype<br /><br />    lRet = .t.<br />    if ( aEdit[ES_CHANGED] )<br />        nCtype := SetCursor(SC_NORMAL)<br /><br />        Msg(\"</span>Abandon <span style=\"color: #ff0000;\">\" + aEdit[ES_FILE] + \"</span> <span style=\"color: #000000;\">&#91;</span>ynw<span style=\"color: #000000;\">&#93;</span>?<span style=\"color: #ff0000;\">\" )<br />        while ( !((c := Upper(Chr(InKey(0)))) $ (\"</span>YNW<span style=\"color: #ff0000;\">\" + Chr(K_ESC))) )<br />        end<br /><br />        if ( c == \"</span>W<span style=\"color: #ff0000;\">\" )<br />            lRet := EditWrite()<br /><br />        else<br /><br />            if ( c != \"</span>Y<span style=\"color: #ff0000;\">\" )<br />                lRet := .f.<br />            end<br /><br />            Msg(\"</span><span style=\"color: #ff0000;\">\")<br />        end<br /><br />        SetCursor(nCtype)<br /><br />    end<br /><br />return (lRet)<br /><br /><br />****<br />* DisplayHelp()<br />*<br /><br />func DisplayHelp()<br />local cScreen := SaveScreen(0, 0, MaxRow(), MaxCol()), nCtype<br /><br />    cls<br />    @ 0, 1 say \"</span>PE <span style=\"color: #0000ff;\">Help</span><span style=\"color: #ff0000;\">\"<br />    @ 1, 0 to nMaxRow - 1, nMaxCol<br />    @ 2, 2 say \"</span>Uparrow/Ctrl-E          Line <span style=\"color: #0000ff;\">up</span>           ³ Alt-H, F1    <span style=\"color: #00C800;\">Display</span> <span style=\"color: #0000ff;\">Help</span> screen <span style=\"color: #ff0000;\">\"<br />    @ 3, 2 say \"</span>Dnarrow/Ctrl-X          Line <span style=\"color: #0000ff;\">down</span>         ³ Ctrl-W       Save and exit       <span style=\"color: #ff0000;\">\"<br />    @ 4, 2 say \"</span>Leftarrow/Ctrl-S        Char <span style=\"color: #0000ff;\">left</span>         ³ Alt-W        Save and <span style=\"color: #00C800;\">continue</span>   <span style=\"color: #ff0000;\">\"<br />    @ 5, 2 say \"</span>Rightarrow/Ctrl-D       Char <span style=\"color: #0000ff;\">right</span>        ³ Alt-O        <span style=\"color: #00C800;\">New</span> Output filename <span style=\"color: #ff0000;\">\"<br />    @ 6, 2 say \"</span>Ctrl-Leftarrow/Ctrl-A   Word <span style=\"color: #0000ff;\">left</span>         ³ Alt-X, Esc   Exit                <span style=\"color: #ff0000;\">\"<br />    @ 7, 2 say \"</span>Ctrl-Rightarrow/Ctrl-F  Word <span style=\"color: #0000ff;\">right</span>        ³ Alt-F        <span style=\"color: #00C800;\">Display</span> Filename    <span style=\"color: #ff0000;\">\"<br />    @ 8, 2 say \"</span>Home                    Beginning <span style=\"color: #0000ff;\">of</span> line ³ Alt-S        Search              <span style=\"color: #ff0000;\">\"<br />    @ 9, 2 say \"</span>End                     End <span style=\"color: #0000ff;\">of</span> line       ³ Alt-A        Search Again        <span style=\"color: #ff0000;\">\"<br />    @ 10,2 say \"</span>Ctrl-Home               Top <span style=\"color: #0000ff;\">of</span> <span style=\"color: #0000ff;\">window</span>     ³ Alt-I, Ins   Toggle Insert mode  <span style=\"color: #ff0000;\">\"<br />    @ 11,2 say \"</span>Ctrl-End                End <span style=\"color: #0000ff;\">of</span> <span style=\"color: #0000ff;\">window</span>     ³ <span style=\"color: #ff0000;\">\"<br />    @ 12,2 say \"</span>PgUp                    Previous <span style=\"color: #0000ff;\">window</span>   ³ <span style=\"color: #ff0000;\">\"<br />    @ 13,2 say \"</span>PgDn                    <span style=\"color: #00C800;\">Next</span> <span style=\"color: #0000ff;\">window</span>       ³ <span style=\"color: #ff0000;\">\"<br />    @ 14,2 say \"</span>Ctrl-PgUp               Top <span style=\"color: #0000ff;\">of</span> file       ³ <span style=\"color: #ff0000;\">\"<br />    @ 15,2 say \"</span>Ctrl-PgDn               End <span style=\"color: #0000ff;\">of</span> file       ³ <span style=\"color: #ff0000;\">\"<br />    @ 16,2 say \"</span><span style=\"color: #00C800;\">Return</span>                  Begin <span style=\"color: #00C800;\">next</span> line   ³ <span style=\"color: #ff0000;\">\"<br />    @ 17,2 say \"</span>Delete                  Delete char       ³ <span style=\"color: #ff0000;\">\"<br />    @ 18,2 say \"</span>Backspace               Delete char <span style=\"color: #0000ff;\">left</span>  ³ <span style=\"color: #ff0000;\">\"<br />    @ 19,2 say \"</span>Tab                     Insert tab/spaces ³ <span style=\"color: #ff0000;\">\"<br />    @ 20,2 say \"</span>Ctrl-Y                  Delete line       ³ <span style=\"color: #ff0000;\">\"<br />    @ 21,2 say \"</span>Ctrl-T                  Delete word <span style=\"color: #0000ff;\">right</span> ³ <span style=\"color: #ff0000;\">\"<br />    @ 22,2 say \"</span>                                          ³ <span style=\"color: #ff0000;\">\"<br /><br />    @ nMaxRow, 1 say \"</span>Press any key <span style=\"color: #0000ff;\">to</span> <span style=\"color: #00C800;\">return</span> <span style=\"color: #0000ff;\">to</span> the <span style=\"color: #00C800;\">edit</span> screen...<span style=\"color: #ff0000;\">\"<br /><br />    nCtype := SetCursor(SC_NORMAL)<br />    Inkey(0)<br />    SetCursor(nCtype)<br /><br />    RestScreen(0, 0, nMaxRow, nMaxCol, cScreen)<br />  <br />return (NIL)<br />\u001a<br /></span></div>[/code:3n148wog]\n\nTengo construido para 32 bits el DBU de Clipper, por si alguien lo necesita", "time": "14:05", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "cnavarro" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Lo tengo: muy limitado. no me sirve para nada.\n\n[code=fw:2uikx3ic]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />C:\\clipper5\\BIN<br /><br /><span style=\"color: #000000;\">04</span>/<span style=\"color: #000000;\">03</span>/<span style=\"color: #000000;\">1993</span> &nbsp;<span style=\"color: #000000;\">05</span>:<span style=\"color: #000000;\">20</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">217.088</span> PE.EXE<br />&nbsp;</div>[/code:2uikx3ic]", "time": "14:21", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "karinha" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2014-12-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba esta función de FWH que te gustará <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nfunction SourceEdit( cSource, cTitle, nClrBack ) // @Source by reference", "time": "08:21", "topic": "Ayuda Al compilar pe.prg de samples de xharbour", "username": "Antonio Linares" } ]
Ayuda Al compilar pe.prg de samples de xharbour
[ { "date": "2007-12-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos:\n\nTengo un problema, por necesidad de un cliente, necesito poner los Say o Get de los Redefine, con colores:\n\n. REDEFINE Say oRut_emp1 Prompt Rut_emp1 ID 20 OF oDlg Font oFont1\n\n. Redefine Get oCod_usu1 Var Cod_usu1 Id 104 Of oDlg Update Picture \"@!\" .\n\nSaludos,\nAntonio", "time": "04:03", "topic": "Ayuda Amigos", "username": "mantonio_08" } ]
Ayuda Amigos
[ { "date": "2007-12-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\nAñádeles la claúsula COLOR ...\n\nREDEFINE Say oRut_emp1 Prompt Rut_emp1 ID 20 OF oDlg Font oFont1 COLOR \"W/B\"\n\n. Redefine Get oCod_usu1 Var Cod_usu1 Id 104 Of oDlg Update Picture \"@!\" COLOR \"R/BG\"\n\nPuedes usar colores RGB así:\n... COLOR nRGB( ..., ..., ... ), nRGB( ..., ..., ... )\n\nen donde esos 3 parámetros son los valores numéricos de rojo, verde y azul.", "time": "10:31", "topic": "Ayuda Amigos", "username": "Antonio Linares" } ]
Ayuda Amigos
[ { "date": "2007-12-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio:\n\nMuchas gracias por tu respuesta, lo probare.\n\nSaludos,\nAntonio", "time": "15:31", "topic": "Ayuda Amigos", "username": "mantonio_08" } ]
Ayuda Amigos
[ { "date": "2007-12-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio:\n\nSigo con el problema, extraño, pero asi es:\n\n REDEFINE Say oNom_emp1 Prompt DesDe ID 21 OF oDlg Font oFont1 Color \"R/BG\"\n Redefine Get oCod_usu1 Var Cod_usu1 Id 104 Of oDlg Update Picture \"@!\" Color \"R/BG\"\n\nEsto lo uso con un recurso desde RC, uso FWH 704, Xharbour 00.99.71, Workshop y Verce 5.3\n\nEspero dar con el error.\n\nDesde ya muchas gracias,\n\nSaludos,\nAntonio", "time": "15:45", "topic": "Ayuda Amigos", "username": "mantonio_08" } ]
Ayuda Amigos
[ { "date": "2007-12-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\nPor favor revisa y prueba samples\\combos.prg, verás que en él se hace:\n\n REDEFINE SAY oSay PROMPT cItem4 ID ID_SELECTION OF oDlg COLOR \"R+/W\"\n\ny funciona correctamente", "time": "20:41", "topic": "Ayuda Amigos", "username": "Antonio Linares" } ]
Ayuda Amigos
[ { "date": "2007-12-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio:\n\nMuchas gracias, lo probare.\n\nSaludos,\nAntonio", "time": "00:29", "topic": "Ayuda Amigos", "username": "mantonio_08" } ]
Ayuda Amigos
[ { "date": "2007-12-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos:\n\nNuevamente estoy molestando, pero el cambio a 32 bits me tiene loco, tengo lo siguiente:\n\n Dato: \"13.563.270-5\"\n\n Lista='0123456789K'\n\n aa=at('-',trim(Dato))\n dg=subs(Dato,aa+1,1) -- Rescato el ultimo digito es decir el \" 5 \"\n \n Debo buscarlo si se encuentra en la variable Dato\n\n Pruebo asi y me da 0, lo que indica no encontrado\n\n if at(\"(dg)\",lista)=0\n MsgStop(\" El Digito No Es Valido \")\n return (Ra:=.f.)\n endif\n Asi tampoco resulta, me da resultado 0\n\n if at(\"&dg\",lista)=0\n MsgStop(\" El Digito No Es Valido \")\n return (Ra:=.f.)\n endif\n\nNo entiendo nada,\n\nUso FWh 704, xHarbour 00.99.71\n\nEsperando salir del poncho,\n\nSaludos,\nAntonio", "time": "23:20", "topic": "Ayuda Amigos", "username": "mantonio_08" } ]
Ayuda Amigos
[ { "date": "2007-12-13", "forum": "FiveWin para Harbour/xHarbour", "text": "MAntonio:\n\nCreo que estas en una madeja <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \nSi el dato a buscar lo tienes en una variable, ¿ Por que\nlo pones entre comillas ?\n\nPruebalo así\n\nIF AT(dg,Lista) == 0\n...\n...\n...\n\nSaludos", "time": "03:27", "topic": "Ayuda Amigos", "username": "Armando" } ]
Ayuda Amigos
[ { "date": "2007-12-13", "forum": "FiveWin para Harbour/xHarbour", "text": "NO SE SI ES ERROR DE TRANSCRIPCION\n\npero si pones\n\nDATO:= \"13.563.270-5\"\n\n\nEN LUGAR DE:\n\nDato: \"13.563.270-5\"\n\nTE TRABAJA!!", "time": "15:35", "topic": "Ayuda Amigos", "username": "ADBLANCO" } ]
Ayuda Amigos
[ { "date": "2007-12-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigo:\n\nPrimero que nada, muchas gracias a ambos, por su respuesta.\n\nTienes razon, pero es solo un error de transcripcion, la situacion es que sigo con el problema.\n\nQuisas la pregunta mas facil sea:\n\nComo busco un caracter que viene en una variable, dentro de un strin.\n\nvar1:=\"9\" Varia a buscar\nVar2:=\"0123456789K\" Variable sobre la que se debe buscar la variable var1.\n\nEn 16 bits usaba ----> at(\"&var1\",var2), pero en 32 bist, ya no lo hace, existe otro comando para hacerlo.\n <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\n\nMe es urgente.\n\nSaludos,\nAntonio\n \n\n[quote=\"ADBLANCO\":pqsf09o2]NO SE SI ES ERROR DE TRANSCRIPCION\n\npero si pones\n\nDATO:= \"13.563.270-5\"\n\n\nEN LUGAR DE:\n\nDato: \"13.563.270-5\"\n\nTE TRABAJA!![/quote:pqsf09o2]", "time": "19:10", "topic": "Ayuda Amigos", "username": "mantonio_08" } ]
Ayuda Amigos
[ { "date": "2007-12-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola, yolo hago asi:\n...\ncFrase := \"5\"\ncTexto := \"QWEDSAZX34RF5TGB6YHN7UJM8IK9OL0P\"\nnPos := 0\n\nnPos := AT(cFrase, cTexto )\nIF nPos > 0\n MsgAlert(\" la letra - \" + cFrase + \"- esta en la posicion \" + STR(nPos) )\nEndIf\n\n\nSalu2", "time": "21:14", "topic": "Ayuda Amigos", "username": "Willi Quintana" } ]
Ayuda Amigos
[ { "date": "2007-12-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Willi:\n\nMil gracias amigo, funciono perfecto.\n\nSaludos,\nAntonio\n\n[quote=\"Willi Quintana\":2ciw8rr7]Hola, yolo hago asi:\n...\ncFrase := \"5\"\ncTexto := \"QWEDSAZX34RF5TGB6YHN7UJM8IK9OL0P\"\nnPos := 0\n\nnPos := AT(cFrase, cTexto )\nIF nPos > 0\n MsgAlert(\" la letra - \" + cFrase + \"- esta en la posicion \" + STR(nPos) )\nEndIf\n\n\nSalu2[/quote:2ciw8rr7]", "time": "22:11", "topic": "Ayuda Amigos", "username": "mantonio_08" } ]
Ayuda Amigos
[ { "date": "2007-12-14", "forum": "FiveWin para Harbour/xHarbour", "text": "No se pasa, pero pienso que debes revisar tu instalación ya que coloque lo que mandastes en la pregunta original (corrigiendo el error de transcripcion) y me trabajó perfecto.\n\n\nSaludos, Angel", "time": "03:43", "topic": "Ayuda Amigos", "username": "ADBLANCO" } ]
Ayuda Amigos
[ { "date": "2023-05-19", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2uvpwibe]Estimado Antonio,\n\nEstás intentando acceder a un elemento del array que no existe:\n\n [ 1] = A {\" \",\"BANM\",\"BONI\",\"CIGN\",\"CENR\",\"27 \",\"GACH\",\"PACH\",\"CHIL\",\"CISO\",\"COLM\",\"CONS\",\"FAB \",\"GS ... } length: 40\n [ 2] = N 45\n\nEl array debe tener al menos 45 elementos[/quote:2uvpwibe]\n\nBuen dia Maestro Antonio.\n\nMuchas gracias por responder.\n\nQue extraño, porque el array aTpagos que se en la funcion, se agregan 3 elementos.\n\nMe parece que no puedo actualizar los elementos del aTpagos en tiempo de ejecucion, desde el 1º Combobox, al volver, ya el array aTpagos de me rescata datos que no selecciono.\n\nEfectivamente, una vez que vuelvo desde el 1er Combobox, al seleccionar algun elemento de Combobox aTpagos 2do array creado, los elementos no coinciden con el seleccionado. <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nComprobe que es el array aTpagos, no se actuliza en el Combobox, aunque lo limpie en la funcion, vuelve igual muestra los datos anteriores en la lista <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nMuchas gracias\n\nSaludos\nAntonio\n\nCodigo\n[code=fw:2uvpwibe]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// Combobox</span><br />     @ <span style=\"color: #000000;\">018</span>,<span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Tipo Examen\"</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> oDlg4  <span style=\"color: #0000ff;\">RIGHT</span>  <span style=\"color: #0000ff;\">FONT</span> oFont2<br />     @ <span style=\"color: #000000;\">018</span>,<span style=\"color: #000000;\">237</span> <span style=\"color: #0000ff;\">ComboBox</span> oExam <span style=\"color: #0000ff;\">Var</span> nExam <span style=\"color: #0000ff;\">Items</span> ArrTranspose<span style=\"color: #000000;\">&#40;</span>aExamenes<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">90</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg4  COLORS RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">55</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">153</span><span style=\"color: #000000;\">&#41;</span>     <span style=\"color: #0000ff;\">FONT</span> oFont5 ;<br />                         <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>Tip_Exam1:=ArrTranspose<span style=\"color: #000000;\">&#40;</span>aExamenes<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span>oExam:<span style=\"color: #000000;\">nAt</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>!Filtra_Aran_Ate<span style=\"color: #000000;\">&#40;</span>Estado1,Tip_Exam1,Tip_Pag2,<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">xBrowse</span><span style=\"color: #000000;\">&#40;</span>aTpagos,<span style=\"color: #ff0000;\">\"VUELVE aTpagos\"</span><span style=\"color: #000000;\">&#41;</span>,.t.<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TODO BIEN\"</span><span style=\"color: #000000;\">&#41;</span>,oBrw2:<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>, <span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oTpag2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oBrw2:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .T.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />     @ <span style=\"color: #000000;\">030</span>,<span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Tipo Pago\"</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> oDlg4  <span style=\"color: #0000ff;\">RIGHT</span>  <span style=\"color: #0000ff;\">FONT</span> oFont2<br />     @ <span style=\"color: #000000;\">030</span>,<span style=\"color: #000000;\">237</span> <span style=\"color: #0000ff;\">ComboBox</span> oTpag2 <span style=\"color: #0000ff;\">Var</span> nTPag2 <span style=\"color: #0000ff;\">Items</span> ArrTranspose<span style=\"color: #000000;\">&#40;</span>aTpagos<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">90</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg4  COLORS RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">55</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">153</span><span style=\"color: #000000;\">&#41;</span>     <span style=\"color: #0000ff;\">FONT</span> oFont5 ;<br />                         <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>Tip_Pag2:=ArrTranspose<span style=\"color: #000000;\">&#40;</span>aTpagos<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span>oTpag2:<span style=\"color: #000000;\">nAt</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>!Filtra_Aran_Ate<span style=\"color: #000000;\">&#40;</span>Estado1,Tip_Exam1,Tip_Pag2,.f.<span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TODO BIEN\"</span><span style=\"color: #000000;\">&#41;</span>,oBrw2:<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>, <span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oBrw2:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .T.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><br /><br /><span style=\"color: #B900B9;\">// Carga de Array aTpagos</span><br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> Filtra_Aran_Ate<span style=\"color: #000000;\">&#40;</span>cEsta,cAte,cPag,desde<span style=\"color: #000000;\">&#41;</span><br />        ?<span style=\"color: #ff0000;\">\" LLEGA \"</span>+<span style=\"color: #ff0000;\">\"cAte \"</span>+cAte+<span style=\"color: #ff0000;\">\"  cPag \"</span>+cPag+ <span style=\"color: #ff0000;\">\" Estado \"</span>+cEsta<br /><br />        <span style=\"color: #00C800;\">If</span> desde        <span style=\"color: #B900B9;\">// Si es .T. viene de Tipo atencion y debe llenar o actualizar Combobox aTpagos</span><br />                Sele Tpag<br />                DbSetOrder<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br /><br />                Sele Aran<br />                Rec:=OrdNumber<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                Regi:=Recno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                DbSetOrder<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#41;</span><br />                aTpagos2:=aTpagos<br /><br />                aTpagos:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />                AADD<span style=\"color: #000000;\">&#40;</span> aTpagos,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"   \"</span>,<span style=\"color: #ff0000;\">\"         \"</span>,<span style=\"color: #ff0000;\">\" \"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br /><br />                Seek cAte<br /><br />                <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">While</span> <span style=\"color: #000000;\">&#40;</span>Tip_Ate=cAte<span style=\"color: #000000;\">&#41;</span>.and.!Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                     <span style=\"color: #00C800;\">If</span> !Empty<span style=\"color: #000000;\">&#40;</span>Aran->Tip_Ate<span style=\"color: #000000;\">&#41;</span><br />                             Sele TPag<br />                             Seek Aran->Tip_Pag<br />                             <span style=\"color: #00C800;\">If</span> !Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                                    Aadd<span style=\"color: #000000;\">&#40;</span>aTpagos, <span style=\"color: #000000;\">&#123;</span> Aran->Tip_Pag,Tpag->Nom_Pag,Tpag->Est_Pag<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />                             <span style=\"color: #00C800;\">Endif</span><br /><br />                             Sele Aran<br />                             cPag2:=Tip_Pag<br />                             <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">While</span> <span style=\"color: #000000;\">&#40;</span>Tip_Ate=cAte.and.Tip_Pag=cPag2<span style=\"color: #000000;\">&#41;</span>.and.!Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                                    Skip<br />                             <span style=\"color: #00C800;\">Enddo</span><br />                     <span style=\"color: #00C800;\">Else</span><br />                            Skip<br />                     <span style=\"color: #00C800;\">Endif</span><br />                <span style=\"color: #00C800;\">Enddo</span><br />                ?Len<span style=\"color: #000000;\">&#40;</span>aTpagos<span style=\"color: #000000;\">&#41;</span>,Len<span style=\"color: #000000;\">&#40;</span>aTpagos2<span style=\"color: #000000;\">&#41;</span><br />                <span style=\"color: #00C800;\">If</span> Len<span style=\"color: #000000;\">&#40;</span>aTpagos<span style=\"color: #000000;\">&#41;</span><=<span style=\"color: #000000;\">1</span><br />                     aTpagos:=aTpagos2<br />                <span style=\"color: #00C800;\">Endif</span><br />                ASort<span style=\"color: #000000;\">&#40;</span>aTpagos,,,<span style=\"color: #000000;\">&#123;</span>|x,y| 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><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #B900B9;\">//Ordena ascendente por descripcion</span><br />                DbSetOrder<span style=\"color: #000000;\">&#40;</span>Rec<span style=\"color: #000000;\">&#41;</span>      <span style=\"color: #B900B9;\">// Recupero Orden que ingreso</span><br />                Go Regi<br />        <span style=\"color: #00C800;\">Endif</span><br /><br /> </div>[/code:2uvpwibe]", "time": "17:18", "topic": "Ayuda Array - Combobox", "username": "remtec" } ]
Ayuda Array - Combobox
[ { "date": "2023-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos\n\nNcesito lo siguiente, tengo 2 Combobox con Array, pero necesito generar el segundo al seleccionar un Items del 1er. Combox.\n\nEmite un error.\n\nMuchos Saludos\nAntonio\n\nCodigo:\n[code=fw:2glqms4k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// 1er Combobox, que debe llenar el Combobox Tipo Pago</span><br />&nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">018</span>,<span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Tipo Examen\"</span> &nbsp; <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> oDlg4 &nbsp;<span style=\"color: #0000ff;\">RIGHT</span> &nbsp;<span style=\"color: #0000ff;\">FONT</span> oFont2<br />&nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">018</span>,<span style=\"color: #000000;\">237</span> <span style=\"color: #0000ff;\">ComboBox</span> oExam <span style=\"color: #0000ff;\">Var</span> nExam <span style=\"color: #0000ff;\">Items</span> ArrTranspose<span style=\"color: #000000;\">&#40;</span>aExamenes<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">90</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg4 &nbsp;COLORS RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">55</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">153</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFont5 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>Tip_Exam1:=ArrTranspose<span style=\"color: #000000;\">&#40;</span>aExamenes<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span>oExam:<span style=\"color: #000000;\">nAt</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>!Filtra_Aran_Ate<span style=\"color: #000000;\">&#40;</span>Estado1,Tip_Exam1,Tip_Pag1,.t.<span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TODO BIEN\"</span><span style=\"color: #000000;\">&#41;</span>,oBrw2:<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>, <span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oTpag:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oBrw2:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .T.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">030</span>,<span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Tipo Pago\"</span> &nbsp; <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> oDlg4 &nbsp;<span style=\"color: #0000ff;\">RIGHT</span> &nbsp;<span style=\"color: #0000ff;\">FONT</span> oFont2<br />&nbsp; &nbsp; &nbsp;@ <span style=\"color: #000000;\">030</span>,<span style=\"color: #000000;\">237</span> <span style=\"color: #0000ff;\">ComboBox</span> oTpag <span style=\"color: #0000ff;\">Var</span> nTPag <span style=\"color: #0000ff;\">Items</span> ArrTranspose<span style=\"color: #000000;\">&#40;</span>aTpagos<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">90</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg4 &nbsp;COLORS RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">55</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">153</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFont5 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>Tip_Pag1:=ArrTranspose<span style=\"color: #000000;\">&#40;</span>aTpagos<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span>oTpag:<span style=\"color: #000000;\">nAt</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>!Filtra_Aran_Ate<span style=\"color: #000000;\">&#40;</span>Estado1,Tip_Exam1,Tip_Pag1,.f.<span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TODO BIEN\"</span><span style=\"color: #000000;\">&#41;</span>,oBrw2:<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>, <span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oBrw2:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .T.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />.....<br /><br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> Filtra_Aran_Ate<span style=\"color: #000000;\">&#40;</span>cEsta,cAte,cPag,desde<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> desde &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Si es .T. viene de Tipo atencion y debe Actulizar el Array aTpagos</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sele Aran<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rec:=OrdNumber<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Regi:=Recno<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbSetOrder<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aTpagos2:=aTpagos<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aTpagos:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style=\"color: #000000;\">&#40;</span> aTpagos,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" &nbsp; \"</span>,<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp; &nbsp; \"</span>,<span style=\"color: #ff0000;\">\" \"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Seek cAte<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">While</span> <span style=\"color: #000000;\">&#40;</span>Tip_Ate=cAte<span style=\"color: #000000;\">&#41;</span>.and.!Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> !Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sele TPag<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Seek Aran->Tip_Pag<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> !Eof<span style=\"color: #000000;\">&#40;</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; &nbsp; Aadd<span style=\"color: #000000;\">&#40;</span>aTpagos, <span style=\"color: #000000;\">&#123;</span> Aran->Tip_Pag,Tpag->Nom_Pag,Tpag->Est_Pag<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sele Aran<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cPag2:=Tip_Pag<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">While</span> <span style=\"color: #000000;\">&#40;</span>Tip_Ate=cAte.and.Tip_Pag=cPag2<span style=\"color: #000000;\">&#41;</span>.and.!Eof<span style=\"color: #000000;\">&#40;</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; Skip<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Enddo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Skip<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Enddo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span>aTpagos<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> Len<span style=\"color: #000000;\">&#40;</span>aTpagos<span style=\"color: #000000;\">&#41;</span>=<span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aTpagos:=aTpagos2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; ASort<span style=\"color: #000000;\">&#40;</span>aTpagos,,,<span style=\"color: #000000;\">&#123;</span>|x,y| 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><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">//Ordena ascendente por descripcion</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbSetOrder<span style=\"color: #000000;\">&#40;</span>Rec<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Recupero Orden que ingreso</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Go Regi<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br /><br /><br />&nbsp;</div>[/code:2glqms4k]\n\nError:\n[code=fw:2glqms4k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />pplication<br />===========<br />&nbsp; &nbsp;Path and <span style=\"color: #0000ff;\">name</span>: <span style=\"color: #000000;\">C</span>:\\Desa\\Sistem <span style=\"color: #000000;\">2023</span>\\Maestros\\MaeWin.exe <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">32</span> bits<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">Size</span>: <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">556</span>,<span style=\"color: #000000;\">736</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style=\"color: #000000;\">Harbour</span> <span style=\"color: #000000;\">3.2</span>.0dev <span style=\"color: #000000;\">&#40;</span>r2008190002<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;version: <span style=\"color: #000000;\">FWH</span> <span style=\"color: #000000;\">22.10</span><br />&nbsp; &nbsp;C compiler version: <span style=\"color: #000000;\">Borland</span>/Embarcadero C++ <span style=\"color: #000000;\">7.0</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">32</span>-bit<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Windows XP <span style=\"color: #000000;\">32</span> Bits, version: <span style=\"color: #000000;\">5.1</span>, Build <span style=\"color: #000000;\">2600</span> Service Pack <span style=\"color: #000000;\">3</span><br /><br />&nbsp; &nbsp;Time <span style=\"color: #0000ff;\">from</span> start: <span style=\"color: #000000;\">0</span> hours <span style=\"color: #000000;\">0</span> mins <span style=\"color: #000000;\">37</span> secs <br />&nbsp; &nbsp;Error occurred <span style=\"color: #00C800;\">at</span>: <span style=\"color: #000000;\">18</span>/<span style=\"color: #000000;\">05</span>/<span style=\"color: #000000;\">2023</span>, <span style=\"color: #000000;\">13</span>:<span style=\"color: #000000;\">50</span>:<span style=\"color: #000000;\">52</span><br />&nbsp; &nbsp;Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1132</span> &nbsp;Error de rango: <span style=\"color: #000000;\">acceso</span> al array<br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#91;</span> &nbsp; <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> = A &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\" &nbsp; \"</span>,<span style=\"color: #ff0000;\">\"BANM\"</span>,<span style=\"color: #ff0000;\">\"BONI\"</span>,<span style=\"color: #ff0000;\">\"CIGN\"</span>,<span style=\"color: #ff0000;\">\"CENR\"</span>,<span style=\"color: #ff0000;\">\"27 &nbsp;\"</span>,<span style=\"color: #ff0000;\">\"GACH\"</span>,<span style=\"color: #ff0000;\">\"PACH\"</span>,<span style=\"color: #ff0000;\">\"CHIL\"</span>,<span style=\"color: #ff0000;\">\"CISO\"</span>,<span style=\"color: #ff0000;\">\"COLM\"</span>,<span style=\"color: #ff0000;\">\"CONS\"</span>,<span style=\"color: #ff0000;\">\"FAB \"</span>,<span style=\"color: #ff0000;\">\"GS ... } length: 40<br />&nbsp; &nbsp; &nbsp;[ &nbsp; 2] = N &nbsp; 45<br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\A</span>ctu_Aran.PRG => (b)ACTU_MAE_ARAN( 152 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\C</span>OMBOBOX.PRG => TCOMBOBOX:CHANGE( 581 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\C</span>ONTROL.PRG => TCONTROL:HANDLEEVENT( 1826 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\C</span>OMBOBOX.PRG => TCOMBOBOX:HANDLEEVENT( 923 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\W</span>INDOW.PRG => _FWH( 3689 )<br />&nbsp; &nbsp;Called from: &nbsp;=> SENDMESSAGE( 0 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\D</span>IALOG.PRG => TDIALOG:COMMAND( 520 )<br />&nbsp; &nbsp;Called from: &nbsp;=> TWINDOW:HANDLEEVENT( 0 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\D</span>IALOG.PRG => TDIALOG:HANDLEEVENT( 1213 )<br />&nbsp; &nbsp;Called from: &nbsp;=> DIALOGBOXINDIRECT( 0 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\D</span>IALOG.PRG => TDIALOG:ACTIVATE( 307 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\A</span>ctu_Aran.PRG => ACTU_MAE_ARAN( 235 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\M</span>aeWin.PRG => (b)MENU( 173 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\M</span>ENU.PRG => TMENU:COMMAND( 1557 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\W</span>INDOW.PRG => TWINDOW:COMMAND( 1158 )<br />&nbsp; &nbsp;Called from: &nbsp;=> TWINDOW:HANDLEEVENT( 0 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\W</span>INDOW.PRG => _FWH( 3689 )<br />&nbsp; &nbsp;Called from: &nbsp;=> WINRUN( 0 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\s</span>ource<span style=\"color: #000000;\">\\c</span>lasses<span style=\"color: #000000;\">\\W</span>INDOW.PRG => TWINDOW:ACTIVATE( 1114 )<br />&nbsp; &nbsp;Called from: .<span style=\"color: #000000;\">\\M</span>aeWin.PRG => MAIN( 130 )<br /><br />System<br />======<br />&nbsp; &nbsp;CPU type: Intel(R) Core(TM)2 Duo CPU &nbsp; &nbsp; E7400 &nbsp;@ 2.80GHz 2793 Mhz<br />&nbsp; &nbsp;Hardware memory: 3020 megs<br /><br />&nbsp; &nbsp;Free System resources: 90 %<br />&nbsp; &nbsp; &nbsp; &nbsp; GDI &nbsp; &nbsp;resources: 90 %<br />&nbsp; &nbsp; &nbsp; &nbsp; User &nbsp; resources: 90 %<br /><br />&nbsp; &nbsp;Windows total applications running: 10<br />&nbsp; &nbsp; &nbsp; 1 , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; 2 , C:<span style=\"color: #000000;\">\\D</span>esa<span style=\"color: #000000;\">\\S</span>istem 2023<span style=\"color: #000000;\">\\M</span>aestros<span style=\"color: #000000;\">\\M</span>aeWin.exe &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; 3 , C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\W</span>inSxS<span style=\"color: #000000;\">\\x</span>86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202<br />&nbsp; &nbsp; &nbsp; 4 , C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\s</span>ystem32<span style=\"color: #000000;\">\\C</span>OMCTL32.DLL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; 5 , C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\s</span>ystem32<span style=\"color: #000000;\">\\S</span>HLWAPI.dll &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; 6 DDE Server Window, C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\s</span>ystem32<span style=\"color: #000000;\">\\O</span>LE32.DLL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; 7 GDI+ Window, C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\W</span>inSxS<span style=\"color: #000000;\">\\x</span>86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.6002.23084_x-ww_f3f35550<span style=\"color: #000000;\">\\G</span>DIPLU<br />&nbsp; &nbsp; &nbsp; 8 M, C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\s</span>ystem32<span style=\"color: #000000;\">\\m</span>sctfime.ime &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; 9 MCI command handling window, C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\s</span>ystem32<span style=\"color: #000000;\">\\W</span>INMM.DLL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;10 SysFader, C:<span style=\"color: #000000;\">\\W</span>INDOWS<span style=\"color: #000000;\">\\s</span>ystem32<span style=\"color: #000000;\">\\S</span>HELL32.dll &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><br />Variables in use<br />================<br />&nbsp; &nbsp;Procedure &nbsp; &nbsp; Type &nbsp; Value<br />&nbsp; &nbsp;==========================<br />&nbsp; &nbsp;(b)ACTU_MAE_ARAN<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;O &nbsp; &nbsp;Class: ERROR<br />&nbsp; &nbsp;TCOMBOBOX:CHANGE<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TCOMBOBOX<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;C &nbsp; &nbsp;\"</span>PARTICULAR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;45<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 2: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 3: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 4: &nbsp; &nbsp;S &nbsp; &nbsp;<br />&nbsp; &nbsp;TCONTROL:HANDLEEVENT<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;C &nbsp; &nbsp;\"</span>PARTICULAR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;45<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 3: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp;TCOMBOBOX:HANDLEEVENT<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;2053<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp;_FWH<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;2053<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp;SENDMESSAGE<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;2053<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 4: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 5: &nbsp; &nbsp;N &nbsp; &nbsp;11<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TCOMBOBOX<br />&nbsp; &nbsp;TDIALOG:COMMAND<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;6554490<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;2053<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 4: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp;TWINDOW:HANDLEEVENT<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;65652<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;6554490<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;1<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;116<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 4: &nbsp; &nbsp;N &nbsp; &nbsp;6554490<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 5: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp;TDIALOG:HANDLEEVENT<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;273<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;65652<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;6554490<br />&nbsp; &nbsp;DIALOGBOXINDIRECT<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;273<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;65652<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;6554490<br />&nbsp; &nbsp;TDIALOG:ACTIVATE<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;4194304<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;C &nbsp; &nbsp;\"</span> &nbsp;@ &nbsp; &nbsp;\u000f \u0002 \u0002 u\u0001\u001e\u0001 &nbsp; &nbsp; &nbsp; &nbsp; P &nbsp; &nbsp;Z &nbsp; ô \u0018 p S T A T I C &nbsp; &nbsp; M A E S T R O &nbsp; D E &nbsp; A R A N C E L &nbsp; &nbsp; &nbsp; \u0002 &nbsp;P &nbsp; &nbsp;– \u0012 P <br />&nbsp;q S T A T I C &nbsp; T i p o &nbsp; E x a m e n &nbsp; &nbsp; &nbsp; \u0003\u0010¡P &nbsp; &nbsp;í \u0012 Z È r C O M B O B O X &nbsp; &nbsp; &nbsp; \u0002 &nbsp;P &nbsp; &nbsp;– \u001e P <br />&nbsp;s S T A T I C &nbsp; T i p o &nbsp; P a g o &nbsp; &nbsp; &nbsp; \u0003\u0010¡P &nbsp; &nbsp;í \u001e Z È t C O M B O B O X &nbsp; &nbsp; &nbsp; \u0002 &nbsp;P &nbsp; &nbsp;<span style=\"color: #000000;\">&#40;</span> \u0012 < <br />&nbsp;u S T A T I C &nbsp; E s t a d o &nbsp; &nbsp; \u0003\u0010¡P &nbsp; &nbsp;n \u0012 F È v C O M B O B O X &nbsp; &nbsp; &nbsp; &nbsp; 1P &nbsp; &nbsp;< - ¯\u0002\u000f\u0002w T X B R O W S E &nbsp; a r a n p a g o &nbsp; &nbsp; &nbsp; \u0001P &nbsp; &nbsp;\f < \u001e \u0019 x T B T N B M P &nbsp; N U E V O &nbsp; &nbsp; &nbsp; \u0001P &nbsp; &nbsp;\f d &nbsp; \u0019 y T B T N B M P &nbsp; M O D I F I &nbsp; &nbsp; &nbsp; &nbsp; \u0001P &nbsp; &nbsp;\f Œ &nbsp; \u0019 z T B T N B M P &nbsp; B O R R A &nbsp; &nbsp; &nbsp; \u0001P &nbsp; &nbsp;\f ´ &nbsp; \u0019 <span style=\"color: #000000;\">&#123;</span> T B T N B M P &nbsp; M U E S T R A &nbsp; &nbsp; &nbsp; \u0001P &nbsp; &nbsp;\f Ü &nbsp; \u0019 | T B T N B M P &nbsp; I M P R I M E &nbsp; &nbsp; &nbsp; \u0001P &nbsp; &nbsp;d \u0004\u0001n <br />&nbsp;<span style=\"color: #000000;\">&#125;</span> T B T N B M P &nbsp; D o b l e &nbsp; C l i c k , &nbsp; M o d i f i c a r &nbsp; E s t a d o &nbsp; &nbsp; &nbsp; \u0001P &nbsp; &nbsp;ú ý \u001e \u001e ~ T B T N B M P &nbsp; V O L V E R &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;4260622<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 4: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TDIALOG<br />&nbsp; &nbsp;ACTU_MAE_ARAN<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 4: &nbsp; &nbsp;L &nbsp; &nbsp;.T.<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 5: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 6: &nbsp; &nbsp;L &nbsp; &nbsp;.T.<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 7: &nbsp; &nbsp;B &nbsp; &nbsp;{|| ... }<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 8: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 9: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;10: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;11: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;12: &nbsp; &nbsp;L &nbsp; &nbsp;.F.<br />&nbsp; &nbsp; &nbsp;Param &nbsp;13: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TDIALOG<br />&nbsp; &nbsp; &nbsp;Param &nbsp;14: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;4260622<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 2: &nbsp; &nbsp;S &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 3: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TDIALOG<br />&nbsp; &nbsp;(b)MENU<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TDIALOG<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 2: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TXBROWSE<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 3: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TFONT<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 4: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TFONT<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 5: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TSAY<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 6: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TFONT<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 7: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TFONT<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 8: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TBTNBMP<br />&nbsp; &nbsp;TMENU:COMMAND<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TMENUITEM<br />&nbsp; &nbsp;TWINDOW:COMMAND<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;20013<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TMENUITEM<br />&nbsp; &nbsp;TWINDOW:HANDLEEVENT<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;20013<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;20013<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 4: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp;_FWH<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;273<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;20013<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp;WINRUN<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;N &nbsp; &nbsp;273<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;N &nbsp; &nbsp;20013<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 4: &nbsp; &nbsp;N &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 5: &nbsp; &nbsp;N &nbsp; &nbsp;1<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TWINDOW<br />&nbsp; &nbsp;TWINDOW:ACTIVATE<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;N &nbsp; &nbsp;4260622<br />&nbsp; &nbsp;MAIN<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 1: &nbsp; &nbsp;C &nbsp; &nbsp;\"</span><span style=\"color: #0000ff;\">MAXIMIZED</span><span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 2: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 3: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 4: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 5: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 6: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 7: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 8: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; 9: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;10: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;11: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;12: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;13: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;14: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;15: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;16: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;17: &nbsp; &nbsp;B &nbsp; &nbsp;{|| ... }<br />&nbsp; &nbsp; &nbsp;Param &nbsp;18: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;19: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;20: &nbsp; &nbsp;L &nbsp; &nbsp;.F.<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 1: &nbsp; &nbsp;O &nbsp; &nbsp;Class: TWINDOW<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 2: &nbsp; &nbsp;U &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Local &nbsp; 3: &nbsp; &nbsp;U &nbsp; &nbsp;<br /><br />Linked RDDs<br />===========<br />&nbsp; &nbsp;DBF<br />&nbsp; &nbsp;DBFFPT<br />&nbsp; &nbsp;DBFBLOB<br />&nbsp; &nbsp;DBFCDX<br />&nbsp; &nbsp;DBFNTX<br /><br />DataBases in use<br />================<br /><br />&nbsp; 1: &nbsp; &nbsp;TATEN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RddName: DBFCDX<br />&nbsp; &nbsp; &nbsp;==============================<br />&nbsp; &nbsp; &nbsp;RecNo &nbsp; &nbsp;RecCount &nbsp; &nbsp;BOF &nbsp; EOF<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;44 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 43 &nbsp; &nbsp; &nbsp;.F. &nbsp; .T.<br /><br />&nbsp; &nbsp; &nbsp;Indexes in use &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TagName<br />&nbsp; &nbsp; &nbsp; &nbsp; => Cod_Aten &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TAT1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Nom_Aten &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TAT2<br /><br />&nbsp; &nbsp; &nbsp;Relations in use<br /><br />&nbsp; 2: &nbsp; &nbsp;TPAG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RddName: DBFCDX<br />&nbsp; &nbsp; &nbsp;==============================<br />&nbsp; &nbsp; &nbsp;RecNo &nbsp; &nbsp;RecCount &nbsp; &nbsp;BOF &nbsp; EOF<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;43 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;109 &nbsp; &nbsp; &nbsp;.F. &nbsp; .F.<br /><br />&nbsp; &nbsp; &nbsp;Indexes in use &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TagName<br />&nbsp; &nbsp; &nbsp; &nbsp; => Tip_Pag &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TPA1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Nom_Pag &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TPA2<br /><br />&nbsp; &nbsp; &nbsp;Relations in use<br /><br />&nbsp; 3: => ARAN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RddName: DBFCDX<br />&nbsp; &nbsp; &nbsp;==============================<br />&nbsp; &nbsp; &nbsp;RecNo &nbsp; &nbsp;RecCount &nbsp; &nbsp;BOF &nbsp; EOF<br />&nbsp; &nbsp; &nbsp; 15145 &nbsp; &nbsp; &nbsp; &nbsp;15144 &nbsp; &nbsp; &nbsp;.T. &nbsp; .T.<br /><br />&nbsp; &nbsp; &nbsp;Indexes in use &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TagName<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cod_ara &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ARA1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tip_pag+cod_ara &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ARA2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tip_pag+tip_ate+cod_ara &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ARA3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tip_ate+cod_ara &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ARA4<br />&nbsp; &nbsp; &nbsp; &nbsp; => tip_ate+tip_pag+nom_ara &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ARA5<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tip_ate+tip_pag+nom_ara &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ARA6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tip_ate+tip_pag+nom_ara &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ARA7<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tip_pag+tip_ate+nom_ara &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ARA8<br /><br />&nbsp; &nbsp; &nbsp;Relations in use<br /><br />Classes in use:<br />===============<br />&nbsp; &nbsp; &nbsp;1 ERROR<br />&nbsp; &nbsp; &nbsp;2 HBCLASS<br />&nbsp; &nbsp; &nbsp;3 HBOBJECT<br />&nbsp; &nbsp; &nbsp;4 TCURSOR<br />&nbsp; &nbsp; &nbsp;5 TFONT<br />&nbsp; &nbsp; &nbsp;6 TWINDOW<br />&nbsp; &nbsp; &nbsp;7 TDIALOG<br />&nbsp; &nbsp; &nbsp;8 TBRUSH<br />&nbsp; &nbsp; &nbsp;9 TMDIFRAME<br />&nbsp; &nbsp; 10 TMENU<br />&nbsp; &nbsp; 11 TREG32<br />&nbsp; &nbsp; 12 TMDICLIENT<br />&nbsp; &nbsp; 13 TRECT<br />&nbsp; &nbsp; 14 TCONTROL<br />&nbsp; &nbsp; 15 TGET<br />&nbsp; &nbsp; 16 TSAY<br />&nbsp; &nbsp; 17 GET<br />&nbsp; &nbsp; 18 TCLIPGET<br />&nbsp; &nbsp; 19 TBTNBMP<br />&nbsp; &nbsp; 20 TMENUITEM<br />&nbsp; &nbsp; 21 TBAR<br />&nbsp; &nbsp; 22 TMSGBAR<br />&nbsp; &nbsp; 23 TMSGITEM<br />&nbsp; &nbsp; 24 TTIMER<br />&nbsp; &nbsp; 25 TCOMBOBOX<br />&nbsp; &nbsp; 26 TXBROWSE<br />&nbsp; &nbsp; 27 TXBRWCOLUMN<br />&nbsp; &nbsp; 28 TSCROLLBAR<br />&nbsp; &nbsp; 29 TCLIPBOARD<br />&nbsp; &nbsp; 30 TSTRUCT<br /><br />Memory Analysis<br />===============<br />&nbsp; &nbsp; &nbsp; 747 Static variables<br /><br />&nbsp; &nbsp;Dynamic memory consume:<br />&nbsp; &nbsp; &nbsp; Actual &nbsp;Value: &nbsp; &nbsp;2359296 bytes<br />&nbsp; &nbsp; &nbsp; Highest Value: &nbsp; &nbsp;2359296 bytes<br /></span></div>[/code:2glqms4k]", "time": "18:52", "topic": "Ayuda Array - Combobox", "username": "remtec" } ]
Ayuda Array - Combobox
[ { "date": "2023-05-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimado Antonio,\n\nEstás intentando acceder a un elemento del array que no existe:\n\n [ 1] = A {\" \",\"BANM\",\"BONI\",\"CIGN\",\"CENR\",\"27 \",\"GACH\",\"PACH\",\"CHIL\",\"CISO\",\"COLM\",\"CONS\",\"FAB \",\"GS ... } length: 40\n [ 2] = N 45\n\nEl array debe tener al menos 45 elementos", "time": "07:44", "topic": "Ayuda Array - Combobox", "username": "Antonio Linares" } ]
Ayuda Array - Combobox
[ { "date": "2023-05-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos\n\nAlguna idea?\n\nSaludos\nAntonio", "time": "18:23", "topic": "Ayuda Array - Combobox", "username": "remtec" } ]
Ayuda Array - Combobox
[ { "date": "2023-05-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Publique un ejemplo completo para probar en Mega Upload, por favor. Es más fácil de probar. Piezas de programas son inútiles y es difícil ayudar.\n\nGracias.\n\nRegards, saludos.", "time": "16:53", "topic": "Ayuda Array - Combobox", "username": "karinha" } ]
Ayuda Array - Combobox
[ { "date": "2023-05-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Según lo que puede ver en el trozo de código que publicaste, parece que lo que te hace falta es hacer el cambio del nuevo array en el combobox.\n\nDespués de cambiar el array asígnalo a combobox y refréscalo \n[code=fw:16ah7d63]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oTpag2:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span> aTpagos2, .t. <span style=\"color: #000000;\">&#41;</span><br />oTpag2:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:16ah7d63]\nEspero te sea de ayuda.", "time": "17:37", "topic": "Ayuda Array - Combobox", "username": "leandro" } ]
Ayuda Array - Combobox
[ { "date": "2012-08-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola buenas tardes a todos los programadores, esperando que se encuentren bien, les envio cordial saludos.\n\nYa me estoy iniciando con la maravillosa clase TXBrowse y estoy haciendo ejemplos y veo que me va de maravilla aunque dificil de entenderle a la clase y ejemplos, que me muestra los encabezados y datos, ahora bien, hay alguna otra forma mas facil, de crear Headers,datos, etc etc , en forma de arreglos, en lugar de estar creando columna por columna con esa instruccion :\n oCol:oBrw:AddCol()\n\n\n\n[code=fw:1mks7xh2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">&#91;</span>code<span style=\"color: #000000;\">&#93;</span><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 /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWnd, oCol<br /><br />USE CUENTAS<br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> CUENTAS TAG CUENTAS<br />SET <span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">TO</span> CUENTAS<br /><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />   oBrw := 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> oWnd <span style=\"color: #000000;\">&#41;</span><br />   oBrw:<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_BLACK<br />   oBrw:<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_BLACK<br />   oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span>    := MARQSTYLE_HIGHLCELL<br /><br />   oCol:=oBrw:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>                         <span style=\"color: #000000;\">&#91;</span>b<span style=\"color: #000000;\">&#93;</span>Desde aqui a pasar como arreglo <span style=\"color: #000000;\">&#91;</span>/b<span style=\"color: #000000;\">&#93;</span><br />   oCol:<span style=\"color: #000000;\">cHeader</span>  := <span style=\"color: #ff0000;\">'Cuentas'</span><br />   oCol:<span style=\"color: #000000;\">bStrData</span> := <span style=\"color: #000000;\">&#123;</span> || Prueba<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>S08<span style=\"color: #000000;\">&#41;</span>->CUENTAS <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   oCol:=oBrw:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oCol:<span style=\"color: #000000;\">cHeader</span>  := <span style=\"color: #ff0000;\">'Nivel'</span><br />   oCol:<span style=\"color: #000000;\">bStrData</span> := <span style=\"color: #000000;\">&#123;</span> || STR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>S08<span style=\"color: #000000;\">&#41;</span>->NIVSUM <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br /><br />   oCol:=oBrw:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oCol:<span style=\"color: #000000;\">cHeader</span>  := <span style=\"color: #ff0000;\">'Descripción'</span><br />   oCol:<span style=\"color: #000000;\">bStrData</span> := <span style=\"color: #000000;\">&#123;</span> || Prueba2<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>S08<span style=\"color: #000000;\">&#41;</span>->CUENTAS <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   oCol:<span style=\"color: #000000;\">bClrHeader</span>:= Colorea<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oWnd:<span style=\"color: #000000;\">oClient</span>:=oBrw<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oWnd<span style=\"color: #000000;\">&#91;</span>/code<span style=\"color: #000000;\">&#93;</span></div>[/code:1mks7xh2]\n\n\n\nAsi de esta forma que quiero hacer como arreglos, pero me marca error, o desde donde puedo llamar esa instruccion como arrayas de datos.\n\n[code=fw:1mks7xh2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">&#91;</span>code<span style=\"color: #000000;\">&#93;</span><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br />   oBrw := 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> oWnd <span style=\"color: #000000;\">&#41;</span><br />   oBrw:<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_BLACK<br />   oBrw:<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_BLACK<br />   oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span>    := MARQSTYLE_HIGHLCELL<br /><br />   oBrw:=oBrw:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oCol:<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;\">cHeader</span>  := <span style=\"color: #ff0000;\">'Cuentas'</span><br />   oCol:<span style=\"color: #000000;\">bStrData</span> := <span style=\"color: #000000;\">&#123;</span> || Prueba<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>S08<span style=\"color: #000000;\">&#41;</span>->CUENTAS <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   oCol:<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;\">cHeader</span>  := <span style=\"color: #ff0000;\">'Nivel'</span><br />   oCol:<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;\">bStrData</span> := <span style=\"color: #000000;\">&#123;</span> || STR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>S08<span style=\"color: #000000;\">&#41;</span>->NIVSUM <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br /><br />   oCol:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">cHeader</span>  := <span style=\"color: #ff0000;\">'Descripción'</span><br />   oCol:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bStrData</span> := <span style=\"color: #000000;\">&#123;</span> || Prueba2<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>S08<span style=\"color: #000000;\">&#41;</span>->CUENTAS <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   oCol:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrHeader</span>:= Colorea<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oWnd:<span style=\"color: #000000;\">oClient</span>:=oBrw<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oWnd<span style=\"color: #000000;\">&#91;</span>/code<span style=\"color: #000000;\">&#93;</span></div>[/code:1mks7xh2]\n\nEspero haberme explicado, y su ayuda de todos ustedes, con sus experiencias de TXBrowse.\n\nSaludos y buen dia.\n\nAtte: Adrian C. C.\n\nGracias Jose Luis, ya vi el ejemplo, pero...me trae todos los campos fields, y solo quiero los que yo quiero mostrar,pero en fin aun sigo investigando.\n\nOtra pregunta, se puede hacer desde recursos o no es muy necesario, eso si no vi algun recurso de los samples,o no le lei bien, pero ahi voy, ahora como seria crear dos browses.\n1.- Mostrando por ejemplo en primer browse los encabezados de cada Num de poliza .\n2.- y segundo browse, mostrando los detalles, llamando desde Num de poliza filtrado con OrdScope(), todo en un solo dialogo, se puede , cómo!\n\nPor el momento, solo muestro el primer browse, y quiero mostrar segundo browse \n\nGracias y buen dia.", "time": "21:24", "topic": "Ayuda Arreglos con TXBrowse y Recursos", "username": "ACC69" } ]
Ayuda Arreglos con TXBrowse y Recursos
[ { "date": "2012-08-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos, te recomiendo revises los TestxBrw de la carpeta SAMPLE, alli hay ejemplos con AUTOCOL, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "01:35", "topic": "Ayuda Arreglos con TXBrowse y Recursos", "username": "joseluisysturiz" } ]
Ayuda Arreglos con TXBrowse y Recursos