topic
stringlengths
1
63
text
stringlengths
1
577k
Ayuda -imprimir factura con columna texto tipo memo
Carlos, Puedes usar la función DrawText() del API de Windows incluida en FWH [url:iujqxxs8]http://msdn.microsoft.com/en-us/library/windows/desktop/dd162498(v=vs.85).aspx[/url:iujqxxs8] prueba con el flag DT_WORDBREAK
Ayuda -imprimir factura con columna texto tipo memo
Carlos, yo lo hago asi: prueba a usar la font "ARIAL" ó "LUCIDA CONSOLE" nxLen := 50 nxLineas := MlCount( ::oQry:FieldGet("comentarios"), nxLen ) pRen := 3.80 + 00.20 for x := 1 to nxLineas cLine := MemoLine( ::oQry:FieldGet("comentarios"), nxLen, x ) oPrn:cmSay( pRen, 14.30, cLine, oFnt[5] ) pRen += 00.20 next saludos paco
Ayuda -imprimir factura con columna texto tipo memo
[quote="Antonio Linares":1937wctm]Carlos, Puedes usar la función DrawText() del API de Windows incluida en FWH [url:1937wctm]http://msdn.microsoft.com/en-us/library/windows/desktop/dd162498(v=vs.85).aspx[/url:1937wctm] prueba con el flag DT_WORDBREAK[/quote:1937wctm] Antonio: ¿Como se usaría desde fivewin?. veo 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. Un saludo y mil gracias
Ayuda -imprimir factura con columna texto tipo memo
Jose Luis, En el código fuente de FWH se usa en diversos sitios. Un ejemplo: #define DT_TOP 0x00000000 #define DT_LEFT 0x00000000 #define DT_CENTER 0x00000001 #define DT_RIGHT 0x00000002 #define DT_VCENTER 0x00000004 #define DT_BOTTOM 0x00000008 #define DT_WORDBREAK 0x00000010 #define DT_SINGLELINE 0x00000020 #define DT_EXPANDTABS 0x00000040 #define DT_TABSTOP 0x00000080 #define DT_NOCLIP 0x00000100 #define DT_EXTERNALLEADING 0x00000200 #define DT_CALCRECT 0x00000400 #define DT_NOPREFIX 0x00000800 DrawText( hDC, cText, { nRow + 35, nCol - 5, nRow + 48, nCol + 40 }, DT_WORDBREAK )
Ayuda -imprimir factura con columna texto tipo memo
Antonio: A partir de que versión se incluyó la función DrawText() ?? Saludos
Ayuda -imprimir factura con columna texto tipo memo
Armando, Desde casi el principio <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ayuda -imprimir factura con columna texto tipo memo
Gracias maestro ! Saludos
Ayuda -imprimir factura con columna texto tipo memo
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. Un saludo y mil gracias José Luis
Ayuda -imprimir factura con columna texto tipo memo
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: oPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, , ROJO ) Si le pongo ancho,se puede ver solo la primera linea del memo oPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, 2500, ROJO ) Logicamente debería usar DrawText. He 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. He 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 ) Pero nada. ¿que tengo que hacer para que aparezca en el documento)
Ayuda -imprimir factura con columna texto tipo memo
[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: oPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, , ROJO ) Si le pongo ancho,se puede ver solo la primera linea del memo oPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, 2500, ROJO ) Logicamente debería usar DrawText. He 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. He 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 ) Pero nada. ¿que tengo que hacer para que aparezca en el documento)[/quote:1nbux91a] ¿Alguna alma caritativa que me dé una ayudita?
Ayuda -imprimir factura con columna texto tipo memo
Manuel, Para 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. Saludos
Ayuda -imprimir factura con columna texto tipo memo
Manuel, tendrás que fabricarte una funcion para imprimir los memos Basado en el codigo que puso el compañero Francisco Horta unos post más arriba [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] No lo he probado, pero espero te de por lo menos alguna luz
Ayuda -imprimir factura con columna texto tipo memo
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. Pero 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. He 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.
Ayuda -imprimir factura con columna texto tipo memo
Prueba asi. cTxt:="Décimo Noveno: El Trabajador no podrá ingresar al trabajo en estado de ebriedad, ni podrá consumir " +; "bebidas alcohólicas ni sustancias prohibidas en su lugar de trabajo. Ni se permitirá el porte de armas " +; "blancas ni de ninguna otra especie. " Imp_Memo(cTxt,oPrn,16.6,2.0,18.0,oFnt1,0.4,) FUNCTION Imp_Memo(cTxt,oPrn,nRow,nCol,nWid,oFont,nSkp,nClr) LOCAL cLin, lCont:=.T., nP:=0, lNext, cC, nW DEFAULT nSkp:=0.4, nClr:=0 cTxt:=Alltrim(cTxt) nW:=nWid-0.2 nRow-=nSkp oPrn:Cmtr2Pix(0,@nWid) DO WHILE lCont // un desmadre para separar cLin:=cC:="" // y justificar los memos!! lNext:=.T. DO WHILE oPrn:GetTextWidth(cLin,oFont)<nWid ; .AND. nP<=Len(cTxt) .AND. lNext nP++ cC:=Substr(cTxt,nP,1) IF Asc(cC)<>13 cLin+=cC ELSE nP++ lNext:=.F. ENDIF ENDDO IF Asc(cC)<>13 .AND. Asc(cC)<>0 cC:=Substr(cTxt,nP+1,1) IF " "$cLin .AND. cC<>" " DO WHILE cC<>" " .AND. Len(cLin)>0 cLin:=Substr(cLin,1,Len(cLin)-1) cC:=Right(cLin,1) nP-- ENDDO ELSE cLin:=Substr(cLin,1,Len(cLin)-2)+"-" cC:=Right(cLin,1) nP-=2 ENDIF oPrn:CmSay(nRow+=nSkp,nCol,Alltrim(cLin),oFont,nW,nClr,,3) ELSE oPrn:CmSay(nRow+=nSkp,nCol,Alltrim(cLin),oFont,,nClr) ENDIF IF nP>=Len(cTxt) lCont:=.F. ENDIF ENDDO RETURN (Nil) saludos
Ayuda -imprimir factura con columna texto tipo memo
Ahora si entiendo lo que intentas Has probado directamente con: [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]
Ayuda -imprimir factura con columna texto tipo memo
[quote="cnavarro":3nkxjvix]Ahora si entiendo lo que intentas Has probado directamente con: [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] Esa función te devuelve el número de lineas a imprimir, según el ancho que le pongas. Pero no imprime nada.
Ayuda -imprimir factura con columna texto tipo memo
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. <!-- m --><a class="postlink" href="http://www.despachoarteaga.com.mx/descargas/Printer.zip">http://www.despachoarteaga.com.mx/descargas/Printer.zip</a><!-- m -->
Ayuda 3 Combobox Anidados * URGENTE ??
Hola Amigos. Tengo una necesidad urgente de poder implementar un requerimiento, sobre el uso de Combobox. Maestro 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. Este 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. Muy agradecido de Francisco por haber modificado este codigo. Espero haber expuesto bien mi requerimiento. Muchos saludos. Antonio Código Funcional para 2 Combobox anidados: [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]
Ayuda 3 Combobox Anidados * URGENTE ??
Amigos. Alguna posibilidad? Saludos Antonio
Ayuda 3 Combobox Anidados * URGENTE ??
Acá te dejo el ejemplo, prueba y comenta. [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]
Ayuda 3 Combobox Anidados * URGENTE ??
[quote="cmsoft":3dq8v4vp]Acá te dejo el ejemplo, prueba y comenta. [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] Amigo Cesar. Mil disculpas por haberte molestado. Como siempre, eres un Maestro, pero en esta publicación, me encuentro solicitando un tercer combobox anidado. El 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. Me alegro mucho que lo hayas publicados para nuestros colegas que lo puedan nececitar. Infinitas gracias. Muchos Saludos. Antonio
Ayuda 3 Combobox Anidados * URGENTE ??
Amigos Buen dia Alguna idea de como anidar 3 combobox, codigo funcionando Ciudad y Comuna, falta agregar sectores que depende de Comunas?? Saludos Antonio
Ayuda 3 Combobox Anidados * URGENTE ??
Antonio, Aplicando 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. No lo he probado, pero diria que es el camino a seguir
Ayuda 3 Combobox Anidados * URGENTE ??
Buen dia Maestro Antonio. Muchas gracias por responder. Es 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. Muchos saludos Antonio.
Ayuda 3 Combobox Anidados * URGENTE ??
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:-) --> Depende de como quieras organizar las provincias, las ciudades y los barrios. Segun como ordenes los arrays asi habrá que cambiar el código. [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]
Ayuda 3 Combobox Anidados * URGENTE ??
Imagino que la forma correcta de organizar los datos seria asi: local aProvincias := { "Almeria", "Cadiz", "Cordoba", "Granada", "Huelva", "Jaen", "Malaga", "Sevilla" } local aCiudades := { { "Uno", "Dos", "Tres" }, { "Cuatro", "Cinco", "Seis" }, { "Siete", "Ocho", "Nueve" } } local aBarrios := { { { "aaa", "bbb", "ccc" }, { "ddd", "eee", "fff" }, { "ggg", "hhh", "iii" } },; { { "jjj", "kkk", "lll" }, { "mmm", "nnn", "ooo" }, { "ppp"; "qqq", "rrr" } },; { { "sss", "ttt", "uuu" }, { "vvv", "www", "xxx" }, { "yyy", "zzz" } } } luego la ciudad "Uno" tiene los barrios { "aaa", "bbb", "ccc" } la ciudad "Dos" tiene los barrios { "ddd", "eee", "fff" } etc... Segun como quieras organizar los datos, asi tiene que cambiar el código para encontrar la provincia, ciudad y barrio
Ayuda 3 Combobox Anidados * URGENTE ??
Maestro Antonio Muy amable, muchas gracias por su ayuda. Estoy 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. Seguiré a ver si logro encontrar el origen. Muchas gracias Antonio. Error: [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]
Ayuda 3 Combobox Anidados * URGENTE ??
La razón es simple: Estas intentando acceder al elemento quinto de un array que tiene solo tres elementos: [ 1] = A {{" ","Uno","Dos","Tres"},{" ","Cuatro","Cinco","Seis"},{" ","Siete","Ocho","Nueve"}} length: 3 [ 2] = N 5
Ayuda 3 Combobox Anidados * URGENTE ??
Otra forma, enredado pero funcional <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> [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]
Ayuda 3 Combobox Anidados * URGENTE ??
[quote="Cgallegoa":3afi6qfm]Otra forma, enredado pero funcional <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> [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] Hola Carlos. Muy amable, muchas gracias por tu ayuda y buena voluntad. Disculpa no haber respondido antes, lamentablemente mi sector estuvo sin energía eléctrica y sin poder encender equipos. Prové tu código, pero a mi me muestra solo el 1er elemento de cada combobox, no muestra ningún elemento mas. Muchas gracias por gestión. Saludos Antonio
Ayuda 3 Combobox Anidados * URGENTE ??
[quote="Antonio Linares":380843iq]La razón es simple: Estas intentando acceder al elemento quinto de un array que tiene solo tres elementos: [ 1] = A {{" ","Uno","Dos","Tres"},{" ","Cuatro","Cinco","Seis"},{" ","Siete","Ocho","Nueve"}} length: 3 [ 2] = N 5[/quote:380843iq] Buenas noches Maestro Antonio. Recien pudiendo encender equipos. Muchas 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. Muchos Saludos y muy agradecido. Antonio
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
[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]
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
No parece que estés modificando cCanTem desde la función
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
Antonio.. La variable es "nCanTar" , convierteSartaValores(cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi), el hecho es que si la modifica pero la retorna redondeada a tres decimales
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
Hola, Prueba lo siguiente: [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] Espero te sirva la idea. Saludos,
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
ya lo tengo definido... set decimals to 6 el problema se da si llamo la función desde el action de un get... porque de forma directa funciona bien Gracias por su respuesta.... Si 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
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
En tu código: [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] la variable cCanTem es la que se muestra en el GET. Luego si el valor del GET tiene que cambiar entonces cCanTem debería ser modificado. Tal vez no estoy entendiendo el problema
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
Antonio... Buena tarde ... La secuencia es esta : 1. Capturo un texto con este formato "1*1" -> un trozo de lamina de un metro --> en la variable "cCanTem" 2. 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) 3. El valor de retorno en nCanTar, es el que evaluó ---> ALERT(nCanTar) // 0.031000 /// resumen del código @ 15,70 GET oCanTem VAR cCanTem OF oDlgBr1 ; // cCanTem := "1*1" PICTURE "XXXXXXXXXXXXXXXX" ; PIXEL SIZE 120,25 ; UPDATE ; COLOR CLR_WHITE,CLR_GREEN FONT M->oFonAc8 ; VALID ( convierteSartaValores(cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi) ) ACTIVATE DIALOG oDlgBr1 CENTER ON INIT ( oCanTem:SetFocus() ) // VALORES RETORNADOS ALERT(nCanTar) // 0.031000 convierteSartaValores(cCanTem,@nCanTar,nUniMed,oDlgBr1,oBotAce,@lEstFun,@nPreAdi) ALERT(nCanTar) // 0.031250 Nota : 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. Nota: La variable que debe almacenar el valor final es nCanTar , que a su vez llega como parámetro a la función : FUNCTION 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 Johnson Russi
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
ok entendido, entendí que el valor modificado tenía que llegar al GET Tienes definido set decimals to 6 antes de llamar a la función capturaValorTexto() ?
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
Antonio Buena noche 1. Uso : "set decimals to 6" en todo el .prg 2. 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. 3. Por Ahora , es la solución que le di... usarla como local y luego asignársela a la variable final(la publica) 4. Si usted considera ver el caso en ejecución estaré atento a su disposición de tiempo para una asistencia remota Gracias Saludos Johnson Russi Tello
Ayuda : Retorno de GET VALID + FUNCTION(@variable)
Johnson, Si te funciona bien, eso es lo que cuenta <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ayuda ADODB
Buenas noches Tengo una aplicación algo "viejita", y la programe con ADO, el cliente me busco para hacer algunas adecuaciones y agregarle algunos modulos. Aquí me surgío una duda. Esta aplicación la trabajo generando un oRs con [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] Como puedo "recuperar" el resultado de un STORED PROCEDURE a ese oRs ?? Algo así como ::oRS := TraeElResultadoDelSToreProcedure("nombre del store procedure") [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] Alguien puede orientarme. Para aprovechar el que le voy a volver a "meter mano" a esta aplicación después de algunos años. Muchas gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Ayuda ADODB
Solucionado. Muchas 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 -->
Ayuda ADODB
Ricardo, Cómo lo has solucionado ?
Ayuda AScan en Array
Amigos Buenas tardes. Tengo un problema, no logro dar con la forma de la búsqueda en Arreglo. Variable: cVar:="MENTON" Array aAdmZonas:={ {""}, {"BARRAS", "MANDIBULA", "MARIONETAS", "POMULO", "CARA"}, {"CEJAS", "POMULO", "SOBRE CEJAS","LABIO SUPERIOOR"}} Como puedo saber la posición de la cVar, dentro de aAdmZonas? Muchos Saludos. Antonio
Ayuda AScan en Array
Esta sería una manera, creo que con aeval sería más óptima [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]
Ayuda Acceso directo a aplicacion en XP
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. desde ya muchisimas gracias Fabian <!-- e --><a href="mailto:databaselab2002@yahoo.com.ar">databaselab2002@yahoo.com.ar</a><!-- e -->
Ayuda Acceso directo a aplicacion en XP
Los recursos de la aplicación los mantienes dentro del EXE ó en una DLL ?
Ayuda Acceso directo a aplicacion en XP
Si Antonio Le terndria que poner verdad ? Path:="\"+CurDir() SET PATH TO &cPath SET DEFAULT TO &cPath Saludos Fabian <!-- e --><a href="mailto:databaselab2002@yahoo.com.ar">databaselab2002@yahoo.com.ar</a><!-- e -->
Ayuda Acceso directo a aplicacion en XP
Estás usando una DLL para los recursos ? En caso afirmativo, y si no se muestran los recursos, entonces es que no consigue encontrar la DLL. Prueba a copiarla a tu ordenador
Ayuda Acceso directo a aplicacion en XP
Si no creas una unidad de red no te va a funcionar. Estos son los pasos a seguir en Windows XP: 1.- 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. 2.- 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. 3.- 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. Un saludo, Manuel [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. desde ya muchisimas gracias Fabian <!-- e --><a href="mailto:databaselab2002@yahoo.com.ar">databaselab2002@yahoo.com.ar</a><!-- e -->[/quote:20zeil4a]
Ayuda Al compilar me Da error en ::Super
Saludos al forum Estoy implementado este ejemplo en mi aplicacion. Este es lo que baje hbide-master Trato de implementar el menu y me sale este error al compilar. Todo lo que dice ::Super:? me da error [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]
Ayuda Al compilar me Da error en ::Super
Cambia ::Super por Super
Ayuda Al compilar me Da error en ::Super
Gracias Funciono
Ayuda Al compilar pe.prg de samples de xharbour
Saludos al Fórum Estoy compilando la carpeta xharbour-code Rev 10042\xharbour\samples\pe PE.PRG y editorhi.PRG y editorlo.c No esta compilado editorlo.c , este es el error. no se porque no lo compila. Me genera estos errores. este es el bc para compilarlo no se donde esta el erro. [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] [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]
Ayuda Al compilar pe.prg de samples de xharbour
Ruben, Los errores que has puesto son de enlazado pero no los de compilado. Puedes copiar aqui el contenido de editorlo.c ?
Ayuda Al compilar pe.prg de samples de xharbour
proba con esta app a ver si te funciona. <!-- 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 -->
Ayuda Al compilar pe.prg de samples de xharbour
[quote="Antonio Linares":1a5qqn99]Ruben, Los errores que has puesto son de enlazado pero no los de compilado. Puedes copiar aqui el contenido de editorlo.c ?[/quote:1a5qqn99] Gracias Antonio. Aquí esta el código. [url:1a5qqn99]http&#58;//www&#46;4shared&#46;com/rar/i_FdcL7cba/carpeta_pe&#46;html[/url:1a5qqn99]
Ayuda Al compilar pe.prg de samples de xharbour
Ruben, Usas Borland ?
Ayuda Al compilar pe.prg de samples de xharbour
Aqui compila bien con Borland aunque salen una serie de warnings que habria que revisar: [quote:36w6mo5r]c:\temp>c:\bcc582\bin\bcc32 -c -Ic:\harbour\include editorlo.c Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland editorlo.c: Warning W8060 editorlo.c 349: Possibly incorrect assignment in function FormatTe xt Warning W8012 editorlo.c 406: Comparing signed and unsigned values in function N ewText Warning W8075 editorlo.c 456: Suspicious pointer conversion in function HB_ED_AD DTEXT Warning W8060 editorlo.c 500: Possibly incorrect assignment in function GoToLine Warning W8075 editorlo.c 643: Suspicious pointer conversion in function HB_ED_IN STEXT Warning W8012 editorlo.c 971: Comparing signed and unsigned values in function H B_ED_GETLINE Warning W8075 editorlo.c 1082: Suspicious pointer conversion in function HB_ED_S ETTEXT Warning W8004 editorlo.c 1155: 'lConv' is assigned a value that is never used in function HB_ED_READTEXT Warning W8012 editorlo.c 1238: Comparing signed and unsigned values in function HB_ED_STABILIZE Warning W8060 editorlo.c 1299: Possibly incorrect assignment in function HB_ED_S TABILIZE Warning W8012 editorlo.c 1929: Comparing signed and unsigned values in function End Warning W8012 editorlo.c 1943: Comparing signed and unsigned values in function End Warning W8012 editorlo.c 2059: Comparing signed and unsigned values in function DelChar Warning W8012 editorlo.c 2154: Comparing signed and unsigned values in function BackSpace Warning W8060 editorlo.c 2190: Possibly incorrect assignment in function BackSpa ce Warning W8012 editorlo.c 2317: Comparing signed and unsigned values in function NextWord Warning W8012 editorlo.c 2380: Comparing signed and unsigned values in function PreviousWord Warning W8012 editorlo.c 2468: Comparing signed and unsigned values in function format_line Warning W8012 editorlo.c 2636: Comparing signed and unsigned values in function PutChar Warning W8012 editorlo.c 2876: Comparing signed and unsigned values in function Return c:\temp>[/quote:36w6mo5r]
Ayuda Al compilar pe.prg de samples de xharbour
[quote="Antonio Linares":2vnvdmnd]Aqui compila bien con Borland aunque salen una serie de warnings que habria que revisar: [quote:2vnvdmnd]c:\temp>c:\bcc582\bin\bcc32 -c -Ic:\harbour\include editorlo.c Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland editorlo.c: Warning W8060 editorlo.c 349: Possibly incorrect assignment in function FormatTe xt Warning W8012 editorlo.c 406: Comparing signed and unsigned values in function N ewText Warning W8075 editorlo.c 456: Suspicious pointer conversion in function HB_ED_AD DTEXT Warning W8060 editorlo.c 500: Possibly incorrect assignment in function GoToLine Warning W8075 editorlo.c 643: Suspicious pointer conversion in function HB_ED_IN STEXT Warning W8012 editorlo.c 971: Comparing signed and unsigned values in function H B_ED_GETLINE Warning W8075 editorlo.c 1082: Suspicious pointer conversion in function HB_ED_S ETTEXT Warning W8004 editorlo.c 1155: 'lConv' is assigned a value that is never used in function HB_ED_READTEXT Warning W8012 editorlo.c 1238: Comparing signed and unsigned values in function HB_ED_STABILIZE Warning W8060 editorlo.c 1299: Possibly incorrect assignment in function HB_ED_S TABILIZE Warning W8012 editorlo.c 1929: Comparing signed and unsigned values in function End Warning W8012 editorlo.c 1943: Comparing signed and unsigned values in function End Warning W8012 editorlo.c 2059: Comparing signed and unsigned values in function DelChar Warning W8012 editorlo.c 2154: Comparing signed and unsigned values in function BackSpace Warning W8060 editorlo.c 2190: Possibly incorrect assignment in function BackSpa ce Warning W8012 editorlo.c 2317: Comparing signed and unsigned values in function NextWord Warning W8012 editorlo.c 2380: Comparing signed and unsigned values in function PreviousWord Warning W8012 editorlo.c 2468: Comparing signed and unsigned values in function format_line Warning W8012 editorlo.c 2636: Comparing signed and unsigned values in function PutChar Warning W8012 editorlo.c 2876: Comparing signed and unsigned values in function Return c:\temp>[/quote:2vnvdmnd][/quote:2vnvdmnd] Gracias Antonio Revisando si compila , pero al Generar el ejecutable , genera el mismo error. Que enuncie inicialmente. Le anexo el makefile.lnk [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] Antonio Usted genero el Ejecutable. Para saber si pasa lo mismo. Gracias
Ayuda Al compilar pe.prg de samples de xharbour
Ruben, Tienes que enlazar la libreria hbmisc.lib de Harbour
Ayuda Al compilar pe.prg de samples de xharbour
[quote="Antonio Linares":1ia6cuwx]Ruben, Tienes que enlazar la libreria hbmisc.lib de Harbour[/quote:1ia6cuwx] Gracias Antonio. Lo estoy compiladon con Harbour y bcc68 Me da este error [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] Este es el Archivo pe.mak [code] HDIRL=K:\harbour BCDIR=K:\BCC582 FWDIR=K:\FWH .path.OBJ = .\obj .path.CH = $(FWDIR)\include;$(HDIRL)\include PRG= \ K:\v_xharb\pe\pe.prg \ K:\v_xharb\pe\editorhi.prg C= \ K:\v_xharb\pe\editorlo.c OBJ=$(PRG:.prg=.obj) OBJS=$(OBJ:.\=.obj\) PROJECT : pe.exe pe.exe : $(OBJS) echo off echo $(BCDIR)\lib\c0w32.obj + > b32.bc echo OBJ\pe.obj + >> b32.bc echo OBJ\editorhi.obj, + >> b32.bc echo pe.exe, + >> b32.bc echo pe.map, + >> b32.bc echo $(FWDIR)\lib\FiveH.lib + >> b32.bc echo $(FWDIR)\lib\FiveHC.lib + >> b32.bc echo $(HDIRL)\lib\hbrtl.lib + >> b32.bc echo $(HDIRL)\lib\hbvm.lib + >> b32.bc echo $(HDIRL)\lib\gtgui.lib + >> b32.bc echo $(HDIRL)\lib\hblang.lib + >> b32.bc echo $(HDIRL)\lib\hbcpage.lib + >> b32.bc echo $(HDIRL)\lib\hbmacro.lib + >> b32.bc echo $(HDIRL)\lib\hbrdd.lib + >> b32.bc echo $(HDIRL)\lib\rddntx.lib + >> b32.bc echo $(HDIRL)\lib\rddcdx.lib + >> b32.bc echo $(HDIRL)\lib\rddfpt.lib + >> b32.bc echo $(HDIRL)\lib\hbsix.lib + >> b32.bc echo $(HDIRL)\lib\hbdebug.lib + >> b32.bc echo $(HDIRL)\lib\hbcommon.lib + >> b32.bc echo $(HDIRL)\lib\hbpp.lib + >> b32.bc echo $(HDIRL)\lib\hbpcre.lib + >> b32.bc echo $(HDIRL)\lib\hbct.lib + >> b32.bc echo $(HDIRL)\lib\hbzlib.lib + >> b32.bc echo $(HDIRL)\lib\hbmisc.lib + >> b32.bc echo $(HDIRL)\lib\hbtip.lib + >> b32.bc echo $(HDIRL)\lib\png.lib + >> b32.bc echo $(HDIRL)\lib\hbwin.lib + >> b32.bc echo $(BCDIR)\lib\cw32.lib + >> b32.bc echo $(BCDIR)\lib\import32.lib + >> b32.bc echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc echo $(BCDIR)\lib\psdk\psapi.lib + >> b32.bc echo $(BCDIR)\lib\psdk\rasapi32.lib >> b32.bc $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc .PRG.OBJ: $(HDIRL)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HDIRL)\include;.\include $(BCDIR)\bin\bcc32 -c -tWM -I$(HDIRL)\include -oobj\$& obj\$&.c .C.OBJ: echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp echo -I$(HDIRL)\include;$(FWDIR)\include >> tmp $(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c del tmp [code]
Ayuda Al compilar pe.prg de samples de xharbour
Tienes que enlazar la libreria hbcplr.lib de Harbour
Ayuda Al compilar pe.prg de samples de xharbour
[quote="Antonio Linares":2zg73uw6]Tienes que enlazar la libreria hbcplr.lib de Harbour[/quote:2zg73uw6] Gracias Antonio enlazo la libreria hbcplr.lib , y sigue lo mismo. Pero Enlazo esta librería xhb.lib No se que otra librería me falta. Y me dan estos errores. Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc. Error: Unresolved external '_HB_FUN_ED_KILL' referenced from K:\V_XHARB\OBJ\EDITORHI.OBJ Error: Unresolved external '_HB_FUN_ED_UNLOCK' referenced from K:\V_XHARB\OBJ\EDITORHI.OBJ Error: Unresolved external '_HB_FUN_ED_PUSH' referenced from K:\V_XHARB\OBJ\EDITORHI.OBJ Error: Unresolved external '_HB_FUN_ED_POP' referenced from K:\V_XHARB\OBJ\EDITORHI.OBJ Error: Unable to perform link
Ayuda Al compilar pe.prg de samples de xharbour
Tienes que enlazar hbmisc.lib
Ayuda Al compilar pe.prg de samples de xharbour
[quote="Antonio Linares":1uplg37w]Tienes que enlazar hbmisc.lib[/quote:1uplg37w] Gracias Antonio. Pero ya tenia esta hbmisc.lib , pero sigue el mismo problema.
Ayuda Al compilar pe.prg de samples de xharbour
Ruben, Prueba a crear esas 4 funciones de esta forma: function ED_KILL() return nil y a ver si asi te construye el EXE
Ayuda Al compilar pe.prg de samples de xharbour
[quote="Antonio Linares":ahzty7t4]Ruben, Prueba a crear esas 4 funciones de esta forma: function ED_KILL() return nil y a ver si asi te construye el EXE[/quote:ahzty7t4] Ya cree la 4 funciones, y crea el ejecutable. Pero al Ejecutar me da estos errores [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 /><br />&nbsp;</div>[/code:ahzty7t4]
Ayuda Al compilar pe.prg de samples de xharbour
Ruben, Publica aqui el código de editorhi.PRG, gracias En el método New() parece que se le intenta restar un número a un puntero.
Ayuda Al compilar pe.prg de samples de xharbour
[quote="Antonio Linares":2dy7chtf]Ruben, Publica aqui el código de editorhi.PRG, gracias En el método New() parece que se le intenta restar un número a un puntero.[/quote:2dy7chtf] Aquí esta todo el código.
Ayuda Al compilar pe.prg de samples de xharbour
[quote="ruben Dario":257s2j5z][quote="Antonio Linares":257s2j5z]Ruben, Publica aqui el código de editorhi.PRG, gracias En el método New() parece que se le intenta restar un número a un puntero.[/quote:257s2j5z][/quote:257s2j5z] Aquí esta todo el código [url] <!-- 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 --> [/url]
Ayuda Al compilar pe.prg de samples de xharbour
Ruben, Este código que deseas usar para que es ? Que funcionalidad es la que buscas ?
Ayuda Al compilar pe.prg de samples de xharbour
[quote="Antonio Linares":2jy8v8nl]Ruben, Este código que deseas usar para que es ? Que funcionalidad es la que buscas ?[/quote:2jy8v8nl] Solamente quería comparar con el que maneja clipper, ya que los encontré en los ejemplos de xharbour. Ya que tengo una aplicación de clipper que emigre a xharbour , y quería ver la funcionalidad de este editor. mientras emigro a FWH. dicha aplicación. Según veo el código estas funciones están definidas editorlo.c, no se porque no las toma. aquí esta en el trozo de código, pero tiene una definición #ifdef mc51, /* ** */ #ifdef mc51 CLIPPER_ACTION( HB_ED_PUSH ) { int i; i =0; while( i < 5 && EStack[i] ) i++; EStack[ i ] =ED; } CLIPPER_ACTION( HB_ED_POP ) { int i; i =0; while( i < 5 && EStack[i] ) i++; if( i ) { ED =EStack[ i-1 ]; EStack[ i-1 ] =NULL; } } #endif
Ayuda Al compilar pe.prg de samples de xharbour
Ruben, FWH te ofrece varios editores. El más potente es scintilla. Tienes un ejemplo en FWH\samples\sciedit.prg
Ayuda Al compilar pe.prg de samples de xharbour
Hola, donde puedo descargar el editor de texto PE.exe en modo consola, para probar? Gracias, saludos.
Ayuda Al compilar pe.prg de samples de xharbour
[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 /><br /></span></div>[/code:3n148wog] Tengo construido para 32 bits el DBU de Clipper, por si alguien lo necesita
Ayuda Al compilar pe.prg de samples de xharbour
Lo tengo: muy limitado. no me sirve para nada. [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]
Ayuda Al compilar pe.prg de samples de xharbour
Prueba esta función de FWH que te gustará <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> function SourceEdit( cSource, cTitle, nClrBack ) // @Source by reference
Ayuda Amigos
Hola Amigos: Tengo un problema, por necesidad de un cliente, necesito poner los Say o Get de los Redefine, con colores: . REDEFINE Say oRut_emp1 Prompt Rut_emp1 ID 20 OF oDlg Font oFont1 . Redefine Get oCod_usu1 Var Cod_usu1 Id 104 Of oDlg Update Picture "@!" . Saludos, Antonio
Ayuda Amigos
Antonio, Añádeles la claúsula COLOR ... REDEFINE Say oRut_emp1 Prompt Rut_emp1 ID 20 OF oDlg Font oFont1 COLOR "W/B" . Redefine Get oCod_usu1 Var Cod_usu1 Id 104 Of oDlg Update Picture "@!" COLOR "R/BG" Puedes usar colores RGB así: ... COLOR nRGB( ..., ..., ... ), nRGB( ..., ..., ... ) en donde esos 3 parámetros son los valores numéricos de rojo, verde y azul.
Ayuda Amigos
Antonio: Muchas gracias por tu respuesta, lo probare. Saludos, Antonio
Ayuda Amigos
Antonio: Sigo con el problema, extraño, pero asi es: REDEFINE Say oNom_emp1 Prompt DesDe ID 21 OF oDlg Font oFont1 Color "R/BG" Redefine Get oCod_usu1 Var Cod_usu1 Id 104 Of oDlg Update Picture "@!" Color "R/BG" Esto lo uso con un recurso desde RC, uso FWH 704, Xharbour 00.99.71, Workshop y Verce 5.3 Espero dar con el error. Desde ya muchas gracias, Saludos, Antonio
Ayuda Amigos
Antonio, Por favor revisa y prueba samples\combos.prg, verás que en él se hace: REDEFINE SAY oSay PROMPT cItem4 ID ID_SELECTION OF oDlg COLOR "R+/W" y funciona correctamente
Ayuda Amigos
Antonio: Muchas gracias, lo probare. Saludos, Antonio
Ayuda Amigos
Amigos: Nuevamente estoy molestando, pero el cambio a 32 bits me tiene loco, tengo lo siguiente: Dato: "13.563.270-5" Lista='0123456789K' aa=at('-',trim(Dato)) dg=subs(Dato,aa+1,1) -- Rescato el ultimo digito es decir el " 5 " Debo buscarlo si se encuentra en la variable Dato Pruebo asi y me da 0, lo que indica no encontrado if at("(dg)",lista)=0 MsgStop(" El Digito No Es Valido ") return (Ra:=.f.) endif Asi tampoco resulta, me da resultado 0 if at("&dg",lista)=0 MsgStop(" El Digito No Es Valido ") return (Ra:=.f.) endif No entiendo nada, Uso FWh 704, xHarbour 00.99.71 Esperando salir del poncho, Saludos, Antonio
Ayuda Amigos
MAntonio: Creo que estas en una madeja <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Si el dato a buscar lo tienes en una variable, ¿ Por que lo pones entre comillas ? Pruebalo así IF AT(dg,Lista) == 0 ... ... ... Saludos
Ayuda Amigos
NO SE SI ES ERROR DE TRANSCRIPCION pero si pones DATO:= "13.563.270-5" EN LUGAR DE: Dato: "13.563.270-5" TE TRABAJA!!
Ayuda Amigos
Amigo: Primero que nada, muchas gracias a ambos, por su respuesta. Tienes razon, pero es solo un error de transcripcion, la situacion es que sigo con el problema. Quisas la pregunta mas facil sea: Como busco un caracter que viene en una variable, dentro de un strin. var1:="9" Varia a buscar Var2:="0123456789K" Variable sobre la que se debe buscar la variable var1. En 16 bits usaba ----> at("&var1",var2), pero en 32 bist, ya no lo hace, existe otro comando para hacerlo. <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> Me es urgente. Saludos, Antonio [quote="ADBLANCO":pqsf09o2]NO SE SI ES ERROR DE TRANSCRIPCION pero si pones DATO:= "13.563.270-5" EN LUGAR DE: Dato: "13.563.270-5" TE TRABAJA!![/quote:pqsf09o2]
Ayuda Amigos
Hola, yolo hago asi: ... cFrase := "5" cTexto := "QWEDSAZX34RF5TGB6YHN7UJM8IK9OL0P" nPos := 0 nPos := AT(cFrase, cTexto ) IF nPos > 0 MsgAlert(" la letra - " + cFrase + "- esta en la posicion " + STR(nPos) ) EndIf Salu2
Ayuda Amigos
Willi: Mil gracias amigo, funciono perfecto. Saludos, Antonio [quote="Willi Quintana":2ciw8rr7]Hola, yolo hago asi: ... cFrase := "5" cTexto := "QWEDSAZX34RF5TGB6YHN7UJM8IK9OL0P" nPos := 0 nPos := AT(cFrase, cTexto ) IF nPos > 0 MsgAlert(" la letra - " + cFrase + "- esta en la posicion " + STR(nPos) ) EndIf Salu2[/quote:2ciw8rr7]
Ayuda Amigos
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. Saludos, Angel
Ayuda Array - Combobox
[quote="Antonio Linares":2uvpwibe]Estimado Antonio, Estás intentando acceder a un elemento del array que no existe: [ 1] = A {" ","BANM","BONI","CIGN","CENR","27 ","GACH","PACH","CHIL","CISO","COLM","CONS","FAB ","GS ... } length: 40 [ 2] = N 45 El array debe tener al menos 45 elementos[/quote:2uvpwibe] Buen dia Maestro Antonio. Muchas gracias por responder. Que extraño, porque el array aTpagos que se en la funcion, se agregan 3 elementos. Me 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. Efectivamente, 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:?: --> Comprobe 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:?: --> Muchas gracias Saludos Antonio Codigo [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]
Ayuda Array - Combobox
Hola Amigos Ncesito lo siguiente, tengo 2 Combobox con Array, pero necesito generar el segundo al seleccionar un Items del 1er. Combox. Emite un error. Muchos Saludos Antonio Codigo: [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] Error: [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;   u &nbsp; &nbsp; &nbsp; &nbsp; P &nbsp; &nbsp;Z &nbsp; ô  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;  &nbsp;P &nbsp; &nbsp;–  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; ¡P &nbsp; &nbsp;í  Z È r C O M B O B O X &nbsp; &nbsp; &nbsp;  &nbsp;P &nbsp; &nbsp;–  P <br />&nbsp;s S T A T I C &nbsp; T i p o &nbsp; P a g o &nbsp; &nbsp; &nbsp; ¡P &nbsp; &nbsp;í  Z È t C O M B O B O X &nbsp; &nbsp; &nbsp;  &nbsp;P &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>  < <br />&nbsp;u S T A T I C &nbsp; E s t a d o &nbsp; &nbsp; ¡P &nbsp; &nbsp;n  F È v C O M B O B O X &nbsp; &nbsp; &nbsp; &nbsp; 1P &nbsp; &nbsp;< - ¯w T X B R O W S E &nbsp; a r a n p a g o &nbsp; &nbsp; &nbsp; P &nbsp; &nbsp; <   x T B T N B M P &nbsp; N U E V O &nbsp; &nbsp; &nbsp; P &nbsp; &nbsp; d &nbsp;  y T B T N B M P &nbsp; M O D I F I &nbsp; &nbsp; &nbsp; &nbsp; P &nbsp; &nbsp; Œ &nbsp;  z T B T N B M P &nbsp; B O R R A &nbsp; &nbsp; &nbsp; P &nbsp; &nbsp; ´ &nbsp;  <span style="color: #000000;">&#123;</span> T B T N B M P &nbsp; M U E S T R A &nbsp; &nbsp; &nbsp; P &nbsp; &nbsp; Ü &nbsp;  | T B T N B M P &nbsp; I M P R I M E &nbsp; &nbsp; &nbsp; P &nbsp; &nbsp;d n <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; P &nbsp; &nbsp;ú ý   ~ 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]
Ayuda Array - Combobox
Estimado Antonio, Estás intentando acceder a un elemento del array que no existe: [ 1] = A {" ","BANM","BONI","CIGN","CENR","27 ","GACH","PACH","CHIL","CISO","COLM","CONS","FAB ","GS ... } length: 40 [ 2] = N 45 El array debe tener al menos 45 elementos
Ayuda Array - Combobox
Amigos Alguna idea? Saludos Antonio
Ayuda Array - Combobox
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. Gracias. Regards, saludos.
Ayuda Array - Combobox
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. Después de cambiar el array asígnalo a combobox y refréscalo [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] Espero te sea de ayuda.
Ayuda Arreglos con TXBrowse y Recursos
Hola buenas tardes a todos los programadores, esperando que se encuentren bien, les envio cordial saludos. Ya 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 : oCol:oBrw:AddCol() [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] Asi de esta forma que quiero hacer como arreglos, pero me marca error, o desde donde puedo llamar esa instruccion como arrayas de datos. [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] Espero haberme explicado, y su ayuda de todos ustedes, con sus experiencias de TXBrowse. Saludos y buen dia. Atte: Adrian C. C. Gracias 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. Otra 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. 1.- Mostrando por ejemplo en primer browse los encabezados de cada Num de poliza . 2.- y segundo browse, mostrando los detalles, llamando desde Num de poliza filtrado con OrdScope(), todo en un solo dialogo, se puede , cómo! Por el momento, solo muestro el primer browse, y quiero mostrar segundo browse Gracias y buen dia.
Ayuda Arreglos con TXBrowse y Recursos
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: -->