topic
stringlengths
1
63
text
stringlengths
1
577k
Ayuda con Errores con Harbour
[quote="cnavarro":16vyo54y]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=28666&p=161821&hilit=VALBLANK#p161821[/quote:16vyo54y] Gracias por Su Informacion Ya Construyo el Ejecutable Amumente estas Librerias xhb.lib hbcplr.lib hbwin.lib gtgui.lib Pero Se cuelga y no Muestra nada Se cuelga con este codigo WHILE .T. @ MAXROW(),00 SAY CENTER( MESAG_MENU ) COLOR "W+/B" MENUMODAL( oPmen, 1, MAXROW(), 0, MAXCOL()+1,"W+/B") END Con xHarbour si funciona
Ayuda con Errores con Harbour
Ruben, que hace la funcion MENUMODAL? Lo tienes en un bucle sin fin, si retorna una variable logica, esa seria la condicion del Do While [code=fw:15j7hpy1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />lSw &nbsp;:= .T.<br /><span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> lSw<br /><br />lSw := MENUMODAL<span style="color: #000000;">&#40;</span> ....<br /><br /><span style="color: #00C800;">Enddo</span><br />&nbsp;</div>[/code:15j7hpy1]
Ayuda con Errores con Harbour
[quote="cnavarro":uyk8wl0p]Ruben, que hace la funcion MENUMODAL? Lo tienes en un bucle sin fin, si retorna una variable logica, esa seria la condicion del Do While [code=fw:uyk8wl0p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />lSw  := .T.<br /><span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> lSw<br /><br />lSw := MENUMODAL<span style="color: #000000;">&#40;</span> ....<br /><br /><span style="color: #00C800;">Enddo</span><br /> </div>[/code:uyk8wl0p][/quote:uyk8wl0p] Saludos Es para mostrar un Menu, Tipo texto como en clipper, Tengo una plaicacion en xHarbour y Lo estoy pasando a Harbour , volverla Grafica, Te anexo Imagen, como lo ejecuta con xHarbour, con Harbour debe ser lo mismo Lo que he visto tengo que hacer cambios, ya que hay ciertas instrucicones que cambian de nombre. Te anexo imagen como muestra el menum se gusta te doy el codigo como funciona [code=fw:uyk8wl0p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Button.ch"</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Inkey.ch"</span><br /><br />&nbsp; &nbsp;PROCEDURE Main<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oTopBar := CreateMainMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; CLS<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MenuModal<span style="color: #000000;">&#40;</span> oTopBar , <span style="color: #000000;">1</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MaxRow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, MaxCol<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oTopBar:<span style="color: #000000;">colorSpec</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDDO</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FUNCTION</span> CreateMainMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oMainMenu &nbsp;:= TopBarMenu<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: #000000;">0</span>, <span style="color: #000000;">0</span>, MaxCol<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> bMenuBlock := <span style="color: #000000;">&#123;</span>|o| MenuSelect<span style="color: #000000;">&#40;</span>o<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cMenuColor := <span style="color: #ff0000;">"N/BG,W+/R,GR+/BG,GR+/R,N+/BG,N/BG"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> aItems<br /><br />&nbsp; &nbsp; &nbsp; oMainMenu:<span style="color: #000000;">colorSpec</span> := cMenuColor<br /><br />&nbsp; &nbsp; &nbsp; aItems := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" &Open "</span> &nbsp; &nbsp; , K_ALT_O &nbsp; , <span style="color: #ff0000;">"Open routine"</span> &nbsp;, <span style="color: #000000;">11</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" &Save "</span> &nbsp; &nbsp; , K_ALT_S &nbsp; , <span style="color: #ff0000;">"Save routine"</span> &nbsp;, <span style="color: #000000;">12</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> MENU_SEPARATOR, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , <span style="color: #000000;">13</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" E&xit "</span> &nbsp; &nbsp; , K_ALT_X &nbsp; , <span style="color: #ff0000;">"Exit program"</span> &nbsp;, <span style="color: #000000;">14</span> <span style="color: #000000;">&#125;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; CreateSubMenu<span style="color: #000000;">&#40;</span> oMainMenu, <span style="color: #ff0000;">" &File "</span>, bMenuBlock, aItems <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; aItems := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" Cop&y &nbsp; "</span> &nbsp; , K_CTRL_INS, <span style="color: #ff0000;">"Copy routine"</span> &nbsp;, <span style="color: #000000;">21</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" &Paste &nbsp;"</span> &nbsp; , K_SH_INS &nbsp;, <span style="color: #ff0000;">"Paste routine"</span> , <span style="color: #000000;">22</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> MENU_SEPARATOR, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , <span style="color: #000000;">23</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" C&ut &nbsp; &nbsp;"</span> &nbsp; , K_SH_DEL &nbsp;, <span style="color: #ff0000;">"Cut routine"</span> &nbsp; , <span style="color: #000000;">24</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" &Delete "</span> &nbsp; , K_DEL &nbsp; &nbsp; , <span style="color: #ff0000;">"Delete routine"</span>, <span style="color: #000000;">25</span> <span style="color: #000000;">&#125;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; CreateSubMenu<span style="color: #000000;">&#40;</span> oMainMenu, <span style="color: #ff0000;">" &Edit "</span>, bMenuBlock, aItems <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; aItems := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" &Info &nbsp; "</span> &nbsp; , K_F1 &nbsp; &nbsp; &nbsp;, <span style="color: #ff0000;">"Help routine"</span> &nbsp;, <span style="color: #000000;">31</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" &About &nbsp;"</span> &nbsp; , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , <span style="color: #ff0000;">"About program"</span> , <span style="color: #000000;">32</span> <span style="color: #000000;">&#125;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; CreateSubMenu<span style="color: #000000;">&#40;</span> oMainMenu, <span style="color: #ff0000;">" &Help "</span>, bMenuBlock, aItems <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> oMainMenu<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FUNCTION</span> CreateSubMenu<span style="color: #000000;">&#40;</span> oMenu, cMenuItem, bBlock, aItems <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> aItem, oItem, oSubMenu<br /><br />&nbsp; &nbsp; &nbsp; oSubMenu &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #0000ff;">PopUp</span><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: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSubMenu:<span style="color: #000000;">colorSpec</span> := oMenu:<span style="color: #000000;">colorSpec</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> EACH aItem IN aItems<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oItem := <span style="color: #0000ff;">MenuItem</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span> aItem<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bBlock &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aItem<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aItem<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aitem<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSubMenu:<span style="color: #000000;">addItem</span> <span style="color: #000000;">&#40;</span> oItem <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp; &nbsp; oItem := <span style="color: #0000ff;">MenuItem</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span> cMenuItem, oSubMenu <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oMenu:<span style="color: #000000;">addItem</span><span style="color: #000000;">&#40;</span> oItem <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><br /><br />&nbsp; &nbsp;PROCEDURE MenuSelect<span style="color: #000000;">&#40;</span> oMenuItem <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> CLEAR <span style="color: #0000ff;">TO</span> MaxRow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, MaxCol<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">SWITCH</span> oMenuItem:<span style="color: #0000ff;">ID</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> <span style="color: #000000;">14</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExitRoutine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; EXIT<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alert<span style="color: #000000;">&#40;</span> oMenuItem:<span style="color: #0000ff;">message</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><br /><br />&nbsp; &nbsp;PROCEDURE ExitRoutine<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> Alert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Exit program?"</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Yes"</span>, <span style="color: #ff0000;">"No"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QUIT<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><br />&nbsp;</div>[/code:uyk8wl0p] [url] <!-- m --><a class="postlink" href="https://www.dropbox.com/s/qznjl8ak0oube2q/xharb_1.jpg?dl=0">https://www.dropbox.com/s/qznjl8ak0oube ... 1.jpg?dl=0</a><!-- m --> [/url]
Ayuda con ExcelOle
Hola amigos del foro Que metodo puedo utilizar para seleccionar un rango de celdas usando TExcelScript, lo quie intento hacer es exportar una base de datos pero tengo campos que a pesar de ser alfanumericos se presentar en formato de notacion cientifica. Usando oExcel:CellFormat(fil,col,,,"@") logro resolver para cada celda pero tendria que aplicar ese metodo a cada fila y columna que me interesa, la hoja tiene 25000 filas y tarda demasiado en hacer esto. Lo ideal seria que al abrir la hoja pueda indicar el formato de toda la columna o que al finalizar el proceso pueda marcar un rango y aplicar el formato deseado Alguna ayuda Gracias...
Ayuda con Exportacion a Excel
Sr Armando Ya probe eso, formateando la celda y montando el formato, el cual no funciono me cambia el formato de celda a "personalizado", estuve leyendo en las opciones de excel Ctrl+Mayuscula+f12 luego ctrl+mayus+f2 me muestra las funciones de excel para cambiar el tipo de formato, pero aun no doy con la solucion
Ayuda con Exportacion a Excel
Hugo: A mi me funciona bien con el ejemplo que te mostré Veo que usas [code=fw:308o7vnv]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, nLine <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> :=cDescri<br />&nbsp;</div>[/code:308o7vnv] Y me parece que debe ser [code=fw:308o7vnv]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nline, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> :=cDescri &nbsp; <span style="color: #B900B9;">// Primero es la línea y luego la columna</span><br />&nbsp;</div>[/code:308o7vnv] Será por ahí? Saludos
Ayuda con Exportacion a Excel
Buenas amigos tengo consulta y es la siguiente Cuando doy salida a mi consulta MySql, directamente por sistema hacia excel, la misma la hace bien pero el formato de la Celda prevalece como "General", existe alguna manera de cambiar este tipo de formato de celda en la misma exportación, es decir "Texto,Numerico" ya trate formateando la celda y mandando el valor pero no funciona alguien tiene alguna idea
Ayuda con Exportacion a Excel
Que usas para hacer la exportación ??? Saludos
Ayuda con Exportacion a Excel
ya te anexo el codigo donde hago la exportacion (para que puedas verlo), lo hago usando la funcion TOleAuto(), el problema esta en que no me deja convertir el formato de la columna oExcel := TOleAuto():New( "Excel.Application" ) oExcel:WorkBooks:Add() oHoja := oExcel:ActiveSheet() oHoja:Cells:Font:Name := "Arial" oHoja:Cells:Font:Size := 10 // TITLE oHoja:Cells( 1, 1 ):Value := "Mayor Analitico Centro de Costo" oHoja:Cells( 1, 1 ):Font:Size := 12 oHoja:Cells( 1, 1 ):Font:Bold := .T. // SUBTITLE oHoja:Cells( 2, 1 ):Value := "Datapro" oHoja:Cells( 2, 1 ):Font:Size := 12 oHoja:Cells( 2, 1 ):Font:Bold := .F. oTable:=OpenTable("SELECT * FROM DPCENCOS ") aCencos:=ASQL("SELECT CEN_CODIGO,CEN_DESCRI FROM DPCENCOS") IF !Empty(oFrm:cCenDes) .AND. !Empty(oFrm:cCenHas) cWhere:="CEN_CODIGO"+GetWhere(">=",oFrm:cCenDes) + " AND " +; "CEN_CODIGO"+GetWhere("<=",oFrm:cCenHas) oTable:=OpenTable("SELECT * FROM DPCENCOS WHERE "+cWhere) aCencos:=ASQL("SELECT CEN_CODIGO,CEN_DESCRI FROM DPCENCOS WHERE "+cWhere) ENDIF oFrm:oMeter:SetTotal(oTable:RecCount()) WHILE !oTable:Eof() oFrm:oMeter:Set(oTable:RecNo()) IF Empty(cSql) cSql:="SELECT CTA_CODIGO" ENDIF IF !Empty(csql) cSql:=cSql+",IF(CEN_CODIGO"+GetWhere("=",oTable:CEN_CODIGO)+",SUM(MOC_MONTO),0) AS '"+oTable:CEN_DESCRI+"'" ENDIF oTable:DbSkip() ENDDO cWhere:="WHERE MOC_FECHA"+GetWhere(">=",oFrm:dDesde) + " AND " +; " MOC_FECHA"+GetWhere("<=",oFrm:dHasta) IF !Empty(oFrm:cCodigo) .AND. !Empty(oFrm:cCodHas) cWhere:=cWhere + " AND MOC_CUENTA"+GetWhere(">=",oFrm:cCodigo) + " AND " +; " AND MOC_CUENTA"+GetWhere("<=",oFrm:cCodHas) ENDIF cSql:=cSql+" FROM DPASIENTOS INNER JOIN DPCTA ON CTA_CODIGO=MOC_CUENTA " +; "INNER JOIN DPCENCOS ON MOC_CENCOS=CEN_CODIGO " +cWhere+ "GROUP BY CTA_CODIGO" oExport:=OpenTable(cSql,.T.) oHoja:Cells( 3, 1 ):Value := "Cuenta" oHoja:Cells( 3, 1 ):Font:Size := 8 oHoja:Cells( 3, 1 ):Font:Bold := .F. nLine:=1 FOR I=1 TO LEN(aCencos) nLine++ cDescri:=STRTRAN(aCencos[I,2]," ","") oHoja:Cells( 3, nLine ):Value :=cDescri oHoja:Cells( 3, nLine ):Font:Size := 8 oHoja:Cells( 3, nLine ):Font:Bold := .F. NEXT I nLine:=3 WHILE !oExport:Eof() nLine++ AEVAL(oExport:aFields,{|a,n| oHoja:Cells( nLine, n ):Value := oExport:FieldGet(n),; oHoja:Cells( nLine, n ):Font:Size := 10,; oHoja:Cells( nLine, n ):Font:Bold := .F.}) oExport:DbSkip ENDDO oHoja := oExcel:ActiveSheet() oExcel:Visible := .T. oExcel:End()
Ayuda con Exportacion a Excel
Hugo Saludos, bienvenido al foro de fivetech, hugo es un programador de AdaptaPro. Agradecido de cualquier apoyo que puedas recibir por parte de los integrantes de este foro.
Ayuda con Exportacion a Excel
Hugo: Prueba dando formato a cada celda. [code=fw:ztz2wa2c]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span>nRow, nCol<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NumberFormat"</span>,<span style="color: #ff0000;">"#,###.00"</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:ztz2wa2c] Saludos
Ayuda con Exportacion a Excel
Intenta así: [code=fw:z7xa75ss]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A1:A20"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">NumberFormat</span>:=<span style="color: #ff0000;">"###,##0.00"</span><br />&nbsp;</div>[/code:z7xa75ss] Saludos, Adhemar
Ayuda con Exportacion a Excel
Amigos Indico el Numero de la columna para que el solo haga el incremento por la linea (dejo fijo la columna 3, y hace el incremento por linea), ya intente con el numberformat pero eso sirve solamente para convertir la columna a formato numerico (no para convertirla a formato texto)
Ayuda con Exportacion a Excel
Hugo: Para formato texto prueba con [code=fw:3ce07x3r]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span>nRow, nCol<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NumberFormat"</span>,<span style="color: #ff0000;">"@"</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3ce07x3r] Saludos
Ayuda con Exportacion a Excel
Armando No habia pensado en eso puede funcionar.. dejeme probar y le aviso
Ayuda con Exportacion a Excel
Aca algunos detalles que uso y me funcionan perfectamente, entre ellos el de formato de celda...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [code=fw:2zh1x0fa]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oExcel := 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;">"Excel.Application"</span> <span style="color: #000000;">&#41;</span><br />oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// ESPECIFICAS EN QUE HOJA QUIERES QUE SE INICIE Y TRABAJE, SE SELECCIONA Y LUEGO ACTIVA</span><br />oExcel:<span style="color: #000000;">Sheets</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Hoja2"</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; oHoja := oExcel:<span style="color: #000000;">ActiveSheet</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />oHoja := oExcel:<span style="color: #000000;">ActiveSheet</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// SINO ESPECIFICAS QUE HOJA, TOMARA POR DEFECTO AL HOJA1</span><br /><br />oHoja:<span style="color: #000000;">PageSetup</span>:<span style="color: #000000;">Orientation</span> := <span style="color: #000000;">2</span> <span style="color: #B900B9;">// 1=xlPortrai(vertical), 2=xlLandscape(horizontal)</span><br />oHoja:<span style="color: #000000;">Cells</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #0000ff;">Name</span> := <span style="color: #ff0000;">"Arial"</span> <span style="color: #B900B9;">// ESPECIFICA TIPO DE LETRA PARA TODA LA HOJA</span><br />oHoja:<span style="color: #000000;">Cells</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #0000ff;">Size</span> := <span style="color: #000000;">12</span> <span style="color: #B900B9;">// ESPECIFICA TAMANO DE LETRA PARA TODA LA HOJA</span><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>, nFor<span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #0000ff;">Size</span> := <span style="color: #000000;">16</span> <span style="color: #B900B9;">// DETERMINA TAMAÑO DE LETRA A USAR EN UNA CELDA</span><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">Bold</span> := .t. <span style="color: #B900B9;">// PONE EN NEGRITAS VALOR DE UNA CELDA</span><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">ColorIndex</span> := <span style="color: #000000;">5</span> <span style="color: #B900B9;">// COLOR PREESTABLECIDO DE EXCEL DEL CONTENIDO DE LA CELDA</span><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span>, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #0000ff;">Color</span> := RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// COLOR DEL CONTENIDO DE LA CELDA</span><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>, <span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Interior</span>:<span style="color: #000000;">ColorIndex</span> := <span style="color: #000000;">16</span> <span style="color: #B900B9;">// COLOR PREESTABLECIDO DE EXCEL DE LA CELDA</span><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span>, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Interior</span>:<span style="color: #0000ff;">Color</span> := RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">200</span>,<span style="color: #000000;">160</span>,<span style="color: #000000;">35</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// COLOR DE LA CELDA</span><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">NumberFormat</span> := <span style="color: #ff0000;">"$ ###,##0.00"</span>  <span style="color: #B900B9;">// FORMATEAR CELDA NUMERICA</span><br />oHoja:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">7</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">FormulaLocal</span>:=<span style="color: #ff0000;">"=SUMA(A1:A5)"</span> <span style="color: #B900B9;">// APLICAR FORMULA A UNA CELDA</span><br /><br />oHoja:<span style="color: #000000;">Shapes</span>:<span style="color: #000000;">AddPicture</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\C</span>ARPETA1<span style="color: #000000;">\C</span>ARPETA2<span style="color: #000000;">\B</span>ITMAPS<span style="color: #000000;">\f</span>irma.jpg"</span>, .t., .t., <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">60</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// AGREGA IMAGEN A EXCEL</span><br /><br />Hoja1.Shapes.AddPicture <span style="color: #ff0000;">"ruta:<span style="color: #000000;">\I</span>mg.jpg"</span>, msoFalse, msoCTrue, Hoja1.Range<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A1"</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000ff;">Left</span>, Hoja1.Range<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A1"</span><span style="color: #000000;">&#41;</span>.Top, Hoja1.Range<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A1"</span><span style="color: #000000;">&#41;</span>.Width, Hoja1.Range<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A1"</span><span style="color: #000000;">&#41;</span>.Height<br /><span style="color: #B900B9;">// esto lo que hace es colocar la imagen en la celda especifica, y la imagen toma el alto y ancho de la celda.</span><br /> </div>[/code:2zh1x0fa]
Ayuda con Exportacion a Excel
joseluisysturiz Gracias, pruebo y aviso Gracias por la colaboración
Ayuda con Exportacion a Excel
[quote="hugodatapro":zqn6ehl1]joseluisysturiz Gracias, pruebo y aviso Gracias por la colaboración[/quote:zqn6ehl1] Cualquier duda o algo nuevo que sepas, avisa para agregarlo a mi repertorio, esto casi todo lo he bajado y probado desde las macros de visual bicho y han funcionado de la misma manera con xh y fwh...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Ayuda con Exportacion a Excel
Gracias a todos por su colaboracion Disculpandome por la demora en responder la funcion que me funciono perfectamente fue esta oSheet:Cells(nRow, nCol):Set("NumberFormat","@") Gracias por el aporte Saludos
Ayuda con FILTER y MARIADB
Hola. Si [code=fw:183j2yo4]<div class="fw" id="{CB}" style="font-family: monospace;"> ::<span style="color: #000000;">vGets</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:= <span style="color: #ff0000;">"Ñ"</span></div>[/code:183j2yo4] Al hacer esto no me filtra [code=fw:183j2yo4]<div class="fw" id="{CB}" style="font-family: monospace;">   <br /><br />&nbsp; &nbsp; cWhere := <span style="color: #ff0000;">"a.apellido1 LIKE '%"</span> + AllTrim<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">vGets</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">01</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"%'"</span><br />&nbsp; &nbsp; ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">SetFilter</span><span style="color: #000000;">&#40;</span> cWhere<span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">Requery</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">oBrw</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   FWDBG ::<span style="color: #000000;">oQry</span>    <span style="color: #B900B9;">// me sigue mostrando los datos sin el filter aplicado.</span></div>[/code:183j2yo4] que hago mal?
Ayuda con FILTER y MARIADB
Try It: [code=fw:378n1cjx]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />cWhere := <span style="color: #ff0000;">"a.apellido1 LIKE '%"</span> + AllTrim<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">vGets</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">01</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"%'"</span><br />::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">Requery</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">SetFilter</span><span style="color: #000000;">&#40;</span> cWhere<span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">oBrw</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:378n1cjx] But, it's important to keep in mind Mr Rao words: "(b) [i:378n1cjx]Filter expression should be in DBF syntax and evaluated with DBF rules but not in Sql syntax. However, RowSet object tries its best to translate the Sql syntax to Dbf syntax in simple cases.[/i:378n1cjx]"
Ayuda con FILTER y MARIADB
no funciona. ya lo he probado.
Ayuda con FILTER y MARIADB
si pongo [code=fw:23clk8jn]<div class="fw" id="{CB}" style="font-family: monospace;">? ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">cFilter</span></div>[/code:23clk8jn] me devuelve una cadena vacia.
Ayuda con FILTER y MARIADB
I think it's happening because your filter expression is not in a DBF syntax. Please, try it: [code=fw:1mg80smk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cWhere := <span style="color: #ff0000;">" apellido1 =  [TESTE] "</span><br />::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">Requery</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">SetFilter</span><span style="color: #000000;">&#40;</span> cWhere<span style="color: #000000;">&#41;</span><br />? ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">cFilter</span><br />::<span style="color: #000000;">oBrw</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:1mg80smk]
Ayuda con FILTER y MARIADB
Esta funcionando, ahora pregunto y como seria la sintaxis utilizando LIKE %...%?
Ayuda con FILTER y MARIADB
I think in this case, you must change your SQL statement, because operator % doesn't exist in DBF syntax.
Ayuda con FILTER y MARIADB
Hola, yo hago asi: [code=fw:2f2unyax]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cProd := <span style="color: #ff0000;">"SELECT productos.cod_producto, productos.producto, productos.precio_venta1, productos.unidad, productos.saldo, productos.cod_proveedor, productos.cod_marca, productos.cod_grupo, productos.codbar1, productos.codbar2, productos.observaciones, proveedor.razon_social, marca.detalle AS marca, grupo.detalle AS grupo "</span><br />cProd += <span style="color: #ff0000;">"FROM productos "</span><br />cProd += <span style="color: #ff0000;">"LEFT JOIN proveedor ON productos.cod_proveedor = proveedor.ruc_dni "</span><br />cProd += <span style="color: #ff0000;">"LEFT JOIN marca ON productos.cod_marca = marca.codigo "</span><br />cProd += <span style="color: #ff0000;">"LEFT JOIN grupo ON productos.cod_grupo = grupo.codigo "</span><br />cProd += <span style="color: #ff0000;">"ORDER BY productos.producto"</span><br /><br /><span style="color: #B900B9;">/*<br />oProd := oCn:Call( "proc001" ) // lista de productos<br />oProd := oCn:Execute( "CALL proc001", .t. ) // lista de productos<br />oProd := oCn:RowSet( "CALL proc001", .t. )<br />xbrowse(oProd)<br />*/</span><br /><br />eProd := <span style="color: #000000;">&#123;</span>|| oProd := SQLQry<span style="color: #000000;">&#40;</span>oCn, oProd, cProd<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />EVAL<span style="color: #000000;">&#40;</span>eProd<span style="color: #000000;">&#41;</span><br />.....<br />...<br /><br />       <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oLbx ;<br />                   DATASOURCE oProd ;    <span style="color: #B900B9;">///                AUTOCOLS ;                AUTOSORT LINES ;</span><br />                   FASTEDIT LINES ;<br />                   <span style="color: #0000ff;">FONT</span> oFont1 ;  <span style="color: #B900B9;">//</span><br />                   <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">cSeek</span> := <span style="color: #ff0000;">""</span>, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, cObser := MyCampo<span style="color: #000000;">&#40;</span>oProd, <span style="color: #ff0000;">"observaciones"</span><span style="color: #000000;">&#41;</span>, oObser:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, RRefresh<span style="color: #000000;">&#40;</span>oDat<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">//, EVAL(eImg) ) ;</span><br />                   <span style="color: #0000ff;">ON</span> DBLCLICK <span style="color: #000000;">&#40;</span>lOk := .t., oDlg:<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;">ID</span> <span style="color: #000000;">121</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />                   oCol := oLbx:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                   oCol:<span style="color: #000000;">bStrData</span>      := <span style="color: #000000;">&#123;</span> || oProd:<span style="color: #000000;">producto</span> <span style="color: #000000;">&#125;</span><br />                   oCol:<span style="color: #000000;">cHeader</span>       := <span style="color: #ff0000;">"Producto/Servicio"</span><br />                   oCol:<span style="color: #000000;">bClrStd</span>       := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>oProd:<span style="color: #000000;">saldo</span> <= <span style="color: #000000;">0</span>, CLR_GRAY, CLR_BLUE<span style="color: #000000;">&#41;</span>, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />                   oCol:<span style="color: #000000;">nDataStrAlign</span> := AL_LEFT<br />                   oCol:<span style="color: #000000;">nWidth</span>        := <span style="color: #000000;">480</span><br />....<br />.....<br />       <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBusca1 ;<br />                <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Producto"</span> ;<br />                <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>FiltrarTx<span style="color: #000000;">&#40;</span>oProd, <span style="color: #000000;">1</span>, cFiltro<span style="color: #000000;">&#41;</span>, oLbx:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oLbx:<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 />                <span style="color: #0000ff;">ID</span> <span style="color: #000000;">112</span> <span style="color: #0000ff;">OF</span> oDlg<br />                oBusca1:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Filtrar por Nombre de Producto"</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> FiltrarTx<span style="color: #000000;">&#40;</span>oProd, nModo, cFiltro<span style="color: #000000;">&#41;</span><br />cFiltro := ALLTRIM<span style="color: #000000;">&#40;</span>cFiltro<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">If</span> nModo = <span style="color: #000000;">1</span><br />   oProd:<span style="color: #000000;">SetFilter</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"producto LIKE '%"</span> + cFiltro + <span style="color: #ff0000;">"%'"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">EndIf</span><br /><span style="color: #00C800;">IF</span> nModo = <span style="color: #000000;">2</span><br />   oProd:<span style="color: #000000;">SetFilter</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"codbar1 LIKE '%"</span> + cFiltro + <span style="color: #ff0000;">"%' OR observaciones LIKE '%"</span> + cFiltro + <span style="color: #ff0000;">"%'"</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>oProd<span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:2f2unyax]
Ayuda con FILTER y MARIADB
WIL! eso es conn MARIADB nativo con fwh? porque es la manera que yo intente utilizar y no funciona. No me filtra, de hecho hice el filtro, y lo visualice con el FWDBG y con el XBROWSER ::oQry y nada.
Ayuda con FILTER y MARIADB
Gossfancito,,, como estas,,, efectivamente es con MaiaDB nativo [code=fw:ykufv0q6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> ConetcaDB<span style="color: #000000;">&#40;</span>oCn, oDlg, oMsg<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">TRY</span><br />&nbsp; <span style="color: #00C800;">if</span> oCn == <span style="color: #00C800;">nil</span> .or. oCn:<span style="color: #000000;">Ping</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> = .F.<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span> oDlg <> <span style="color: #00C800;">Nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oMsg:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Conectando"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; &nbsp;oCn := Maria_Connect<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span>oApp:<span style="color: #000000;">cHost</span>, <span style="color: #ff0000;">""</span>, oApp:<span style="color: #000000;">cUser</span>, oApp:<span style="color: #000000;">cPass</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">endif</span><br />CATCH<br />&nbsp; oCn := <span style="color: #00C800;">Nil</span><br />END<br /><br /><span style="color: #00C800;">If</span> oCn = <span style="color: #00C800;">Nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oDlg <> <span style="color: #00C800;">NIl</span><br />&nbsp; &nbsp; &nbsp;oMsg:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No Existe Servicio en El Servidor"</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// + oApp:cHost)</span><br />&nbsp; &nbsp; &nbsp;oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;Inkey<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp;<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: #00C800;">EndIf</span><br />oCn:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SET SESSION wait_timeout = 86400;"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>oCn<span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:ykufv0q6]
Ayuda con FILTER y MARIADB
voy a meterle pata con eso, porque aca no me funciona algo debo estar haciendo mal. GRACIAS!
Ayuda con FILTER y MARIADB
Hola Gustavo: Si lo que sigues buscando es la Ñ, hay que ver que codificación tiene la tabla Prueba agregando a tu query lo siguiente: [code=fw:33tqe4ed]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> * <span style="color: #0000ff;">FROM</span> tu_tabla <span style="color: #0000ff;">WHERE</span> &nbsp;apellido1 <span style="color: #0000ff;">LIKE</span> <span style="color: #ff0000;">'%Ñ%'</span> COLLATE utf8_spanish_ci<br />&nbsp;</div>[/code:33tqe4ed]
Ayuda con FILTER y MARIADB
Hola. No es solo la Ñ, es que el setfilter en si no me funciona.
Ayuda con FILTER y MARIADB
Willi, No me estaría funcionando esto, lo puli hasta llegar a un simple: [code=fw:i5hn6lpz]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">SetFilter</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c6 LIKE '%"</span> + AllTrim<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">vGets</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">01</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"%'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">ReQuery</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oBrw</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;XBROWSER ::<span style="color: #000000;">oQry</span><br />&nbsp;</div>[/code:i5hn6lpz] y el xbrowser no me muestra los resultados esperados.
Ayuda con FILTER y MARIADB
Cuando miro ::oqry:clastsql el valor detornado no es el correspondiente al filter, sino al original. El original es: [code=fw:29mmeucn]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TEXT</span> into cSql<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Select</span><br />&nbsp; &nbsp; &nbsp; a.<span style="color: #0000ff;">id</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AS c0,<br />&nbsp; &nbsp; &nbsp; a.idusuario &nbsp; &nbsp; &nbsp;AS c1,<br />&nbsp; &nbsp; &nbsp; a.nombre1 &nbsp; &nbsp; &nbsp; &nbsp;AS c2,<br />&nbsp; &nbsp; &nbsp; a.nombre2 &nbsp; &nbsp; &nbsp; &nbsp;AS c3,<br />&nbsp; &nbsp; &nbsp; a.nombre3 &nbsp; &nbsp; &nbsp; &nbsp;AS c4,<br />&nbsp; &nbsp; &nbsp; a.nombre4 &nbsp; &nbsp; &nbsp; &nbsp;AS c5,<br />&nbsp; &nbsp; &nbsp; a.apellido1 &nbsp; &nbsp; &nbsp;AS c6,<br />&nbsp; &nbsp; &nbsp; a.apellido2 &nbsp; &nbsp; &nbsp;AS c7,<br />&nbsp; &nbsp; &nbsp; a.nacimiento &nbsp; &nbsp; AS c8,<br />&nbsp; &nbsp; &nbsp; a.fecha_nac &nbsp; &nbsp; &nbsp;AS c9,<br />&nbsp; &nbsp; &nbsp; a.direccion &nbsp; &nbsp; &nbsp;AS c10,<br />&nbsp; &nbsp; &nbsp; a.estadoactual &nbsp; AS c11,<br />&nbsp; &nbsp; &nbsp; b.<span style="color: #0000ff;">id</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AS c12,<br />&nbsp; &nbsp; &nbsp; b.usuario &nbsp; &nbsp; &nbsp; &nbsp;AS c13,<br />&nbsp; &nbsp; &nbsp; a.ida &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AS c14,<br />&nbsp; &nbsp; &nbsp; a.idb &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AS c15,<br />&nbsp; &nbsp; &nbsp; a.idc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AS c16,<br />&nbsp; &nbsp; &nbsp; c.idusuario &nbsp; &nbsp; &nbsp;AS c17,<br />&nbsp; &nbsp; &nbsp; c.idcarpeta &nbsp; &nbsp; &nbsp;AS c18<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FROM</span> tbcarpetas AS a<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Left</span> <span style="color: #0000ff;">OUTER</span> <span style="color: #0000ff;">JOIN</span> tbautoriza AS b <span style="color: #0000ff;">ON</span> a.idusuario = b.<span style="color: #0000ff;">id</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Left</span> <span style="color: #0000ff;">OUTER</span> <span style="color: #0000ff;">JOIN</span> tbasignado AS c <span style="color: #0000ff;">ON</span> a.<span style="color: #0000ff;">id</span> = c.idcarpeta<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHERE</span> c.idusuario = ?<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ORDER BY</span> a.apellido1<br />&nbsp; &nbsp; &nbsp; ENDTEXT<br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oQry</span> := ::<span style="color: #000000;">oCnx</span>:<span style="color: #000000;">QUERY</span><span style="color: #000000;">&#40;</span> cSql, <span style="color: #000000;">&#123;</span> ::<span style="color: #000000;">aUsuario</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:29mmeucn]
Ayuda con FILTER y MARIADB
Please note that FILTERS are totally different from WHERE clause. WHERE clause is used to read limited set of records/rows from the table on the server. FILTER is used to filter records/rows already read into the memory of the client PC (our PC) Filter clause does not know the field names in the main table. Filters operate on the field name ALIAS used in the query. Filters behave the same way like ADO. We request you to kindly read the documentation again to avoid such misunderstandings and loss of time. In your above example: [code=fw:1qxrzmtx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oQry:<span style="color: #000000;">SetFilter</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A6 LIKE '%"</span> + ALLTRIM<span style="color: #000000;">&#40;</span> vGets<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: #ff0000;">"%'"</span> <span style="color: #000000;">&#41;</span><br />oQry:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />XBROWSER oQry<br />&nbsp;</div>[/code:1qxrzmtx] DO NOT USE REQUERY() OR, much better to use DBF syntax. We can also use parameterized filters. Example: [code=fw:1qxrzmtx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oQry:<span style="color: #000000;">SetFilter</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"? $ UPPER(A6)"</span>, <span style="color: #000000;">&#123;</span> Upper<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> vGets<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> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />oQry:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />XBROWSER oQry<br /><span style="color: #B900B9;">// later</span><br />oQry:<span style="color: #000000;">Refilter</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ABC"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />oQry:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />XBROWSER oQry<br />&nbsp;</div>[/code:1qxrzmtx]
Ayuda con FILTER y MARIADB
muchas gracias! Indicas que primero se use el SETFILTER y luego el REFILTER, como es el método para saber si ya se usó el SETFILTER primero? a esto me refiero: [quote:3en9qrsf]if (::oQry:SETFILTER() != nil) ... [/quote:3en9qrsf] Gracias
Ayuda con FILTER y MARIADB
You are the programmer. You know if you previously used oRs:SetFilter() and what parameters you used for this filter, if any. Anyway oQry:Filter --> present filter expression oQry:aFiltParams --> array of parameters used, if any
Ayuda con FILTER y MARIADB
Goos: Tal vez te puede ayudar a re abrir la tabla con la cláusula WHERE Saludos
Ayuda con FILTER y MARIADB
[quote="Armando":90iszor8]Goos: Tal vez te puede ayudar a re abrir la tabla con la cláusula WHERE Saludos[/quote:90iszor8] Hola. Ya Willi me dio una mano y me di cuenta el error que cometía (REQUERY) despues de aplicar el FILTER no tuve que modificar nada mas de mi codigo, solo comentar el REQUERY() Gracias a todos!
Ayuda con Fast Report
Estimados amigos. Necesito saber la manera de colocar automáticamente la dirección email del destinatario cuando emito un reporte en fastreport. Dicha dirección la traigo en una variable desde la tabla de clientes. Por defecto, fastreport coloca el espacio de la dirección email en blanco. Lo que no quiero es no tener que escribir el mail del cliente ni hacer un "copy & paste" al momento de enviar. Me gustaría que al hacer click en el botón "enviar mail" aparezca ya la dirección email. [img:1c29jjdl]https&#58;//www&#46;datanet&#46;space/fw/monte&#46;jpg[/img:1c29jjdl] Creo que hay que actualizar la variable de fastreport asi: [b:1c29jjdl]email.Address = cEmail[/b:1c29jjdl] pero no tengo idea de como hacerlo.
Ayuda con Fast Report
Listo amigos, Ya lo consegui aqui mismo en el foro: [code=fw:1ti1uo41]<div class="fw" id="{CB}" style="font-family: monospace;">:<span style="color: #000000;">SetProperty</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"MailExport"</span>, <span style="color: #ff0000;">"Address"</span> , cEmail <span style="color: #000000;">&#41;</span></div>[/code:1ti1uo41] gracias a todos !
Ayuda con FastEdit
Hola amigos Como se pone PICTURE sin usar TRANSFOM ni oCol:cEditPicture:= "@!" en: oCol:bStrData := { || DC_NAME } Otra, en esta validación siempre me sale Codigo EXISTE / VACIO, al parecer graba el dato y luego lo busca no se donde esta la falla. [code=fw:3w05cq1p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;oCol:=oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">cEditPicture</span>:= <span style="color: #ff0000;">"@9 9999"</span> <br />&nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">bStrData</span>:= <span style="color: #000000;">&#123;</span> || DCODE <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br />&nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span>:= <span style="color: #ff0000;">"COD."</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">nEditType</span> := EDIT_GET<br />&nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">nWidth</span>:=<span style="color: #000000;">38</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">&#123;</span>|o, v, n | &nbsp;DEPCODE->DCODE:=v <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">bEditValid</span>:=<span style="color: #000000;">&#123;</span> | o | nOldRec:= DEPCODE-><span style="color: #000000;">&#40;</span> Recno<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, lExite:= DEPCODE-><span style="color: #000000;">&#40;</span> dBSeek<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,DEPCODE-><span style="color: #000000;">&#40;</span> dBGoTo<span style="color: #000000;">&#40;</span> nOldRec <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style="color: #000000;">&#40;</span> lExiste .or. EMPTY<span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span> v:<span style="color: #000000;">value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">&#40;</span>MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Codigo EXISTE / VACIO"</span>,<span style="color: #ff0000;">"Error..."</span> <span style="color: #000000;">&#41;</span>,.F.<span style="color: #000000;">&#41;</span>,.T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp; &nbsp; <br />&nbsp;</div>[/code:3w05cq1p] Gracias por la ayuda Saludos, Adhemar
Ayuda con Fastreport
Saludso al forum. Alguien me da una idea de como lo puedo hacer. Estoy generando la facturacion, requiero que cuando cambie de factura, el contador de pagina se inicialize en 1. y la otra pregunta como genera mas de una copia. Saludos
Ayuda con Fastreport
Respuesta a la 2da.pregunta, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> oFr: PrintOptions:SetCopies(nCopy)
Ayuda con Fastreport
Gracias si me funciono, tu sabes como lo podrian definir, el problema que tengo es que genero toda la facturacion a final del dia , y el numero de copias de un cliente a otro cambia es decier unos tiene 2 o par de 3 copias. se puede definir cuando hay cambio de factura de canie el numeor de copias, en que parte del reporte de cambiaria, Gracias
Ayuda con Fastreport
Podrias en los datos principales de la factura, crear un campo donde controles la cantidad de copia que lleva esa factura y le pasas ese campo como parametro al FR...digo...nose...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Ayuda con Fiveweb
Hola a todos. Saludos!! Puede alguien decirme donde encontrar documentacion para comenzar con FiveWeb ?? Tengo una aplicación Cliente-Servidor hecha con Fw+MySql que trata sobre una banca comunitaria. Quiero ofrecerle a la empresa la posibilidad que sus clientes (los ahorristas) puedan desde cualqueir parte accesar via web a los registros y consultar sus movimientos. No se nada de PHP y pensé en pagarle a alguien para que me haga el trabajo pero luego recordé que existe FiveWeb pero ciertamente solo conozco el nombre. No tengo idea como funciona, no se como se sube al server, en fin... nada de nada al respecto. Pienso que es lo que necesito pero no estoy seguro. Agradezco cualquier luz para comenzar el camino. Agradecido de antemano, como siempre.- Una abrazo.
Ayuda con Fiveweb
<!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/fiveweb/wiki/Home">https://bitbucket.org/fivetech/fiveweb/wiki/Home</a><!-- m -->
Ayuda con Folder
HOLA AL FORO YO NUEVAMENTE CON DILEMAS MIREN TENGO UN DIALOGO DENTRO UN FOLDER CON DOS PESTAÑAS,, EN CADA UNA DE ELLAS UNOS GET, BROWSE, ETC.. EL PROBLEMA ES Q CUANDO PINCHO LAS SOLAPAS DE LA SEGUNDA PESTAÑA DEL FOLDER SE EJECUTA LA INSTRUCCION VALID DEL PRIMER GET,, ES RARO ES,, AL PRINCIPIO LO HACIA EN LA PRIMERA PESTAÑA DEL FOLDER EN LA VALID DEL PRIMER GET (Ojo las dos pestañas del folder tienen los mismo objetos,,),, PERO LO SOLUCIONES DANDOLE EL SETFOCUS AL GET CON ON INIT del dialogo... la pregunta del millon como le digo que cuando pinche la segunda pestaña del folder el get que tiene el valid reciba el foco.. GRACIAS DE ANTEMANO Back to top Javier LLoris Joined: 31 Aug 2006 Posts: 8 Posted: Wed Sep 13, 2006 11:34 am Post subject: Ayuda con Folder -------------------------------------------------------------------------------- El folder tiene la clausula ON CHANGE que sirve para saber cuando se cambia de pestaña. Ejemplo: ON CHANGE ( IIf( oFolder:nOption == 1, oGet1:SetFocus(), oGet2:SetFocus() ) Esto posicionaria el foco en el objeto oGet1 si esta en la solapa 1 y si esta en otra en el objeto oGet2. Back to top Javier LLoris Joined: 31 Aug 2006 Posts: 8 Posted: Wed Sep 13, 2006 11:34 am Post subject: Ayuda con Folder -------------------------------------------------------------------------------- El folder tiene la clausula ON CHANGE que sirve para saber cuando se cambia de pestaña. Ejemplo: ON CHANGE ( IIf( oFolder:nOption == 1, oGet1:SetFocus(), oGet2:SetFocus() ) Esto posicionaria el foco en el objeto oGet1 si esta en la solapa 1 y si esta en otra en el objeto oGet2. Back to top A&C Joined: 19 Aug 2006 Posts: 11 Location: Chile Posted: Wed Sep 13, 2006 1:52 pm Post subject: AYUDA CON FOLDER -------------------------------------------------------------------------------- EL PROBLEMA DEBE SER OTRO APLIQUE LO Q DIJISTE Y AUNQUE DA EL FOCO AL GET,, AUN SE SIGUE EJECUTANDO EL VALID DEL GET,, Y NOSE PORQUE... SE SUPONE Q EL VALID SOLO DEBERIA VALIDAR LA SALIDA DEL GET VERDAD,, ALGUNA SUGERENCIA GRACIAS
Ayuda con Folder
Especifica versiones de fivewin, etc porque a mi nunca me ha pasado nunca. mandame a mi correo el fuente si quieres y lo pruebo yo. P.D Yo desde la primera version de fivewin 1.0 para evitar cosas raras como esas, cuando creo el dialogo ordeno los objetos en funcion del orden que supuestamente se ejecutaran. Un saludo
Ayuda con Folder
En el VALID del GET prueba a hacer oFolder:SetOption( 1 ) en caso de que no se cumpla la condición: ... GET ... VALID If( ! <Condicion>, ( oFolder:SetOption( 1 ), .f. ), .t. )
Ayuda con Folder
Gracias Javier ordene los objetos en el editor wors.... y funciono ahora esta bien GRACIAS
Ayuda con Folderex URGENTE
Amigos, buen dia. Es mi primera aplicacion que uso FOLDEREX, y se me ha presentado un problema de actualizacion de variables. Tengo 3 Paginas, las 2 Primeras Paginas tiene un encabezado con variables comunes que debieran actualizarse, las cuales son: - Rut_Pac4, Fec_Nac4, Eda_Pac4, Nom_Pacien4. La Pagina Nro 3, tiene un dialogo Ficha, donde se encuentran los datos generales del paciente. Lo que hace es que permite actaalizar los datos del maestro, utilizando la variable Rut_Pac, que se valida y va a un function a buscar datos almacenados y cargar la variables de ese dialog y de la misma forma, asigna estos datos a las variables definidas, para el encabezado. El problema es que, se actualizan los valores en la Pagina 3 y el encabezado en la Pagina 2, el encabezado de la Pagina 1, no se actualiza, aun siendo las mismas variables e iguales objetos de la Pagina 2. Cual es el error que estoy cometiendo? Muchas gracias y muchos saludos. Antonio Codigo: [code=fw:2vlbertd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />      **** PRIMERA PAGINA * EN ESTA NO SE ACTUALIZAN LOS VALORES <br />     <span style="color: #B900B9;">// Cabecera  Titulos</span><br />     @ <span style="color: #000000;">020</span>,<span style="color: #000000;">001</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Nro. Evaluacion"</span>     <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br />     @ <span style="color: #000000;">20</span>,<span style="color: #000000;">98</span>   <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha Eva."</span>               <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2  COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>  TRANSPARENT<br />   @ <span style="color: #000000;">020</span>,<span style="color: #000000;">190</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"R.u.t."</span>           <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2     COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br />   @ <span style="color: #000000;">020</span>,<span style="color: #000000;">305</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha Naci."</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>      <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>       TRANSPARENT<br />   @ <span style="color: #000000;">032</span>,<span style="color: #000000;">001</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Nombre Paciente"</span>          <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2     COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br />   @ <span style="color: #000000;">032</span>,<span style="color: #000000;">295</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Edad"</span>             <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>   <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br />     @ <span style="color: #000000;">032</span>,<span style="color: #000000;">382</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Años"</span>              <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>     <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br /><br />   @ <span style="color: #000000;">020</span>,<span style="color: #000000;">425</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"PROFESIONAL:"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>       <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">RIGHT</span>     TRANSPARENT   <span style="color: #0000ff;">ADJUST</span><br /><br />     <span style="color: #B900B9;">// Cabecera Datos</span><br />     @ <span style="color: #000000;">020</span>,<span style="color: #000000;">258</span> <span style="color: #0000ff;">SAY</span> oSayT1  <span style="color: #0000ff;">Prompt</span>  Rut_Pac4   <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">46</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>      <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>   <span style="color: #0000ff;">FONT</span> oFont2 BORDER<br />     @ <span style="color: #000000;">020</span>,<span style="color: #000000;">365</span> <span style="color: #0000ff;">SAY</span> oSayT2  <span style="color: #0000ff;">Prompt</span>  Fec_Nac4   <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">45</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>      <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>   <span style="color: #0000ff;">FONT</span> oFont2 BORDER<br />     @ <span style="color: #000000;">032</span>,<span style="color: #000000;">60</span>  <span style="color: #0000ff;">SAY</span> oSayT3  <span style="color: #0000ff;">Prompt</span> Nom_Pacien4 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">230</span>,<span style="color: #000000;">10</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>         <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>   <span style="color: #0000ff;">FONT</span> oFont2 BORDER<br />     @ <span style="color: #000000;">032</span>,<span style="color: #000000;">361</span> <span style="color: #0000ff;">SAY</span> oSayT4  <span style="color: #0000ff;">Prompt</span> Eda_Pac4   <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">15</span>,<span style="color: #000000;">10</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>               <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999"</span>    <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>   <span style="color: #0000ff;">FONT</span> oFont2 BORDER<br /><br /><br />       <br />      ******* SEGUNDA PAGINA  *** SOLO SE ACTUALIZAN AQUI LOS VALORES<br />     <span style="color: #B900B9;">// Cabecera  Titulos</span><br />     @ <span style="color: #000000;">020</span>,<span style="color: #000000;">001</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Nro. Evaluacion"</span>     <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br />     @ <span style="color: #000000;">20</span>,<span style="color: #000000;">98</span>   <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha Eva."</span>               <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2  COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>  TRANSPARENT<br />   @ <span style="color: #000000;">020</span>,<span style="color: #000000;">190</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"R.u.t."</span>           <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2     COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br />   @ <span style="color: #000000;">020</span>,<span style="color: #000000;">305</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha Naci."</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>      <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>       TRANSPARENT<br />   @ <span style="color: #000000;">032</span>,<span style="color: #000000;">001</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Nombre Paciente"</span>          <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2     COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br />   @ <span style="color: #000000;">032</span>,<span style="color: #000000;">295</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Edad"</span>             <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>   <span style="color: #0000ff;">RIGHT</span>   <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br />     @ <span style="color: #000000;">032</span>,<span style="color: #000000;">382</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Años"</span>              <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>     <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>      TRANSPARENT<br /><br />   @ <span style="color: #000000;">020</span>,<span style="color: #000000;">425</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"PROFESIONAL:"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>       <span style="color: #0000ff;">FONT</span> oFont2    COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">RIGHT</span>     TRANSPARENT   <span style="color: #0000ff;">ADJUST</span><br /><br />     <span style="color: #B900B9;">// Cabecera Datos</span><br />     @ <span style="color: #000000;">020</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">SAY</span> oSay1  <span style="color: #0000ff;">Prompt</span>  Fol_Eva1    <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">40</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>      <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"9999999999"</span>  <span style="color: #0000ff;">FONT</span> oFont2 BORDER<br />     @ <span style="color: #000000;">020</span>,<span style="color: #000000;">258</span> <span style="color: #0000ff;">SAY</span> oSayT1  <span style="color: #0000ff;">Prompt</span>  Rut_Pac4   <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">46</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>      <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>   <span style="color: #0000ff;">FONT</span> oFont2 BORDER<br />     @ <span style="color: #000000;">020</span>,<span style="color: #000000;">365</span> <span style="color: #0000ff;">SAY</span> oSayT2  <span style="color: #0000ff;">Prompt</span>  Fec_Nac4   <span style="color: #0000ff;">SIZE</span>  <span style="color: #000000;">45</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>      <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>   <span style="color: #0000ff;">FONT</span> oFont2 BORDER<br />     @ <span style="color: #000000;">032</span>,<span style="color: #000000;">60</span>  <span style="color: #0000ff;">SAY</span> oSayT3  <span style="color: #0000ff;">Prompt</span> Nom_Pacien4 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">230</span>,<span style="color: #000000;">10</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>         <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>   <span style="color: #0000ff;">FONT</span> oFont2 BORDER<br />     @ <span style="color: #000000;">032</span>,<span style="color: #000000;">361</span> <span style="color: #0000ff;">SAY</span> oSayT4  <span style="color: #0000ff;">Prompt</span> Eda_Pac4   <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">15</span>,<span style="color: #000000;">10</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>               <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999"</span>    <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>   <span style="color: #0000ff;">FONT</span> oFont2 BORDER<br /><br /><br />     *****TERCERA PAGINA<br /> <br />     **** AQUIAL DIGITAR EL RUT, EXTRAE LOS DATOS DESDE EL ARCHIVO FICHAS Y LOS MUESTRA EN TERCERA PANTALLA y DEBE ACTUALIZAR TITULOS EN PAG <span style="color: #000000;">1</span> y PAG <span style="color: #000000;">2</span><br /><br />   @ <span style="color: #000000;">080</span>,<span style="color: #000000;">170</span> <span style="color: #0000ff;">GET</span> oGetF1 <span style="color: #0000ff;">VAR</span> Rut_Pac1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">110</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@R ##.###.####!"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span>,<span style="color: #000000;">233</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #0000ff;">WHEN</span>  <span style="color: #000000;">&#40;</span> oGetF1:<span style="color: #000000;">oGet</span>:<span style="color: #0000ff;">Picture</span> := <span style="color: #ff0000;">"@KR #########!"</span>, .T. <span style="color: #000000;">&#41;</span>;<br />                          <span style="color: #0000ff;">VALID</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> VrutG<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span>oGetF1<span style="color: #000000;">&#125;</span>,Rut_Pac1<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>oGetF1:<span style="color: #000000;">oGet</span>:<span style="color: #0000ff;">Picture</span> := <span style="color: #ff0000;">"@R ##.###.####!"</span>,<span style="color: #000000;">&#40;</span>oGetF1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, Revi_Paci_Eva<span style="color: #000000;">&#40;</span>Rut_Pac1<span style="color: #000000;">&#41;</span>,oSay1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oSay2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oSay3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oSay4:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oSay5:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oSay3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, .t. <span style="color: #000000;">&#41;</span>, .f. <span style="color: #000000;">&#41;</span><br /><br /><br />    *** <span style="color: #00C800;">FUNCTION</span> PARA ASIGNAR DATOS A LAS VARIABLES<br />                    Nom_Pacien4:=Trim<span style="color: #000000;">&#40;</span>Nom_Pac<span style="color: #000000;">&#41;</span>+Spac<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>+Trim<span style="color: #000000;">&#40;</span>Ape_Pac<span style="color: #000000;">&#41;</span><br />                                Rut_Pac4:=Rut_Pac<br />                                Eda_Pac4:=Eda_Pac<br />                                Fec_Nac4:=Fec_Nac<br /><br />                                <br />                                oSay3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oSay4:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oSay5:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oSay6:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                                oSayT1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oSayT2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oSayT3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oSayT4:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:2vlbertd]
Ayuda con Folderex URGENTE
Asignale el nuevo valor con el métod SetText() [code=fw:z8jel29f]<div class="fw" id="{CB}" style="font-family: monospace;"><br />*** <span style="color: #00C800;">FUNCTION</span> PARA ASIGNAR DATOS A LAS VARIABLES<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Nom_Pacien4:=Trim<span style="color: #000000;">&#40;</span>Nom_Pac<span style="color: #000000;">&#41;</span>+Spac<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>+Trim<span style="color: #000000;">&#40;</span>Ape_Pac<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rut_Pac4:=Rut_Pac<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Eda_Pac4:=Eda_Pac<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fec_Nac4:=Fec_Nac<br />oSayT1:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>Rut_Pac4<span style="color: #000000;">&#41;</span><br />oSayT2:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>Fec_Nac4<span style="color: #000000;">&#41;</span><br />oSayT3:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>Nom_Pacien4<span style="color: #000000;">&#41;</span><br />oSayT4:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>Eda_Pac4<span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//.... etc.</span><br />&nbsp;</div>[/code:z8jel29f]
Ayuda con Folderex URGENTE
[quote="cmsoft":2ryo7e9w]Asignale el nuevo valor con el métod SetText() [code=fw:2ryo7e9w]<div class="fw" id="{CB}" style="font-family: monospace;"><br />*** <span style="color: #00C800;">FUNCTION</span> PARA ASIGNAR DATOS A LAS VARIABLES<br />                    Nom_Pacien4:=Trim<span style="color: #000000;">&#40;</span>Nom_Pac<span style="color: #000000;">&#41;</span>+Spac<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>+Trim<span style="color: #000000;">&#40;</span>Ape_Pac<span style="color: #000000;">&#41;</span><br />                                Rut_Pac4:=Rut_Pac<br />                                Eda_Pac4:=Eda_Pac<br />                                Fec_Nac4:=Fec_Nac<br />oSayT1:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>Rut_Pac4<span style="color: #000000;">&#41;</span><br />oSayT2:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>Fec_Nac4<span style="color: #000000;">&#41;</span><br />oSayT3:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>Nom_Pacien4<span style="color: #000000;">&#41;</span><br />oSayT4:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>Eda_Pac4<span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//.... etc.</span><br /> </div>[/code:2ryo7e9w][/quote:2ryo7e9w] Hola Amigo Cesar. Muchas gracias como siempre por tu ayuda. Ya había intentado con esta forma, aun así, copie tu código y nada, las variables no se actualizan en la Primera Pagina, lo intente con variables distintas por pagina y ahí funciona bien, se actualizan las variables en ambas pagina. Pensé que aun siendo variables definidas como Stactic, serian visibles en todas las paginas del Folderex, pero no entiendo, debe haber una explicación, no creo que sea algo en la definición de mi Folderex. Espero por comentarios, aun cuando estoy apremiado de tiempo. Saludos Antonio.
Ayuda con Folderex URGENTE
Mira, el habitual problema que presenta este tipo de implementaciones que comentas suele ser la visibilidad de las variables que se usan como objetos de los controles. Intento explicarme, si las variables [code=fw:yk6j4grc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oSayT1, oSayT2, oSayT3<br /> </div>[/code:yk6j4grc] son estáticas y por lo tanto visibles en todo el prg, o si el desarrollo de los contenidos de todos los dialogs, están en la misma function, cada vez que defines un objeto con la variable oSayT1, por ejemplo, este "matará" el objeto creado en la misma variable anteriormente, con lo que el resultado será que esa variable solo estará asignado a la ultima definicion ( en este caso entiendo que en la pagina 3 ) La solucion es sencilla: usar distintas variables para los controles que definas en cada pagina: oSayT11, oSayT12, oSayT13, por ejemplo, y en la página 2: oSayT21, oSayT22, oSayT23, y así sucesivamente. Espero haberme explicado y que haya dado con el problema que planteas Saludos
Ayuda con Folderex URGENTE
[quote="cnavarro":364qih2j]Mira, el habitual problema que presenta este tipo de implementaciones que comentas suele ser la visibilidad de las variables que se usan como objetos de los controles. Intento explicarme, si las variables [code=fw:364qih2j]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oSayT1, oSayT2, oSayT3<br /> </div>[/code:364qih2j] son estáticas y por lo tanto visibles en todo el prg, o si el desarrollo de los contenidos de todos los dialogs, están en la misma function, cada vez que defines un objeto con la variable oSayT1, por ejemplo, este "matará" el objeto creado en la misma variable anteriormente, con lo que el resultado será que esa variable solo estará asignado a la ultima definicion ( en este caso entiendo que en la pagina 3 ) La solucion es sencilla: usar distintas variables para los controles que definas en cada pagina: oSayT11, oSayT12, oSayT13, por ejemplo, y en la página 2: oSayT21, oSayT22, oSayT23, y así sucesivamente. Espero haberme explicado y que haya dado con el problema que planteas Saludos[/quote:364qih2j] Maestro Cristobal Muy buenas noches. Cómo siempre muy agradecido por su ayuda y enseñanza. Muchas gracias por tan clara explicación. Me confirma lo que había pensado, tal cómo le expliqué a Cesar, que la única solución q había encontrado era usar variables diferentes, así había logrado que los datos se actualizaran en todas las páginas. Más aún en mi caso q es la primera vez q uso FOLDEREX. Lo que si me quedó claro, que si le asigno los datos a estas variables comunes en las paginas, antes de entrar al FOLDEREX, si son visibles en todas las paginas, pero una vez estando dentro de ellas, realizó una actualización, de alguna de ellas por algún tipo, ya sea Get, Combobox, esta no se actualiza en las otras paginas que solo se muestran, mantienen datos antiguos. Esto lo publico como antecedentes, quizás solo me ha sucedido a mi. De qué hay algo en el FOLDEREX lo hay!! Lo complicado es que se presentan estos problemas cuando más apremia el tiempo para responder con los plazos y quedó atado de manos. Muchas gracias y muchos saludos. Antonio
Ayuda con Folderex URGENTE
Antonio, es imposible que usando las mismas variables en todas las páginas puedas hacer un refresh ( actualizar ) los objetos asociados a esas variables salvo las de la última página donde se hayan definido. Si usando variables distintas sigues teniendo ese problema, es algo que habrá que ver entonces A tu disposición quedo
Ayuda con Folderex URGENTE
Saludos, podrias defnir las VAR en donde defines el DLG y el folder o ponerlas como STATIC, yo creo un array por decir de nombre aVar[n] y aGet[n], y con esa las uso en todas las pestañas, y cuando hago en aGet[n]:REFRESH(), se actualizan todas las aVar[n] de las pestañas. no se si ese es tu problema o entendi mal...saludos... gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Ayuda con GETRESOURCES() - SOLUCIONADO -
Su Ayuda con el GETRESOURCES() , me queda activo el recurso. [code=fw:29lzbrfi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> get_planta  <span style="color: #0000ff;">VAR</span> m_planta   <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg23 <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">'##'</span> ;<br />          BITMAP <span style="color: #000000;">&#40;</span> GETRESOURCES<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2008</span> <span style="color: #000000;">&#41;</span> ;<br />          <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> DIS_PLAN<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,aContl,oQSet<span style="color: #000000;">&#91;</span>nQSet<span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">"kselle"</span>,<span style="color: #000000;">1</span>,m_planta,@m_planta,@get_planta,oSaT<span style="color: #000000;">&#41;</span>,;<br />          get_planta:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, get_planta:<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 />          <span style="color: #0000ff;">VALID</span> DIS_PLAN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,aContl,oQSet<span style="color: #000000;">&#91;</span>nQSet<span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">"kselle"</span>,<span style="color: #000000;">1</span>,m_planta,@m_planta,@get_planta,oSaT<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> get_tipsel  <span style="color: #0000ff;">VAR</span> m_tipsel   <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg23 <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"!"</span><br />  <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> get_nombre  <span style="color: #0000ff;">VAR</span> m_nombre   <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg23 <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@KS30"</span><br />  <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> get_valor   <span style="color: #0000ff;">VAR</span> m_valor    <span style="color: #0000ff;">ID</span> <span style="color: #000000;">104</span> <span style="color: #0000ff;">OF</span> oDlg23 <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999.99"</span><br />  <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> g_status <span style="color: #0000ff;">VAR</span> x_status <span style="color: #0000ff;">ID</span> <span style="color: #000000;">105</span> <span style="color: #0000ff;">OF</span> oDlg23      <br /><br /> </div>[/code:29lzbrfi] Cuando le digo modificar Desactivo los get get_planta y get_tipsel y me posiciono con un SetFocus() en get_nombre, efectivamente quedan desactivados los get, pero el recurso asignado al get planta si coloco el puntero en el me despiega la lista y deberia estar desactivo, mi pregun es no deberia quedar desactivo con solo desactivas el get_planta. Esto es si coloco el puntero en la posicion planta pero si estoy ubicado en nombre al darle enter hay si se desactiva el recurso del get_planta. Como podre soli¿ucionar este caso. Ver Imagen [img] <!-- m --><a class="postlink" href="http://imageshack.us/photo/my-images/695/dibujo22v.jpg/">http://imageshack.us/photo/my-images/695/dibujo22v.jpg/</a><!-- m --> [/img] [code=fw:29lzbrfi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   get_planta:<span style="color: #000000;">disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />   get_tipsel:<span style="color: #000000;">disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />  get_nombre:<span style="color: #000000;">enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <br />  get_valor:<span style="color: #000000;">enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <br />  g_status:<span style="color: #000000;">enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   get_nombre:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:29lzbrfi] Perdon ya encontre el error , cosas que pasan.
Ayuda con HBMK2
Saludos al forum Alguien me puede orientar , con make Lo hago asi asi Uno podia direccionar, donde estan los PRG donde dehjar los OBJ, y las librerias , como seria com HBMK2 [code=fw:oq9c3pdq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#Borland make sample, <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech Software <span style="color: #000000;">2005</span><span style="color: #000000;">-2009</span><br /><br />HBDIR=\harbour<br />BCDIR=\bcc582<br />FWDIR=\fwh<br />fprg =\v_xharb_v3<br /><br />#change these paths as needed<br />.path.OBJ = .\obj1<br />.path.PRG = .\lprg;.\funcs<br />.path.CH  = $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include<br />.path.C   = .\;.\lc<br />.path.rc  = .\<br /><br />HFLAG1 = /l /m /q /es2 /gc1<br />HCLAG1 = -c -tWM<br /><br />CINCLU =  $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include<br />CINCL1 =  $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include<br />OBJFIL =  .\obj1<br /><br />NOMLIB =  librub_h.lib<br />LIBFIL =  $<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\lib\Harb\$<span style="color: #000000;">&#40;</span>NOMLIB<span style="color: #000000;">&#41;</span><br /><br />DEFX=__HARBOUR__<br />DEXP=__EXPORT__<br /><br /><br />EXTLIBFILES =<br />DEFFILE = <br />HBFLAGS =  -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>HBDIR<span style="color: #000000;">&#41;</span>\lib <br /><br />RFLAGS = <br />LFLAGS = -L$<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\obj;$<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib;$<span style="color: #000000;">&#40;</span>HBDIR<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 /><br />#important: <span style="color: #000000;">Use</span> Uppercase <span style="color: #00C800;">for</span> filenames extensions, in the <span style="color: #00C800;">next</span> two rules!<br /><br />PRG =         \<br />PXP0010.PRG   \<br />PXP0012.PRG   \<br />PXP0014.PRG   \<br />PXP0016.PRG   \<br />PXPTABLA.PRG  \<br />PXPTABL1.PRG  \<br />CATATABLA.PRG  \<br />CATA0014.PRG   \<br />PXPBUTON.PRG  \<br />PXP0021.PRG   \<br />PXPutil.PRG   \<br />PXPBROW.PRG   \<br />PXPCALC.PRG   \<br />PXPDICT.PRG   \<br />PXPRWS.PRG    \<br />PXP0030.PRG  \ <br /><br /><br /><br /># errmsg.PRG  \ <br /># yesno2.PRG  \<br /># shadowb.PRG  \<br /># colorset.PRG \<br /># yesno.PRG  \<br /># ginkey.PRG  \<br /># colorpal.PRG \<br /># colors.PRG  \ <br /># blank4.PRG  \<br /># boxtitle.PRG \<br /># RAND.PRG  \<br /># saveenv.PRG \  <br /># savegets.PRG \<br /># reclock.PRG \ <br /># KALEID.PRG  <br /><br /># GRUMPATT fontload +shadebox; waiton.PRG  \<br /><br /><br />C =          \<br /><br /><br />PROJECT    : $<span style="color: #000000;">&#40;</span>NOMLIB<span style="color: #000000;">&#41;</span><br /><br />$<span style="color: #000000;">&#40;</span>NOMLIB<span style="color: #000000;">&#41;</span>  : $<span style="color: #000000;">&#40;</span>PRG:.PRG=.OBJ<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>C:.C=.OBJ<span style="color: #000000;">&#41;</span><br />  echo off<br />  del $<span style="color: #000000;">&#40;</span>OBJFIL<span style="color: #000000;">&#41;</span>\*.* /Q<br /><br />.PRG.OBJ:<br />  $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\bin\harbour $< $<span style="color: #000000;">&#40;</span>HFLAG1<span style="color: #000000;">&#41;</span> -D$<span style="color: #000000;">&#40;</span>DEXP<span style="color: #000000;">&#41;</span> -D$<span style="color: #000000;">&#40;</span>DEFX<span style="color: #000000;">&#41;</span> /O$<span style="color: #000000;">&#40;</span>OBJFIL<span style="color: #000000;">&#41;</span>\ /I$<span style="color: #000000;">&#40;</span>CINCLU<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HBFLAGS<span style="color: #000000;">&#41;</span> > comp.log<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 $<span style="color: #000000;">&#40;</span>HCLAG1<span style="color: #000000;">&#41;</span> -I$<span style="color: #000000;">&#40;</span>CINCL1<span style="color: #000000;">&#41;</span> -o$<span style="color: #000000;">&#40;</span>OBJFIL<span style="color: #000000;">&#41;</span>\$& $<span style="color: #000000;">&#40;</span>OBJFIL<span style="color: #000000;">&#41;</span>\$&.c<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\tlib $<span style="color: #000000;">&#40;</span>LIBFIL<span style="color: #000000;">&#41;</span> -+ $<span style="color: #000000;">&#40;</span>OBJFIL<span style="color: #000000;">&#41;</span>\$&.obj,,<br /><br />.C.OBJ:<br />  echo $<span style="color: #000000;">&#40;</span>HCLAG1<span style="color: #000000;">&#41;</span> -D$<span style="color: #000000;">&#40;</span>DEFX<span style="color: #000000;">&#41;</span> > tmp<br />  echo -I$<span style="color: #000000;">&#40;</span>CINCL1<span style="color: #000000;">&#41;</span> >> tmp<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 -o$<span style="color: #000000;">&#40;</span>OBJFIL<span style="color: #000000;">&#41;</span>\$& @tmp $<<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\tlib $<span style="color: #000000;">&#40;</span>LIBFIL<span style="color: #000000;">&#41;</span> -+ $<span style="color: #000000;">&#40;</span>OBJFIL<span style="color: #000000;">&#41;</span>\$&.obj,,<br />  del tmp<br /><br /><br /> </div>[/code:oq9c3pdq] Como Haria esto mismo con HmMK2, no se si esta bien pero no me funciona [code=fw:oq9c3pdq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br />-workdir=C:\Temp\loco<br />-incpaths=K:\v_xharb_v3\include<br />-po=C:\Temp\loco<br />-target=K:\v_xharb_v3\lprg<br /><br />-rebuild<br /><br /><br /><br />-olibrub_h.lib<br /><br />PXP0010.prg<br />PXP0012.prg<br />PXP0014.prg<br />PXP0016.prg<br />PXPTABLA.prg<br />PXPTABL1.prg<br />CATATABLA.prg<br />CATA0014.prg<br />PXPBUTON.prg<br />PXP0021.prg<br />PXPutil.prg<br />PXPBROW.prg<br /> </div>[/code:oq9c3pdq]
Ayuda con HBSSL
Hola, estaria necesitando ayuda con la libreria HBSSL. En argentina para trabajar con factura electronica hay que generar un ticket de acceso. Para generar este ticket de acceso se firma(codifica) un xml con un archivo .cert y un .key. Yo actualmente estoy llamando a openssl para hacer este proceso. De esta manera.... c:\openssl\bin\openssl smime -sign -in C:\TRA.xml -out TRA.tmp -signer CERT.crt -inkey CERT.KEY -outform DER -nodetach Esto me crea un archivo TRA.tmp firmado el cual luego lo envio por soap y asi sigo normalmente. Lo que estoy tratando de hacer es hacer esta "firma" directamente utilizando hbssl que se que tiene todas las funciones de openssl dentro. Como hago es la gran pregunta..... <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> Muchas gracias por cualquier ayuda que puedan aportarme. Diego.
Ayuda con HBSSL
Revisa este código por si te puede servir: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=33732&start=0&hilit=hbssl">viewtopic.php?f=6&t=33732&start=0&hilit=hbssl</a><!-- l -->
Ayuda con Hotkeys
Buenas... Desde un Dialog hago lo siguiente ... ACTIVATE DIALOG oDlg ; ON INIT ( oSelf:BarraFac() , ; oSelf:ActivaKeys() ) El metodo ::BarraFac() carga una barra de botones definidos con TSButtons; luego ::Activakeys() es un metodo que asigna procesos a teclas de funcion, segun una condición, de la siguiente manera: if ::lNueva ::aFunKeys[_F2] := SetKey( VK_F2, {|| ::aoBar[_BNewF]:KeyDown( VK_RETURN ) }) ; ::aoBar[_BNewF]:Show() SetKey( VK_F3, ::aFunKeys[_F3] ) ; ::aoBar[_BFactu]:Hide() ::aFunKeys[_F6] := SetKey( VK_F6, {|| ::aoBar[_BLista]:KeyDown( VK_RETURN ) }) ; ::aoBar[_BLista]:Show() else SetKey( VK_F2, ::aFunKeys[_F2] ) ; ::aoBar[_BNewF]:Hide() ::aFunKeys[_F3] := SetKey( VK_F3, {|| ::aoBar[_BFactu]:KeyDown( VK_RETURN ) }) ; ::aoBar[_BFactu]:Show() SetKey( VK_F6, ::aFunKeys[_F6] ) ; ::aoBar[_BLista]:Hide() end ::aoBar, como se observa, es un array de los objetos botones y según se cumpla la condición algunos se muestran y otros se ocultan, para que en el caso falso ocurra lo contrario. hasta aquí todo se ejecuta correctamente salvo que... cuando lanzo la app si pulso cualquiera de las teclas de funcion redefinidas, y visibles, no responde a la puslación, pero; si hago clic sobre cualquiera de los botones visibles, a posteriori puedo pulsar sobre cualquiera de las teclas de función para que respondan; o sea, evidentemente se están asignando luego de que se produzca el promer evento desde un boton de la barra de botones a través del clic de mouse. Espero me entiendan. Si es así pregunto: que debo hacer para que al desplegarse el Dialog de la app el usuario pueda usar las teclas redefinidas de primera instancia? Aclaro: Necesariamente ::ActivaKeys() debe estar despues de ::BarraFac porque es allí donde se asignan los objetos botones. muchas gracias Mario
Ayuda con Hotkeys
Mario, Prueba a darle el foco a uno de los botones desde la claúsula ON INIT del diálogo: ACTIVATE DIALOG oDlg ; ON INIT ..., oBoton1:SetFocus()
Ayuda con Hotkeys
gracias Antonio, fue la solución saludos
Ayuda con IDE
Fivewiners hola favor requiero de su ayuda... la cosa es que utilizaba el xmate para desarrollo.. de un momento a otro dejo de funcionar!! alguien me recomienda un IDE similiar para descargar.. por favor su ayuda... gracias...
Ayuda con IDE
Yo uso UEStudio para editar y te permite facilmente ejecutar un fichero batch desde él (buildh.bat) ó manejar un proyecto completo. En estos foros hemos hablado de él y explicado como configurarlo. Una vez configurado, es bastante amigable.
Ayuda con IDE
macato: Alguna vez me pasó algo similar, simplemente copié el .EXE nuevamente y listo. Saludos
Ayuda con Informes Web.
Llevo tiempo intentando hacer algo en programación web, las herramientas que utilizo son Dreamweaver 8 para HTML y winasp cómo servidor web. Hasta aquí más ó menos bien, el problema lo tengo por que no logro saber cómo hacer un informe con List & Label para que se genere y se visualicen los datos. Tengo un cacao importante con L & L, ya que su implementación me parece muy complicada. ¿Hay alguno de vosotros que utilice este generador de informes para ver si me puede ayudar?. ¿Sabéis de algún generador de informes para DBFs y sólo páginas HTM/HTML sencillo de aprender y utilizar para informes web?.
Ayuda con Informix
Hola amigos:Necesito desarrollar urgentemente una aplicación que tome datos de una base Informix, procese dichos datos, y los vuelva a escribir en la base original y en otras bases que creo a través de la aplicación a desarrollar.El asunto es que no tengo ni idea por dónde comenzar <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> Va a ser mi primer desarrollo con SQL así que necesito su generosa ayuda. Dispongo de 7 días para aprender lo que necesite e iniciar el desarrollo de la aplicación <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> 1.- Supongo que lo mejor es con ADORDD.2.- Me preguntan si el ejecutable se va a alojar en el servidor donde están las bases de datos o en cada equipo terminal. Supongo que lo mejor es que se aloje en el servidor. O nó ?3.- En general cualquier guía sobre Bases de Datos Relacionales, SQL. Informix y su instalación, etc., será muy bien venida. Y ojalá que sea para niños.Saludos y gracias anticipadas,Carlos Gallego
Ayuda con Informix
Nadie te respondió aqui, y te mareamos en el otro <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Ayuda con Informix
Cierto estamos divagando en el otro hilo y aqui nada.Veo que no tienes demasiado plazo, las prisas nunca son buenas, pero es lo que hay.Yo empezaria por conseguir un driver ADO para informix, instalarlo e intentar conectarte con la base de datos. Es el paso previo e indispensable para poder seguir.[url:3tqzl7qe]http&#58;//www&#46;datadirect&#46;com/support/getting_started/quick_start/ado_informix/index&#46;ssp[/url:3tqzl7qe]Aqui tienes algo de documentación.Para hacer la prueba de conexion, y saber cual es connection string que debes usar, aqui tienes un ejemplo.[url:3tqzl7qe]http&#58;//bielsys&#46;blogspot&#46;com/2007/11/ado-connectionstring&#46;html[/url:3tqzl7qe]
Ayuda con Informix
<!-- m --><a class="postlink" href="http://es.groups.yahoo.com/group/eagle1/?v=1&t=search&ch=web&pub=groups&sec=group&slk=1">http://es.groups.yahoo.com/group/eagle1 ... roup&slk=1</a><!-- m --> esta es la direccion de Manu Espósito (EAGLE1)
Ayuda con Informix
Angel, Biel, muchisimas gracias.Me pongo de cabeza a estudiar y manos a la bora. Con la maravillosa ayuda de ustedes estoy seguro de que lo lograré.Saludos,Carlos Gallego
Ayuda con Informix
Hola Biel:<< Veo que no tienes demasiado plazo, las prisas nunca son buenas, pero es lo que hay >>Conseguí 15 días más <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> . El cliente, compasivo, descubrió que estoy perdido en la instalación de Informix y me dió quince días más.El asunto es que tengo que montarlo en mi equipo de desarrollo para hacer las pruebas correspondientes de que si se está accediendo a la base de datos, los datos procesados se guardan adecuadamente, etc. Esto no puedo hacerlo en los equipos del cliente. Por lo tanto, tengo que instalar Informix en mi equipo de sarrollo.Te cuento que sigo perdido.Bajé del link que me indicaste el driver ODBC para Informix. Bajé también el Client SDK 3.5 y Informix Dynamic Server 11.50 (IDS). Es todo lo que conseguí.Como indiqué anteriormente, mi conocimiento es CERO. Por tanteo, primero instalé el driver ODBC. Bien.Luego, instalé el servidor (IDS), instala, pero me bloque totalmente la conexión a Internet (ni idea porqué). Lo desinstalo e Internet vuelve a funcionar. Tengo banda ancha 2 Mb. Conexión mediante concentrador y Wireless.Como puedes ver, ando perdido por completo, de manera que alguna guía, como para dummyes, será muy bienvenidaQué extensión tienen las bases creadas con Informix ?Dónde consigo el driver ADO y cómo lo instalo?etc., etc., etc.Puedo molestarte directamente a tu correo ? Cuál es ? No encuentro el famoso botón de Antonio.Muchas gracias anticipadas y un abrazo,Carlos Gallego
Ayuda con Informix - Disculpen que insista
Hola amigos: Necesito desarrollar urgentemente una aplicación que tome datos de una base Informix, procese dichos datos, y los vuelva a escribir en la base original y en otras bases que creo a través de la aplicación a desarrollar. El asunto es que no tengo ni idea por dónde comenzar Va a ser mi primer desarrollo con SQL así que necesito su generosa ayuda. Dispongo de 7 días para aprender lo que necesite e iniciar el desarrollo de la aplicación 1.- Supongo que lo mejor es con ADORDD. 2.- Me preguntan si el ejecutable se va a alojar en el servidor donde están las bases de datos o en cada equipo terminal. Supongo que lo mejor es que se aloje en el servidor. O nó ? 3.- En general cualquier guía sobre Bases de Datos Relacionales, SQL. Informix y su instalación, etc., será muy bien venida. Y ojalá que sea para niños. Saludos y gracias anticipadas, Carlos Gallego
Ayuda con Informix - Disculpen que insista
No veo tu dirección de correo para enviarte información.
Ayuda con Informix - Disculpen que insista
Alfredo,En su botón de "email" está <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Si puedieses compartir con nosotros esta información te estaríamos muy agradecidos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ayuda con Informix - Disculpen que insista
Alfredo,<!-- e --><a href="mailto:cgallegoa@mastersoft3000.com">cgallegoa@mastersoft3000.com</a><!-- e -->Gracias y saludos,Carlos Gallego
Ayuda con Informix - Disculpen que insista
[quote="Antonio Linares":ydqoey87]Si puedieses compartir con nosotros esta información te estaríamos muy agradecidos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:ydqoey87]Hola Alfredo, Antonio y demás gurús:Yo también estaré muy agradecido, de hecho si no logro migrar mis sistemas de xbase a bases de datos relacionales en un tiempo razonablemente corto, tendré que migrar a otro lenguaje de programación, cosa que me entristecería muchísimo.Se había sugerido la apertura de un foro para sql y no se le ha dado seguimiento. Yo sugiero incluso ir un poco más allá generando una recopilación de ejemplos funcionales comenzando con el "Hello World" y siguiendo con las contribuciones de nuestros generosos amigos expertos. Sinceramente pienso de manera muy personal que las soluciones FWH/SQL's pueden ser el futuro de FiveWin, de otra forma quedarán solamente los viejos programadores como yo, jugando a emular aplicaciones profesionales.Sorry por mi exabrupto depresivo <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->Manuel Mercado.
Ayuda con Informix - Disculpen que insista
Me atrevo... (y no veo el botón 'email').Hasta hoy me he preocupado por tener una aplicación robusta, funcional y competitiva desarrollada en xBase. Creo que lo estoy logrando.Siempre soñé que algún día llegaría una herramienta que permitiera llevar mis aplicaciones de Clipper al ambiente Windows y hoy la tenemos con FiveWin, también esperé a que llegara una que me permitiera acceder a SQL y también ha llegado con SQLRDD.SQLRDD se comporta como cualquier otro RDD (DBFNTX, DBFCDX, SIXNSX) respeta absolutamente todo el código xBase y permite el acceso a los manejadores de base de datos relacionales mas comunes.En mi caso he trabajado con MySQL, SQL Server y PostgreSQL sin más cambios que establecer la conexión; no he probado otros pero promete trabajar de la misma forma con Oracle, Informix, FireBird, etc.Tal vez el mayor inconveniente es que hay que pagar por él. Pero creo que este RDD vale mas de lo que cuesta (y no es publicidad). En red local se comporta de maravilla, el acceso remoto dependerá en mucho del ancho de banda y del servidor. Tambien influye la forma de programar, hay quien abusa de las bondades de xBase para buscar, filtrar o hacer recorridos inutiles de toda la información.Pueden descargar este documento en donde explico como iniciar: <!-- m --><a class="postlink" href="http://www.despachoarteaga.com.mx/rc-sql.doc">http://www.despachoarteaga.com.mx/rc-sql.doc</a><!-- m --> Y si desean hacer pruebas contáctenme y se conectarán a mi equipo (cuando este en línea y de buen humor).
Ayuda con Informix - Disculpen que insista
A mí también se me perdió el botón 'email'Amigos, ALERTAAAAAAAAAAAAAAAAAAAAA <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->Los expertos en bases de datos relacionales a ponerse las pilassssss. Rápidamente a preparar manuales, guías, instructivos, ejemplos, foros, lo que sea, pero no puede permitirse que se nos vaya un maestro de la categoría de Manuel. Ya son muchos los maestros que han desertado de este maravilloso grupo. Y son precisamente los que más saben , los que han sido un pilar enorme y permanante para los que están empezando o para los que no tenemos su capacidad como programadores geniales. La permanencia de los grandes maestros como usuarios de FiveWin, es una garantía de que la herramienta tiene un sólido futuro. Si con su amplio conocimiento, visión y experiencia, no ven necesidad de cambiar, los demás, aprendices y medianos, nos sentimos confiados y ponemos todos los huevos en el canasto FiveWin.Estoy seguro que en aquellos aciagos días en que tuvimos que migrar del simple y super descomplicado DOS a Windows todos nos planteamos lo misma pregunta: Y ahora, cuál lenguaje aprendemos ? Y todavía hay algunos que se encuentran en dicha disyuntiva. Afortunadamente apareció en el cielo Antonio Linares con su maravilloso FiveWin. La mayoría fuimos observando con un poco de paciencia para ver cómo evolucionaba y cuando vimos la participación activa de algunos genios de la programación sentimos que estábamos salvados. Con poco esfuerzo podríamos enrumbarnos a Windows 16 bits y luego 32. Qué maravilla. Si los buenos creen y ven futuro en FiveWin, pues ni pensarlo, esa es la opción. Y no nos equivocamos.Pero cómo se sentirán quienes se la han jugado con FiveWin, confiados en que si los grandes le apuestan a la herramienta, los demás podemos seguirlos a ojos cerrados, y de pronto ven que algunos de sus guías comienzan a buscar nuevos horizontes. Se preguntarán, es el cambio por el cambio ? O están viendo falencias en la herramienta y pocas esperanzas de que dichas falencias sean resueltas en el futuro ? O circunstancias especialers los obligan a cambiar ?Cualquiera que fuere la causa, a muchos les causará desaliento. Si los fuertes se van, los menos fuertes comienzan a precuparse y a cuestionarse.En lo que a mí respecta, un humilde programador, me quedaré hasta el fín con FiveWin. Llámenme cómodo, o conformista, o como quieran, pero es mi decisión. Claro que sería muy feliz si tuviera una buena clase TExplorerBar, ó un SQLRDD gratuito o no tan caro como el de xHarbour.com (US $598 o US $695 para linux), ó un buen generador de reportes, ó un IDE para aquellos fanáticos (no me hace falta). Todavía creo en FiveWin y en Antonio. Por eso, metí todos los huevos en la cesta, le puse llave y tiré la llave <!-- s:evil: --><img src="{SMILIES_PATH}/icon_evil.gif" alt=":evil:" title="Evil or Very Mad" /><!-- s:evil: --> , y entre tropiezo y tropiezo he ido saliendo adelante con FiveWin, aunque casi pierdo hasta la cesta con tanto esfuerzo. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Antonio, es hora de preparar una estrategia de emergencia, no hay que confiarse.A mi me toca, obligado, meterme de cabeza en bases de datos relacionales. O hago el cambio, o comienzo a perder clientes y cierro la empresa. Se que me espera un camino duro y de trasnochos, pero confío en que lo avanzaré. Creo que es más facil hacer los cambios que tengamos que hacer en las aplicaciones que ya tenemos desarrolladas, que comenzar de cero desarrollando en otro lenguaje o herramienta, por supuesto después de un largo período de aprendizaje.Así que Maestro Manuel, ni de broma lances esos sustos. Además, tengo esperanza en que el Maestro Antonio Linares no nos deje solos, y que al contrario, atienda nuestra dudas y solicitudes y vaya llevando a FiveWin hacia adelante, no importa si no va a la par de .NET o lo que sea (Claro que tampoco tan atrás, vamos). En todo caso, yo ya le puse velones, le arme un altar y le rezo todos los días a san Antonio (Linares)Ahí les dejo la reflexión y espero que los que no hayan metido los huevos en el canasto no me los lancen y si me los lanzan que sea suaaaave. <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Saludos,Carlos Gallego
Ayuda con Informix - Disculpen que insista
Este es el botón email:[url=http&#58;//imageshack&#46;us:9xzllj92][img:9xzllj92]http&#58;//img110&#46;imageshack&#46;us/img110/5440/iconemailkm2&#46;gif[/img:9xzllj92][/url:9xzllj92]Tal vez solo lo vea yo como administrador del foro... <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
Ayuda con Informix - Disculpen que insista
Carlos, Alfredo,Si el SQLRDD es tan necesario, y caro, entonces podriamos construir uno open source que sea equivalente, del mismo modo que hicimos con el ADORDD <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ayuda con Informix - Disculpen que insista
El boton se ve, siempre y cuando se tenga definido el e-mail en el perfil.El tema SQL, yo entiendo que no depende en gran medida de FW ni de Harbour. Tanto FW como Harbour nos brindan las herramientas necesarias para poder desarrollar aplicaciones C/S con SQL.Bueno realmente no solo las necesarias, sino más, pues con ADORDD y alguna otra aportación que hay en el foro (AdoBase de Adolfo Lagos) nos permiten usar bases de datos relacionales, sin demasiados traumas ni cambios en nuestra programación. Otro camino es el ADO puro y duro, que seguramente sea el que nos permita mas versatilidad y eficiencia.Desde mi punto de vista los pilares de una buena aplicación, son el diseño de la base de datos, eso nos lleva a que debieramos documentarnos primero sobre el modelo relacional (E/R) y ser capaces de diseñar y normalizar una base de datos. Deberiamos elegir un programa (fopen source o freeware a ser posible), que nos permita diseñar nuestras bases de datos, y nos genere los scripts necesarios para mantener nuestra base de datos en el Gestor que hayamos elegido (MySQl, PostgrSQL,...).Aunque no es estrictamente necesario, para que nuestro diseño fuera eficiente deberiamos incluir disparadores y procedimientos almacenados.Una vez tengamos un buen diseño de base de datos , debemos manejar y recuperar esos datos de una forma eficiente, para ello contamos con SQL. SQL basico (select, delte,WHERE ...) es muy sencillo, pero debieramos preocuparnos de manejar con soltura consultas que incluyan JOINS (inner outter), select con subselects,relaciones con subrelaciones anidadas,...Se me olvidaba, no menos importante debeis ser capaces de manejar y gesttionar el motor de base de datos que hayas decidido usar(altas de usuario, permisos, replicaciones, ...)No pretendo asustar a nadie, pero creo que lo que realmente se encuentra mucha gente al intentar dar el salto a motores de base de datos relacionales usando SQL, es una laguna formativa, que dificilmente se puede suplir con mensajes de ayuda en el foro.Esto os lo encontrareis aqui, y en cualquier lenguaje al que podais migrar. La salida facil usar un RDD, no es la mejor, pero conseguireis migrar las aplicaciones y seguir programando al viejo estilo DBF.Para migrar aplicativos que estan funcionando con fichero DBF, creo que lo mejor es ir a un RDD que permita acceso a BD relacionales.Usar ADO, lo dejaria para aplicaciones nuevas, con diseño de bases de datos nuevas, y por supuesto documentaros (libros aritculos, etc) la red esta llena de documentacion sobre SQL, ADO, y gestores de base de datos.Y por supuesto aqui en el foro encontrareis mucha informacion y gente que estara dispuesta a daros un mano.
Ayuda con Informix - Disculpen que insista
Hola Biel:Como siempre, bienvenida tu participación.[quote="Biel EA6DD":muwmxa50]El tema SQL, yo entiendo que no depende en gran medida de FW ni de Harbour. Tanto FW como Harbour nos brindan las herramientas necesarias para poder desarrollar aplicaciones C/S con SQL.[/quote:muwmxa50]Algunos lo saben y otros lo suponemos pero lo que yo, y creo que muchos otros como yo, quisieramos saber es donde están documentadas las herramientas que mencionas. Nos hemos acostumbrado a hacer las cosas practicando la prueba y el error dependiendo casi totalmente de los ejemplos de FiveTech y de la buena voluntad de compañeros como tú avanzados en cada materia que nos ayudan a despejar dudas y nos proponen soluciones completas o parcialmente aceptables. Así ha funcionado y no me quejo, hasta ahora he conseguido desarrollar practicamente todo lo que he necesitado para mis aplicaciones, pero....... [quote="Biel EA6DD":muwmxa50]Bueno realmente no solo las necesarias, sino más, pues con ADORDD y alguna otra aportación que hay en el foro (AdoBase de Adolfo Lagos) nos permiten usar bases de datos relacionales, sin demasiados traumas ni cambios en nuestra programación.[/quote:muwmxa50]Insisto en la falta de documentación, incluso analizando los hilos donde se tratan estas 2 herramientas, nos encontramos con soluciones inconclusas donde no se llega a establecer con claridad el 1, 2 3 de su funcionamiento. Quisiera saber donde puedo encontrar ejemplos que podamos hacer funcionar a la primera, de eso trata mi requerimiento, de la recopilación de ejemplos funcionales. Yo creo que bien valdría la pena que Antonio o alguien más, si estuviera dentro de sus posibilidades, habilitara un equipo dedicado donde se pudieran ejecutar los ejemplos. [quote="Biel EA6DD":muwmxa50]Otro camino es el ADO puro y duro, que seguramente sea el que nos permita mas versatilidad y eficiencia. Desde mi punto de vista los pilares de una buena aplicación, son el diseño de la base de datos, eso nos lleva a que debieramos documentarnos primero sobre el modelo relacional (E/R) y ser capaces de diseñar y normalizar una base de datos.[/quote:muwmxa50]Es responsabilidad de cada quien el aprendizaje de los conceptos relacionados con la programación, eso lo sabemos y no pedimos (al menos yo), capacitación conceptual, el problema es la falta de documentación de los alcances y capacidades de las herramientas FWH/(x)Harbour/SQL. [quote="Biel EA6DD":muwmxa50]No pretendo asustar a nadie, pero creo que lo que realmente se encuentra mucha gente al intentar dar el salto a motores de base de datos relacionales usando SQL, es una laguna formativa, que dificilmente se puede suplir con mensajes de ayuda en el foro.[/quote:muwmxa50]Insisto en que no pretendo clases gratuitas de programación, lo unico que respetuosamente solicito es documentación acerca de las herramientas que me permitan solucionar problemas referentes al manejo de bases de datos relacionales con los lenguajes de programación FiveWin/Harbour. Como sabemos que no existe, entonces acudo como siempre al soporte de Antonio y de los compañeros expertos que voluntariamente estén dispuestos a ayudar. [quote="Biel EA6DD":muwmxa50]Y por supuesto aqui en el foro encontrareis mucha informacion y gente que estara dispuesta a daros un mano.[/quote:muwmxa50]Eso es todo que necesitamos Biel, muchas gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> .Un abrazo.Manuel Mercado
Ayuda con Informix - Disculpen que insista
Antonio... colegas...Tambien me uno al "clamor del pueblo" de crear un foro SQL. donde poder coordinar todos nuestros esfuerzos para no "quedarnos" atras. Personalmente he hecho mucha investigacion a proposito de mi clase ( ADOBASE ) y me he encontrado con situaciones mas o menos CLARAS.- IMPOSIBLE pensar que con un mismo codigo vas a sacar provecho de cualquier RDBMS, las diferencias entre ellos por ej MYSQL y SQL Server, hacen que esto sea imposible. las potenciabilidades de Mysql las tiene en el uso exclusivo de SUS propias caracteristicas, asi como tambien lo hace SQL SERVER, Oracle etc etc. YO intente hacer eso con ADOBASE y me desgaste en el camino por hacerlo compatible con cualquiera de ellos. Al final solo logre tenerlo para MYSQL y en un 80 % libre de bugs. Eso me involucraria hacer una CLASE ADOBASE por cada RDBMS que exista, y ni el tiempo ni los conocimientos me dan para mas, por eso lo entregaba completo, para encontrar ayuda de alguien mas avezado que yo, de hecho solo 2 personas de este foro me han aportado con codigo ( muchisimas gracias a ellos )-Dejemosnos de bobadas. Migrar de DBF a SQL es un trabajo bastante mas completo que "clonar" nuestras dbf's en tablas dentro de algun motor SQL. DISEÑO... FALTA DISEÑO... de tablas, claves, indices, relaciones, disparadores etc etc. Si vamos a usar SQL.... USEMOSLO...- Seamos PROFESIONALES... busquemos informacion, documentemos lo que nos resulto, el tiempo "gastado" es solo una pequeña inversion de lo que podemos recuperar con estas poderosas herramientas. Por nuevos clientes, por mas posibilidades de nuestros programas, por velocidad, seguridad etc etc.- y por ultimo... aqui tenemos un recurso muy importante (este foro ) y no solo porque usamos FIVEWIN, sino porque aqui hay respuestas para casi todos los tipos de dudas ( miremos los off topic ) relacionados a nuestras profesiones, hay clases, funciones, trozos de codigo, manuales o instrucciones de uso ( personalmente he aportado con algunos ), hay voluntad de ayudar .. y eso es invaluable.Asi que.. mis sugerencias.-Crear Foro de SQL ( Multilenguaje )-Crear un Repositorio de funciones, codigo y manuales relacionados con SQL-Si alguien puede hacerlo, compartir alguna base de datos (Mysql, PostGress) publica para compartir accesos entre los que quieran hacer pruebas.-Tener un coordinador de estas posibilidades ( para dejar a Antonio dedicado exclusivamente a "potenciar" FWH ), algo como un moderador.Eso...My 2.5 cents.
Ayuda con Informix - Disculpen que insista
Adolfo,totalmente de acuerdo contigo.Tengo en lo particular, 2 aplicaciones totalmente en FWH/xHarbour/TMYsql, funcionando sin problemas, desde hace 1 año.Me ha tocado leer, dar vueltas, releer, investigar, trasnochar, googlear, etc, etc, pero con muchos frutos y soluciones.Todo eso lo he hecho con inversión de tiempo en la investigación, pero mis satisfacciones han sido muchas.Comparto la idea de tener un foro SQL para tener información de los gurues de forma concentrada.mi humilde opinión
Ayuda con Informix - Disculpen que insista
Prueben con 'Eagle', a mi me ha ido de maravilla, aunque no es posible migrar programas de xbase a sql sin tener que cambiar codigo ya que la idiosincracia del acceso a la información no lo permite,La razón que yo utilizo 'Eagle', es que me permiten abrir varias bases de datos simultánemente, condición necesaria para los sistemas que estamos desarrollando.Por Ejem:Una base de datos 'DatosBase'y Otra: 'Empresas'
Ayuda con Informix - Disculpen que insista
[quote="ADBLANCO":jse5srav]Prueben con 'Eagle', a mi me ha ido de maravilla, aunque no es posible migrar programas de xbase a sql sin tener que cambiar codigo ya que la idiosincracia del acceso a la información no lo permite, La razón que yo utilizo 'Eagle', es que me permiten abrir varias bases de datos simultánemente, condición necesaria para los sistemas que estamos desarrollando. Por Ejem: Una base de datos 'DatosBase' y Otra: 'Empresas'[/quote:jse5srav]De igual manera se puede con la tmysql, de hecho, creo que con todas las opciones que hay en este momento se puede, es cuestión de investigarle un poquillo.saludos
Ayuda con Informix - Disculpen que insista
Bueno, Pero ya me embarque en esta!, De todas formas, les lanzo un ejemplo de coneccion:static function CheckConnection() local cHost :="194.187.0.1" local cUser :="superv1" local cPassword :="adsistem" cDtBase :="base_datos_hcm" cDtComun :="BDComun" // Creamos el objeto "connexion" y // Nos conectamos al servidor oMySQL:=TMSConnect():New() oMySQL:Connect( cHost, cUser, cPassword) if !oMySql:lConnected MsgInfo( "No hay conexion con el servidor", "Operación Cancelada" ) return( .F. ) endif // Creamos un objeto DataBase y // Ponemos por defecto el objeto DataBase *USE DATABASE oDtBase NAME cDbName OF oMySQL // equivale a : oDtBase:= TMSDataBase():new( oMysql, cDtBase,.t.) if !oDtBase:Used() if oMySql:ExistDb( cDtBase ) MsgInfo( "No se puede conectar, Pero Existe:" + cDtBase, "Operación Cancelada" ) else MsgInfo( "No se puede conectar a la BD: " + cDtBase, "Operación Cancelada" ) endif return( .F. ) endif oDtComun:= TMSDataBase():new( oMysql, cDTComun,.t.) if !oDtComun:Used() if oMySql:ExistDb( cDtComun ) MsgInfo( "No se puede conectar, Pero Existe:" + cDtComun, "Operación Cancelada" ) else MsgInfo( "No se puede conectar a la BD: " + cDtComun, "Operación Cancelada" ) endif return( .F. ) endif return (.t.)[/code]
Ayuda con Informix - Disculpen que insista
Y aqui otro ejemplo // bloque para efectuar el query bSeek:={| cSeek | 'SELECT '+cDTBase+'.DtsRamo.IntIdDtsRamo,'+; cDTBase+'.DtsRamo.VchDescripcion,'+; cDTBase+'.DtsRamo.TinStatus'+; ' FROM '+cDTBase+'.DtsRamo '+; ' WHERE '+cDTBase+'.DtsRamo.TinStatus <> 0 AND '+; cDTBase+'.DtsRamo.VchDescripcion LIKE '+"'%"+ALLTRIM(cSeek)+"%'"+; ' ORDER BY '+cDTBase+'.DtsRamo.VchDescripcion '} oQuery :=TMSQuery():New( oDTbase ) // inicializa la clase oQuery:Open( eval(bSeek,"") ) // efectua el query IF ( oQuery:nRowCount=0 ) // si no hay registros MSGALERT("No Existen Ramos, Incluya Alguno","Atención...") CreaRamo(oWnd,0,0,0,,1,.T.) oQuery:Open( eval(bSeek,"") ) ENDIFNota: esto es para efectuar un listbox con busqueda contínua por el campo VchDescripcion
Ayuda con Informix - Disculpen que insista
Y aqui el Listbox: REDEFINE GET oSeek VAR cSeek ID 201 OF oDlg ; MESSAGE "Coloque Filtro"; PICTURE "@!"; ON CHANGE (FiltroSql( @oLbx , cSeek , @oQuery,EVAL(bSeek,cSeek)),; eval(bRowCount)) REDEFINE LISTBOX oLbx ; FIELDS oQuery:FieldGet( 2 ); FIELDSIZES 190; MESSAGE "Seleccione Ramo, ([Enter] o Doble Click => Modifica)"; HEADERS "Descripción" ID 401 OF oDlg oQuery:GoTop():Read() // No se olvide nunca de esta linea MySetBrowse(oLbx,oQuery) // No Olvidarse Nunca de Esta Línea oLbx:cAlias := "ARRAY" // No Olvidarse de "ESTO", si no se trancaNota: Yo Utilizo el TWBROWSE, Disculpe maestro mercado <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Ayuda con Informix - Disculpen que insista
Como dice ADBLANCO, ya embarcado, ahí va[code:35ep9yu4]oCon &#58;= TMYsqlServer&#40;&#41;&#58;new&#40;"localhost","root","mypassword"&#41; IF oCon&#58;lError ? "No hubo conexion al servidor, verifique&#46;&#46;&#46;" RETURN NIL ENDIF oCon&#58;SelectDB&#40; "tutor" &#41; IF oCon&#58;lError ? "No se encontró la base de datos tutor, verifique&#46;&#46;&#46;" RETURN NIL ENDIF &#46;&#46;&#46;&#46;&#46; &#46;&#46;&#46;&#46;&#46;[/code:35ep9yu4]Bueno, ese es el código de conexión, no es tan "xbase", pero creo que es claro que con investigación, todo se puede.
Ayuda con Informix - Disculpen que insista
Un Ejemplo para actualizar (REPLACE y APPEND) IF lContinuar IF lNew DO CASE CASE nTipo=1 // RAMO bSeek:={||'INSERT INTO '+cDTBase+'.DtsRamo(VchDescripcion,TinStatus) '+; ' VALUES( '+bTrans(cDescrip)+',1)'} CASE nTipo=2 // COBERTURA bSeek:={||'INSERT INTO '+cDTBase+'.DtsCobertura(IntIdDtsRamo,VchDescripcion,TinStatus) '+; ' VALUES( '+STR(nIdRamo,10,0)+','+bTrans(cDescrip)+',1)'} OTHERWISE // SUBCOBERTURA bSeek:={||'INSERT INTO '+cDTBase+'.DtsSubCobertura(IntIdDtsCobertura,VchDescripcion,TinStatus) '+; ' VALUES( '+STR(nIdCobert,10,0)+','+bTrans(cDescrip)+',1)'} ENDCASE ELSE DO CASE CASE nTipo=1 // RAMO bSeek:={||' UPDATE '+cDTBase+'.DtsRamo '+; ' SET VchDescripcion ='+bTrans(cDescrip)+; ' WHERE '+cDTBase+'.DtsRamo.IntIdDtsRamo = '+STR(nIdRamo)} CASE nTipo=2 // COBERTURA bSeek:={||' UPDATE '+cDTBase+'.DtsCobertura'+; ' SET VchDescripcion ='+bTrans(cDescrip)+; ' WHERE '+cDTBase+'.DtsCobertura.IntIdDtsCobertura ='+STR(nIdCobert,10,0)} OTHERWISE // SUBCOBERTURA bSeek:={||' UPDATE '+cDTBase+'.DtsSubCobertura'+; ' SET VchDescripcion ='+bTrans(cDescrip)+; ' WHERE '+cDTBase+'.DtsSubCobertura.IntIdDtsSubCobertura ='+STR(nIdSubCobert,10,0)} ENDCASE ENDIF oQuery :=TMSQuery():New( oDTbase ) // inicializa la clase oQuery:Open( eval(bSeek) ) // efectua el query oQuery:Close() MSGALERT("Información Acualizada Con Exito","Atención...") lOk :=.t. ENDIF
Ayuda con Informix - Disculpen que insista
Y de eliminacion (Nosotros decidimos no eliminar sino marcar como eliminado) IF MSGNOYES("Está Seguro de Eliminar Este "+cMsg,"Atención...") DO CASE CASE nTipo=1 // RAMO bSeek:={||' UPDATE '+cDTBase+'.DtsRamo '+; ' SET TinStatus = 0'+; ' WHERE '+cDTBase+'.DtsRamo.IntIdDtsRamo = '+STR(nIdRamo)} CASE nTipo=2 // COBERTURA bSeek:={||' UPDATE '+cDTBase+'.DtsCobertura'+; ' SET TinStatus = 0'+; ' WHERE '+cDTBase+'.DtsCobertura.IntIdDtsCobertura ='+STR(nIdCobert,10,0)} OTHERWISE // SUBCOBERTURA bSeek:={||' UPDATE '+cDTBase+'.DtsSubCobertura'+; ' SET TinStatus = 0'+; ' WHERE '+cDTBase+'.DtsSubCobertura.IntIdDtsSubCobertura ='+STR(nIdSubCobert,10,0)} ENDCASE oQuery :=TMSQuery():New( oDTbase ) // inicializa la clase oQuery:Open( eval(bSeek) ) // efectua el query oQuery:Close() ENDIF
Ayuda con Informix - Disculpen que insista
Ya ven que solo se trata de 'pasar' comandos al objeto de la base de datosEjemplos y Ejemplos, Eso es lo que necesitamos (Quien me dijo eso???)
Ayuda con Informix - Disculpen que insista
Creo que ya nos estamos diluyendo, estamos bombardeando con ejemplos y código que al recién llegado lo van terminar confundiendo mas.Lo primero que deberíamos aclarar, y decidir es que sistema vamos a usar, en pocos mensajes ya se han mencionado unas cuantas formas de hacer lo mismo. Si alguien que no lo tiene claro lee mensajes, y empieza a mezclar conceptos y trozos de código fuente, es imposible que saque nada en claro. que obciones tenemos para acceder a la base de datos.(hasta ahora en ese hilo se ha mencionado)1ºADORDD, nos permite usar tablas SQL con los comandos tipicos del RDD, internamente usa ADO, pero nos aisla de esa capa, sin necesidad de aprender ADO.2º ADO , debemos aprender a manejar las calses ADODB.3º Usar una clase que nos ayude en el manejo de ADO (como ADOBASE)4º Prescindir de la capa ADO y atacar directamente el API del motor SQL como tMySQL5º Se ha mencionado Eagle, que si he oido hablar de el, pero que no se como se implementa. Lo catalogaria dentro de librerias de terceros, que nos permite no tener que profundizar demasiado en ADO, nos facilitan el camino.Todas tienen ventajas y desventajas, se trata de elegir la que mejor se adapte a nuestras necesidades.Seguro que hay más, pero lo primero es decidir el camino a tomar, evaluando el coste en dinero, en tiempo de aprendizaje, en velocidad de acceso a los datos, etc.
Ayuda con Informix - Disculpen que insista
Amigos:Estoy de acuerdo con Biel (Saludos) y una vez allanado el camino, mis dos centavos.Yo recomiendo tirar por ADO, aprenderlo es más sencillo que quitarle su dinero a una borracha !, <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Saludos al foro