topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
dudas TDolphin | Lucas
TDolphin es algo totalmente diferente a FastReport, pero si la pregunta es alrevez, si FastRepor soporta a Dolphin, la respuesta es SI
Que problema estas teniendo para armar la libreria...
solo hay que editar el archivo .BAT que vayas a usar para correjir los PATH a tu configuracion y listo... no hay que tocar mas nada
los .BAT de configuracion son
setenv64.bat //Harbour+MSVC64
setenvh.bat //Harbour + Borland
setenvhg.bat //Harbour + MinGW
setenvhm.bat //Harbour + MSVC32
setenvx.bat //xHarbour + Borland
setenvxg.bat //xHarbour + MinGW
setenvxm.bat // xHarbour + MSVC32
Linux
setenvh.sh //Harbour
setenvx.sh //xHarbour |
dudas con Arrays | Hola:
Tengo dos dudillas, a ver si por favor me podéis ayudar.
Primera, ¿hay alguna función rápida, mejor en C, que carge en un Array el contenido de un campo de una base de datos, para evitar hacer un DO while !eof()?.
Segunda, ¿hay alguna función que elimine los elementos duplicados de un Array?.
Mil gracias. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
dudas con Arrays | Podrias usar DbEval():
<!-- m --><a class="postlink" href="http://www.ousob.com/ng/53guide/ng23f25.php">http://www.ousob.com/ng/53guide/ng23f25.php</a><!-- m --> |
dudas con Arrays | Antonio:
Gracias por responder, pero no veo de qué forma.
igualmente, ¿Hay alguna función para cargar el contenido de todo un campo de la DBF en el Array, para evitar esto (por lentitud)?
do while !eof()
aadd (array, FIELD->NOMBRE)
DBSKIP()
ENDDO
Muchas gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
dudas con Arrays | mgsoft:
Disculpa mi ignorancia, cual es la utilidad de cargar toda una DBF (10m 20m o 50m regs) a un array ?
Saludos |
dudas con Arrays | DbEval( { || AAdd( array, FIELD->NOMBRE ) } )
recorre toda la DBF y añade el campo al array. Lo mismo que quieres hacer pero desde nivel C. |
dudas con Arrays | Muchas gracias Antonio!!!.
Armando, lo que quiero es usar la clase TAutoGet, y por ejemplo que el programa complete automáticamente los conceptos, los apellidos, la localidad, etc. De ahí la necesidad de tener en un Array el contenido de algunas bases de datos.
El tener un array de varios megas, ¿ralentiza la aplicación?.
Gracias. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
dudas con Arrays | Mgsoft,
perdon por lo entrometido, pero no creo que ganes mucha velocidad, si tienes las tablas DBF con los indices adecuados, el TAutoGet funcionara bastante rapido. Ademas, imagina que tienes frecuentes actualizaciones de esa informacion, deberas tambien actualizar los arrays, y si estuvieras comportiendo la informacion, seria aun mas complejo.
Disculpa el atrevimiento
saludos
Marcelo |
dudas con Arrays | Marcelo:
Por favor, ningún problema en tu comentario, al contrario, pues me queda mucho que aprender.
La clase TAutoGet, hasta donde yo se, únicamente acepta un Array con los valores.
Creo que es muy útil que el programa autocomplete un campo (p. ej. apellidos, localidad, etc). No sé de qué otro modo se puede hacer.
Cualquier comentario será bienvenido. Gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
dudas con Arrays | MgSoft,
dejame buscar, yo tengo eso funcionando con base de datos, talvez, no la clase en si, pero de otra forma, por ultimo se modifica la clase.
busco y lo que encuentre lo publico
saludos
Marcelo |
dudas con Arrays | Hola compañero me parece que lo que quieres hacer lo puedes lograr usando el DBCOMBO que hace un combobox con campos de una tabla, busca el ejemplo dbctest.prg o el testdbc1.prg.
ojala te sirva.. |
dudas con Arrays | Hola,
mira este codigo, de esta manera lo hice
[code=fw:32ayzftn]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /> <span style="color: #0000ff;">REDEFINE</span> BMPGET oGet <span style="color: #0000ff;">VAR</span> cResponsable <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg BCOLOR CLR_BLACK, CLR_YELLOW ;<br /> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">WHEN</span> ! job $ <span style="color: #ff0000;">"anul,del,view,anul"</span>;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> <br /><br /> oGet:<span style="color: #000000;">bPostKey</span> := <span style="color: #000000;">{</span>|oGet, cBuffer| setResponsable<span style="color: #000000;">(</span> oget <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> setResponsable<span style="color: #000000;">(</span> oGet <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /> <span style="color: #00C800;">LOCAL</span> nPosItem := <span style="color: #000000;">0</span> <span style="color: #B900B9;">// Text position into ::aItems</span><br /> <span style="color: #00C800;">LOCAL</span> nPosCursor := oGet:<span style="color: #000000;">nPos</span> <span style="color: #B900B9;">// Current cursor position</span><br /> <span style="color: #00C800;">LOCAL</span> nLength := LEN<span style="color: #000000;">(</span>oGet:<span style="color: #000000;">cText</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Text length</span><br /> <span style="color: #00C800;">LOCAL</span> cStartTxt := <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span>oGet:<span style="color: #000000;">cText</span>, nPosCursor<span style="color: #000000;">-1</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Start text (position 1 to cursor position -1)</span><br /> <span style="color: #00C800;">LOCAL</span> cItem := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">LOCAL</span> nKey := <span style="color: #000000;">0</span><br /><br /> nKey := oGet:<span style="color: #000000;">nLastKey</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> nKey == VK_TAB .or. ;<br /> nKey == VK_RETURN .or. ;<br /> nKey == VK_DELETE<br /> oGet:<span style="color: #000000;">Assign</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Assign typed text</span><br /> <span style="color: #00C800;">CASE</span> nKey >= <span style="color: #000000;">32</span> .And. nKey <= <span style="color: #000000;">256</span><br /> responsables -> <span style="color: #000000;">(</span> DBEXIST<span style="color: #000000;">(</span> cStartTxt, <span style="color: #ff0000;">"nombre"</span>, .T. <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cItem := responsables -> nombre<br /> <span style="color: #00C800;">IF</span> <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span> cItem, LEN<span style="color: #000000;">(</span>cStartTxt<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> = cStartTxt<br /> nLength := LEN<span style="color: #000000;">(</span> RTRIM<span style="color: #000000;">(</span> cItem <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cItem += SPACE<span style="color: #000000;">(</span> nLength - LEN<span style="color: #000000;">(</span>cItem<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cItem <span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">SetSel</span><span style="color: #000000;">(</span> nPosCursor <span style="color: #000000;">-1</span>, nLength<span style="color: #000000;">)</span> <span style="color: #B900B9;">// Select found text</span><br /> oGet:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Buffer</span> = PAD<span style="color: #000000;">(</span> cItem, LEN<span style="color: #000000;">(</span> oGet:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Buffer</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> oGet:<span style="color: #000000;">HideSel</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Text not found -> Undo selected text</span><br /> <span style="color: #00C800;">ENDCASE</span><br /><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /> </div>[/code:32ayzftn]
El DBEXIST es una funcion propia, pudes reemplazarla por un DBSEEK. Si te das cuenta esto es parte de la clase de Maurilio, entonces esa misma clase podrias modificarla para que en lugar de utilizar arrays puedas utilizar una tabla, claro que la idea es que se parametrice para generalizar
Espero te ayude.
saludos
Marcelo |
dudas para crear documentos con cabecera y detalle | Buen dia con todos....
la consulta es la siguiente: tengo el problema al desear generar un documento ejem. Factura que tiene cabecera (datos del Cliente con Gets) y detalle (relacion de Productos que es con un listbox) todo esto dentro de un cuadro de dialogo
Sucede que deseo llenar la cabecera y luego de tener ciertos campos obligatorios llenos con un click a un boton se genera el nuevo numero del documento correlativo XNRO_NEW="9999" y se habilita el Listbox del detalle el cual funciona con un un SELECT NRO_FA FOR XNRO_NEW el cual debe filtrar solo los detalles de la nueva factura Nr.9999,, he aqui donde nace el problema... cuando lleno el primer detalle y retorno a la ventana del documento el ListBox muestra otros registros, pese a haber cambiado del Filtro con el metodo SetFilter ..... oLbx:setfilter("FAC_DETA->NR_DOC", XNRO_NEW)
Un comentario adicional: para aliviar el problema temporalmente he tenido que hacer lo siguiente : antes de entrar a la ventana del Documento (que tiene la cebecera y detalle) preguntat si desea crear un docuemnto, y generar el Nro del nuevo documento y recien ingresar a la ventana ... ahi todo funciona ok....
Espero haberme explicado bien. les agradecere una luz .... en el camino..
Mil gracias
Lubin |
dudas para crear documentos con cabecera y detalle | Lubin:
Mas facil, mete un SCOPE en el detalle del documento y nunca tendras el problema de que "borre" el filtro.
detalle ->(OrdScope(0,XNRO_NEW))
detalle->(OrdScope(1,XNRO_NEW))
Y listo, todos los registros quedaran filtrado automaticamente.
OJO, esto solo aplica a indices CDX. |
dudas para crear documentos con cabecera y detalle | Hola, me parece que seria mejor que ya al momento de imprimir tu factura, tomes el numero que corresponda, pueda que otro usuario de la red tambien este facturando...
Salu2
Willi |
dudas para crear documentos con cabecera y detalle | Rene , Gracias por la Respuesta, si bien es una alternativa, solo que aun estoy usando los indices NTX
De todas formas va pa mi libro , <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Lubin
[quote="RF":wr2m24dr]Lubin:
Mas facil, mete un SCOPE en el detalle del documento y nunca tendras el problema de que "borre" el filtro.
detalle ->(OrdScope(0,XNRO_NEW))
detalle->(OrdScope(1,XNRO_NEW))
Y listo, todos los registros quedaran filtrado automaticamente.
OJO, esto solo aplica a indices CDX.[/quote:wr2m24dr] |
dudas para crear documentos con cabecera y detalle | Gracias Willi por la Respuesta
Pero quiza no me entendieron en algo, mi problema no es al imprimir las Factura si no al crear la Factura, pues tengo un control de correlativos de documentos que controla el bloqueo de los documentos (un Contador) el cual asigna el Nro de la Factura al Encabezado una vez que se ingresaron todos los datos de la cabecera (cliente, fecha,direccion, telefono), pasando al Listbox del Detalle, ahi es donde este listbox no funciona correctamente al agregar los items (productos) de la Factura.
de todos modos mil gracias,,, quizas puedas encender la luzzzz <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Lubin |
dudas para crear documentos con cabecera y detalle | Lubin:
Por un lado el set filter deberia funcionar, que browse usas ?. Yo no lo uso (uso scopes) pero por ejemplo para wbrowse la sintaxis es:
::SetFilter( cField, uVal1, uVal2 )
Por lo que en tu codigo te falta el limite "hasta" del filtro (tenes solo el "desde", aunque hay un:
DEFAULT uVal2 := uVal1
O sea que si el valor es el mismo de inicio y fin igual deberia funcionar.
oLbx:setfilter("FAC_DETA->NR_DOC", XNRO_NEW)
Si te fijas lo que hace ::Setfilter() en la clase para filtrar (ademas de contemplar el filtrado x indices, detectar si el rdd es cdx, ads y demas ) es modificar ::bGoTop, ::bGoBottom y ::bSkip. Eso significa que si tenes un indice x la expresion que queres filtrar podes hacer algo como esto incluso con indices ntx:
oBrw2:bGoTop := { || Inicio ( cFiltro, oBrw2 ) }
oBrw2:bGoBottom := { || Fin ( cFiltro, oBrw2 ) }
oBrw2:bSkip :={|n| Moveb("brow",cFiltro,n)}
oBrw2:bLogicLen := { || cCantReg }
FUNCTION Inicio( xKey, oBrw )
DBSEEK( xKey ) // Busca tu clave en la base y si la encuentra ahi es el inicio logico de tu browse
oBrw:Refresh()
return nil
FUNCTION Fin( xKey, oBrw )
DBSEEK( Ultima( xKey ), .T. )
DBSKIP( -1 ) // Busca el valor siguiente
oBrw:Refresh()
return nil
FUNCTION Ultima( xValue )
LOCAL cType := VALTYPE( xValue )
LOCAL xNext
DO CASE
CASE ( cType == "C" )
xValue := STUFF( xValue, LEN( xValue ), 1, ;
CHR( ASC( RIGHT( xValue, 1 ) ) + 1 ) )
CASE ( cType == "N" )
xValue++
CASE ( cType == "D" )
xValue++
ENDCASE
xNext := xValue
RETURN( xNext )
FUNCTION Moveb(cAlias,cKey,nReg)
LOCAL nNext:=0
IF nReg=0 .OR. (cAlias)->(LastRec())=0 .OR. !(&((cAlias)->(IndexKey(0)))=cKey)
(cAlias)->(DbSkip(0))
ELSEIF nReg>0 .AND. (cAlias)->(RecNo())<>(cAlias)->(LastRec())+1
DO WHILE nNext<=nReg .AND. !(cAlias)->(EoF()) .AND. &((cAlias)->(IndexKey(0)))=cKey
(cAlias)->(DbSkip())
nNext++
ENDDO
(cAlias)->(DbSkip(-1))
nNext--
ELSEIF nReg<0
DO WHILE nNext>=nReg .AND. !BOF() .AND. &((cAlias)->(IndexKey(0)))=cKey
(cAlias)->(DbSkip(-1))
nNext--
ENDDO
IF !BOF()
(cAlias)->(DbSkip())
ENDIF
nNext++
ENDIF
RETURN (nNext)
Todo esto siempre con wbrowse de Hernan Ceccarelli que es lo que yo uso. Buscate en dbwide el programa ca-windows del amigo Alfredo Arteaga que viene con parte del codigo fuente y aprenderas estas y unas cuantas cositas mas.
Otra cosa que podes hacer es usar un transitorio (cada terminal usa SU transitorio en su c: en forma exclusiva), donde guardas los registros de la factura previo dbzap() x cada factura y despues volcas los registros a la dbf. Y obviamente browseas esos registros del transitorio.
Saludos, |
dudas para crear documentos con cabecera y detalle | Buen dia Daniel
Muchas gracias por el dato, esta respuesta bastante clara, seguro que puede aliviar mi dolor de cabeza, voy a analizarla y aplicarla, pues tambien he activado el Wbrowse de Hernan C..
Solo para redondear la idea, y aclarar el concepto del uso de scopes que mencionas, ¿estas son referidas a estas funciones (inicio,Fin, etc)?? , bueno te comentare que en clipper puro, yo tambien desarrolle mi propio browse que me resolvia algunos problemas que tenia con ese browse y tenia funciones parecidas a las tuyas, pero obviamente sin los conceptos de Objetos .... asi que yo pensaria poner tu aporte como partes de las funciones standares de las aplicaciones, y usarlas para los diversos documentos que a crear, pues po lo que veo son bastantes standarizadas y genericas. ten la seguridad que les contare los resultados..
estare en contacto.. !!
muchas gracias por ello ...
Lubin
[quote="DanielPuente":2ywmium0]Lubin:
Por un lado el set filter deberia funcionar, que browse usas ?. Yo no lo uso (uso scopes) pero por ejemplo para wbrowse la sintaxis es:
::SetFilter( cField, uVal1, uVal2 )
Por lo que en tu codigo te falta el limite "hasta" del filtro (tenes solo el "desde", aunque hay un:
DEFAULT uVal2 := uVal1
O sea que si el valor es el mismo de inicio y fin igual deberia funcionar.
oLbx:setfilter("FAC_DETA->NR_DOC", XNRO_NEW)
Si te fijas lo que hace ::Setfilter() en la clase para filtrar (ademas de contemplar el filtrado x indices, detectar si el rdd es cdx, ads y demas ) es modificar ::bGoTop, ::bGoBottom y ::bSkip. Eso significa que si tenes un indice x la expresion que queres filtrar podes hacer algo como esto incluso con indices ntx:
oBrw2:bGoTop := { || Inicio ( cFiltro, oBrw2 ) }
oBrw2:bGoBottom := { || Fin ( cFiltro, oBrw2 ) }
oBrw2:bSkip :={|n| Moveb("brow",cFiltro,n)}
oBrw2:bLogicLen := { || cCantReg }
FUNCTION Inicio( xKey, oBrw )
DBSEEK( xKey ) // Busca tu clave en la base y si la encuentra ahi es el inicio logico de tu browse
oBrw:Refresh()
return nil
FUNCTION Fin( xKey, oBrw )
DBSEEK( Ultima( xKey ), .T. )
DBSKIP( -1 ) // Busca el valor siguiente
oBrw:Refresh()
return nil
FUNCTION Ultima( xValue )
LOCAL cType := VALTYPE( xValue )
LOCAL xNext
DO CASE
CASE ( cType == "C" )
xValue := STUFF( xValue, LEN( xValue ), 1, ;
CHR( ASC( RIGHT( xValue, 1 ) ) + 1 ) )
CASE ( cType == "N" )
xValue++
CASE ( cType == "D" )
xValue++
ENDCASE
xNext := xValue
RETURN( xNext )
FUNCTION Moveb(cAlias,cKey,nReg)
LOCAL nNext:=0
IF nReg=0 .OR. (cAlias)->(LastRec())=0 .OR. !(&((cAlias)->(IndexKey(0)))=cKey)
(cAlias)->(DbSkip(0))
ELSEIF nReg>0 .AND. (cAlias)->(RecNo())<>(cAlias)->(LastRec())+1
DO WHILE nNext<=nReg .AND. !(cAlias)->(EoF()) .AND. &((cAlias)->(IndexKey(0)))=cKey
(cAlias)->(DbSkip())
nNext++
ENDDO
(cAlias)->(DbSkip(-1))
nNext--
ELSEIF nReg<0
DO WHILE nNext>=nReg .AND. !BOF() .AND. &((cAlias)->(IndexKey(0)))=cKey
(cAlias)->(DbSkip(-1))
nNext--
ENDDO
IF !BOF()
(cAlias)->(DbSkip())
ENDIF
nNext++
ENDIF
RETURN (nNext)
Todo esto siempre con wbrowse de Hernan Ceccarelli que es lo que yo uso. Buscate en dbwide el programa ca-windows del amigo Alfredo Arteaga que viene con parte del codigo fuente y aprenderas estas y unas cuantas cositas mas.
Otra cosa que podes hacer es usar un transitorio (cada terminal usa SU transitorio en su c: en forma exclusiva), donde guardas los registros de la factura previo dbzap() x cada factura y despues volcas los registros a la dbf. Y obviamente browseas esos registros del transitorio.
Saludos,[/quote:2ywmium0] |
due domande... | 1. Ho una dialog (creata con Resource WorkShop di Turbo C 4.5) e non riesco a bloccare le varie get sul campo (cioè, quando sono una get e arrivo alla fine del campo automaticamente va alla get successiva), è un problema di dialog o si può bloccare dall'interno del file .prg ?2. Volendo cambiare resource editor cosa mi consigliate, anche per evitare il fastidioso utilizzo di RC2DLL32 per ricompilare la mia DLL ?grazie. |
due domande... | [quote="damianodec":1x9sgdfw]1. Ho una dialog (creata con Resource WorkShop di Turbo C 4.5) e non riesco a bloccare le varie get sul campo (cioè, quando sono una get e arrivo alla fine del campo automaticamente va alla get successiva), è un problema di dialog o si può bloccare dall'interno del file .prg ?[/quote:1x9sgdfw]
[code:1x9sgdfw]SET CONFIRM ON[/code:1x9sgdfw]
[quote="damianodec":1x9sgdfw]2. Volendo cambiare resource editor cosa mi consigliate, anche per evitare il fastidioso utilizzo di RC2DLL32 per ricompilare la mia DLL ?[/quote:1x9sgdfw]Non ho ancora trovato un editor di risorse altrettanto valido del BRW e personalmente continuerò ad utilizzarlo fino a che sarà possibile. In ogni caso, prova a vedere se ti soddisfa il resource editor fornito con il gratuito PellesC.EMG |
dun 14 | Hola. Necesito utilizar fivewin con el codigo DUN 14. Necesito generar etiquetas desde una aplicacion fivewin con formato DUN 14. ¿conocen alguna libreria que me permita hacer esto?Gracias. Atte. |
duplicate record (tdatarow) | on tdatabase to inser ta a record I use
oElemento:=oElementi:record(.t.)
and to modify
oElemento:=oElementi:record()
How I can make to have a duplicate record to modify ? |
duplicate record (tdatarow) | [code=fw:1eyywisb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRec := oDbf:<span style="color: #000000;">Record</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// existing record</span><br />oRec:<span style="color: #000000;">Copy</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oRec := oDbf:<span style="color: #000000;">Record</span><span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// new record to append</span><br />oRec:<span style="color: #000000;">Paste</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oRec:<span style="color: #00C800;">Edit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:1eyywisb] |
duplicate record (tdatarow) | thanks |
duplicate record (tdatarow) | Nages, do you think it is right ?
oElementi:= TDatabase():Open( , cDir+"Elementi", "DBFCDX", .T. )
oElementi:setorder(1)
oElementi:gotop()
//sample for duplicate
oElemento:=Editsetup(oElementi,3,oElemento)
[code=fw:27xd2nnt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Function</span> Editsetup<span style="color: #000000;">(</span>oDbf,nMode,oRec<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> nMode==<span style="color: #000000;">1</span> <span style="color: #B900B9;">//add</span><br /> oRec := oDbf:<span style="color: #000000;">record</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span><br /> Elseif nMode == <span style="color: #000000;">2</span> <span style="color: #B900B9;">//mod</span><br /> oRec := oDbf:<span style="color: #000000;">record</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> elseif nMode:= <span style="color: #000000;">3</span> <span style="color: #B900B9;">//duplicate</span><br /> oRec := oDbf:<span style="color: #000000;">Record</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// existing record</span><br /> oRec:<span style="color: #000000;">Copy</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oRec := oDbf:<span style="color: #000000;">Record</span><span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// new record to append</span><br /> oRec:<span style="color: #000000;">Paste</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//oRec:Edit()</span><br /> <span style="color: #00C800;">Endif</span><br /><span style="color: #00C800;">return</span> oRec<br /> </div>[/code:27xd2nnt] |
duvida con radio | me salta erro com oRadio1:SetFocus()
Salu2 |
duvida con radio | [quote="Wanderson":35ebdqi4]me salta erro com oRadio1:SetFocus()
Salu2[/quote:35ebdqi4]
Prueba con:
oRadio1:aItems[1]:SetFocus()
oRadio1:aItems[2]:SetFocus()
oRadio1:aItems[...n]:SetFocus()
Saludos
Carlos G. |
duvida con radio | Gracias funciono perfecto. |
dwg to jpg file converter | Hi to all,
As subject.
Someone knows a converter command line program from dwg to jpg file ?
Regards |
dwg to jpg file converter | Antonio,
there are some commandline-converter.
Do You want a FREEWARE - version ?
For the moment I coudn't fine one, otherwise
I can add some links for trial versions like :
<!-- m --><a class="postlink" href="http://www.autodwg.com/dwg2image/">http://www.autodwg.com/dwg2image/</a><!-- m -->
Best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
dwg to jpg file converter | <!-- m --><a class="postlink" href="http://rghost.ru/52458266">http://rghost.ru/52458266</a><!-- m --> |
dwg to jpg file converter | Thank you Uwe. I'll try. |
dwgcad viewer | hola foro
como aqui no se puede dejas archivos adjuntos, quiero enviar a alh}guien las fuentes de la clase tdwg par su uso libre
si alguien queire publicarlo favor cominuquenme para que le envie
Saludos
Arturo |
dwgcad viewer | go to <!-- m --><a class="postlink" href="http://www.hyperupload.com/">http://www.hyperupload.com/</a><!-- m --> and insert the file zip
then it give you the link where we can download the file . |
dwgcad viewer | hola foro
pueden bajar de <!-- m --><a class="postlink" href="http://hyperupload.com/download/59ad4689/DWGCAD.ZIP.html">http://hyperupload.com/download/59ad468 ... D.ZIP.html</a><!-- m --> |
dwgcad viewer | I not download the files from opendwg can you help me please
Regards |
dwgcad viewer | thanks I resolve it
Regards |
dwgcad viewer | [quote="Arturo Tamayo Daza":14n66u7r]hola foro
como aqui no se puede dejas archivos adjuntos, quiero enviar a alh}guien las fuentes de la clase tdwg par su uso libre
si alguien queire publicarlo favor cominuquenme para que le envie
Saludos
Arturo[/quote:14n66u7r]
Arturo
Intento compilar con xHarbour y al compilar los ficheros setrop2.c y dwgmio.c pide el fichero AD2.ch y AD3.ch y estos no estan en el proyecto.
¿Podrias adjuntarlos por favor ?
Saludos |
dwgcad viewer | Hola
Los archivos y las lib que se requieren debes bajarlos de <!-- w --><a class="postlink" href="http://www.opendwg.org">www.opendwg.org</a><!-- w --> |
dynamic libraries example | gcc test.c -o test
./test
test.c
[code=fw:4fdw4n2m]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <stdio.h><br /><span style="color: #00D7D7;">#include</span> <dlfcn.h><br /><br />void hb_vmInit<span style="color: #000000;">(</span> int <span style="color: #000000;">)</span>;<br /><br />int main<span style="color: #000000;">(</span> char * arg, int args <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> void * handle = dlopen <span style="color: #000000;">(</span> <span style="color: #ff0000;">"libharbour.2.1.0.dylib"</span>, RTLD_LAZY <span style="color: #000000;">)</span>;<br /> void <span style="color: #000000;">(</span> * hb_vmInit <span style="color: #000000;">)</span> <span style="color: #000000;">(</span> int <span style="color: #000000;">)</span>;<br /><br /> hb_vmInit = dlsym<span style="color: #000000;">(</span> handle, <span style="color: #ff0000;">"hb_vmInit"</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">(</span> * hb_vmInit <span style="color: #000000;">)</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /><br /> dlclose<span style="color: #000000;">(</span> handle <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><span style="color: #000000;">}</span><br /> </div>[/code:4fdw4n2m] |
dynamic pie chart on a resource dialog | Hi.
I need to show a pie chart on a dialog along with other controls. One of the controls on the dialog is a get where the user can input a %. A pie chart with that % covered with some color should then be drawn on the dialog.
I saw Tim Stone's work using RMChart and it looks like it should work, but there are no samples using resources on a fw dialog.
Below is a link to a similar dialog done with on access:
[url:2o6xyugd]http://ssfl.dynalias.com/utilities/img-526151025-0001.pdf[/url:2o6xyugd]
Can someone point me in the right direction?
Thank you,
Reinaldo. |
dynamic pie chart on a resource dialog | Dear Reinaldo:
[quote="reinaldocrespo":2gn153t2]Can someone point me in the right direction?[/quote:2gn153t2]
Here you are a working sample kindly provided by Alfredo Arteaga:[code=fw:2gn153t2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Program : Test en dialogos</span><br /><span style="color: #B900B9;">// Author : Alfredo Arteaga</span><br /><span style="color: #B900B9;">// 23/03/2008</span><br /><br /><span style="color: #B900B9;">/*<br /><br /> Nuevos parámetros para poder mezclar tipo de gráfico por serie<br /><br /> oGraph:AddSerie( aVals, cLegend, nColor, nType, l3D )<br /><br />*/</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"Fivewin.Ch"</span><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"TGraph.Ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DlgTest<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oDlg, oFont, oGraph1, oGraph2<br /> <span style="color: #00C800;">LOCAL</span> aPers<br /> aPers:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"Ene"</span>,<span style="color: #ff0000;">"Feb"</span>,<span style="color: #ff0000;">"Mar"</span>,<span style="color: #ff0000;">"Abr"</span>,<span style="color: #ff0000;">"May"</span>,<span style="color: #ff0000;">"Jun"</span>,<span style="color: #ff0000;">"Jul"</span><span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-10</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"TG_Test"</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> oGraph1 := TGraph<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">(</span><span style="color: #000000;">100</span>,oDlg<span style="color: #000000;">)</span><br /><br /> With Object oGraph1<br /> :<span style="color: #000000;">nType</span> := GRAPH_TYPE_PIE<br /> :<span style="color: #000000;">l3D</span> := .T.<br /> :<span style="color: #000000;">lPopUp</span> := .T.<br /> :<span style="color: #000000;">lLegends</span>:= .F.<br /> :<span style="color: #000000;">nClrX</span> := CLR_WHITE<br /> :<span style="color: #000000;">nClrY</span> := CLR_WHITE<br /> :<span style="color: #000000;">nClrV</span> := CLR_WHITE<br /> :<span style="color: #000000;">nMaxVal</span> := <span style="color: #000000;">50</span><br /> :<span style="color: #000000;">cBitmap</span> := <span style="color: #ff0000;">".<span style="color: #000000;">\B</span>acalar.Bmp"</span><br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span><span style="color: #000000;">{</span><span style="color: #000000;">-30</span>,<span style="color: #000000;">-20</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">10</span><span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Serie1"</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">200</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span><span style="color: #000000;">)</span>,<span style="color: #000000;">1</span>,.T.<span style="color: #000000;">)</span><br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span><span style="color: #000000;">{</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">40</span>,<span style="color: #000000;">-20</span>,<span style="color: #000000;">-30</span><span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Serie2"</span>,RGB<span style="color: #000000;">(</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>,<span style="color: #000000;">200</span><span style="color: #000000;">)</span>,<span style="color: #000000;">3</span>,.F.<span style="color: #000000;">)</span><br /> :<span style="color: #000000;">SetYVals</span><span style="color: #000000;">(</span>aPers<span style="color: #000000;">)</span><br /> End With<br /><br /> oGraph2 := TGraph<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">(</span><span style="color: #000000;">105</span>,oDlg<span style="color: #000000;">)</span><br /><br /> With Object oGraph2<br /> :<span style="color: #000000;">nType</span> := GRAPH_TYPE_BAR<br /> :<span style="color: #000000;">l3D</span> := .F.<br /> :<span style="color: #000000;">lPopUp</span> := .T.<br /> :<span style="color: #000000;">lDegrade</span>:= .T.<br /> :<span style="color: #000000;">lLegends</span>:= .F.<br /> :<span style="color: #000000;">nMaxVal</span> := <span style="color: #000000;">50</span><br /> :<span style="color: #000000;">nMinVal</span> :=<span style="color: #000000;">-40</span><br /> :<span style="color: #000000;">cBitmap</span> := <span style="color: #ff0000;">".<span style="color: #000000;">\B</span>rush.Bmp"</span><br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span><span style="color: #000000;">{</span><span style="color: #000000;">-30</span>,<span style="color: #000000;">-20</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">10</span><span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Serie1"</span>,CLR_GREEN ,<span style="color: #000000;">2</span>,.F.<span style="color: #000000;">)</span><br /> :<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span><span style="color: #000000;">{</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">40</span>,<span style="color: #000000;">-20</span>,<span style="color: #000000;">-30</span><span style="color: #000000;">}</span>,<span style="color: #ff0000;">"Serie2"</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">218</span>,<span style="color: #000000;">181</span>, <span style="color: #000000;">28</span><span style="color: #000000;">)</span>,<span style="color: #000000;">1</span>,.F.<span style="color: #000000;">)</span><br /> :<span style="color: #000000;">SetYVals</span><span style="color: #000000;">(</span>aPers<span style="color: #000000;">)</span><br /> End With<br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">110</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /> oFont:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">)</span><br /> </div>[/code:2gn153t2]
The RC:[code=fw:2gn153t2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/****************************************************************************<br /><br /><br />dlgtest.rc<br /><br />produced by Borland Resource Workshop<br /><br /><br />*****************************************************************************/</span><br /><br />LANGUAGE LANG_SPANISH,SUBLANG_SPANISH_MEXICAN<br /><br /><br /><span style="color: #000000;">1</span> <span style="color: #000000;">24</span> LOADONCALL MOVEABLE <br /><span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">'3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31'</span><br /> <span style="color: #ff0000;">'2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54'</span><br /> <span style="color: #ff0000;">'46 2D 38 22 20 73 74 61 6E 64 61 6C 6F 6E 65 3D'</span><br /> <span style="color: #ff0000;">'22 79 65 73 22 3F 3E 0D 0A 3C 61 73 73 65 6D 62'</span><br /> <span style="color: #ff0000;">'6C 79 20 78 6D 6C 6E 73 3D 22 75 72 6E 3A 73 63'</span><br /> <span style="color: #ff0000;">'68 65 6D 61 73 2D 6D 69 63 72 6F 73 6F 66 74 2D'</span><br /> <span style="color: #ff0000;">'63 6F 6D 3A 61 73 6D 2E 76 31 22 20 6D 61 6E 69'</span><br /> <span style="color: #ff0000;">'66 65 73 74 56 65 72 73 69 6F 6E 3D 22 31 2E 30'</span><br /> <span style="color: #ff0000;">'22 3E 0D 0A 3C 61 73 73 65 6D 62 6C 79 49 64 65'</span><br /> <span style="color: #ff0000;">'6E 74 69 74 79 0D 0A 20 20 20 20 76 65 72 73 69'</span><br /> <span style="color: #ff0000;">'6F 6E 3D 22 31 2E 30 2E 30 2E 30 22 0D 0A 20 20'</span><br /> <span style="color: #ff0000;">'20 20 70 72 6F 63 65 73 73 6F 72 41 72 63 68 69'</span><br /> <span style="color: #ff0000;">'74 65 63 74 75 72 65 3D 22 58 38 36 22 0D 0A 20'</span><br /> <span style="color: #ff0000;">'20 20 20 6E 61 6D 65 3D 22 55 74 6F 70 69 61 50'</span><br /> <span style="color: #ff0000;">'6C 61 6E 69 74 69 61 2E 4D 45 44 2E 4D 45 44 22'</span><br /> <span style="color: #ff0000;">'0D 0A 20 20 20 20 74 79 70 65 3D 22 77 69 6E 33'</span><br /> <span style="color: #ff0000;">'32 22 0D 0A 2F 3E 0D 0A 3C 64 65 73 63 72 69 70'</span><br /> <span style="color: #ff0000;">'74 69 6F 6E 3E 59 6F 75 72 20 61 70 70 6C 69 63'</span><br /> <span style="color: #ff0000;">'61 74 69 6F 6E 20 64 65 73 63 72 69 70 74 69 6F'</span><br /> <span style="color: #ff0000;">'6E 20 68 65 72 65 2E 3C 2F 64 65 73 63 72 69 70'</span><br /> <span style="color: #ff0000;">'74 69 6F 6E 3E 0D 0A 3C 64 65 70 65 6E 64 65 6E'</span><br /> <span style="color: #ff0000;">'63 79 3E 0D 0A 20 20 20 20 3C 64 65 70 65 6E 64'</span><br /> <span style="color: #ff0000;">'65 6E 74 41 73 73 65 6D 62 6C 79 3E 0D 0A 20 20'</span><br /> <span style="color: #ff0000;">'20 20 20 20 20 20 3C 61 73 73 65 6D 62 6C 79 49'</span><br /> <span style="color: #ff0000;">'64 65 6E 74 69 74 79 0D 0A 20 20 20 20 20 20 20'</span><br /> <span style="color: #ff0000;">'20 20 20 20 20 74 79 70 65 3D 22 77 69 6E 33 32'</span><br /> <span style="color: #ff0000;">'22 0D 0A 20 20 20 20 20 20 20 20 20 20 20 20 6E'</span><br /> <span style="color: #ff0000;">'61 6D 65 3D 22 4D 69 63 72 6F 73 6F 66 74 2E 57'</span><br /> <span style="color: #ff0000;">'69 6E 64 6F 77 73 2E 43 6F 6D 6D 6F 6E 2D 43 6F'</span><br /> <span style="color: #ff0000;">'6E 74 72 6F 6C 73 22 0D 0A 20 20 20 20 20 20 20'</span><br /> <span style="color: #ff0000;">'20 20 20 20 20 76 65 72 73 69 6F 6E 3D 22 36 2E'</span><br /> <span style="color: #ff0000;">'30 2E 30 2E 30 22 0D 0A 20 20 20 20 20 20 20 20'</span><br /> <span style="color: #ff0000;">'20 20 20 20 70 72 6F 63 65 73 73 6F 72 41 72 63'</span><br /> <span style="color: #ff0000;">'68 69 74 65 63 74 75 72 65 3D 22 58 38 36 22 0D'</span><br /> <span style="color: #ff0000;">'0A 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62'</span><br /> <span style="color: #ff0000;">'6C 69 63 4B 65 79 54 6F 6B 65 6E 3D 22 36 35 39'</span><br /> <span style="color: #ff0000;">'35 62 36 34 31 34 34 63 63 66 31 64 66 22 0D 0A'</span><br /> <span style="color: #ff0000;">'20 20 20 20 20 20 20 20 20 20 20 20 6C 61 6E 67'</span><br /> <span style="color: #ff0000;">'75 61 67 65 3D 22 2A 22 0D 0A 20 20 20 20 20 20'</span><br /> <span style="color: #ff0000;">'20 20 2F 3E 0D 0A 20 20 20 20 3C 2F 64 65 70 65'</span><br /> <span style="color: #ff0000;">'6E 64 65 6E 74 41 73 73 65 6D 62 6C 79 3E 0D 0A'</span><br /> <span style="color: #ff0000;">'3C 2F 64 65 70 65 6E 64 65 6E 63 79 3E 0D 0A 3C'</span><br /> <span style="color: #ff0000;">'2F 61 73 73 65 6D 62 6C 79 3E 0D 0A 0D 0A 0D 0A'</span><br /><span style="color: #000000;">}</span><br /><br /><br />TG_TEST <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">49</span>, <span style="color: #000000;">91</span>, <span style="color: #000000;">409</span>, <span style="color: #000000;">194</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Distribución de saldos"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br />LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MEXICAN<br /><span style="color: #000000;">{</span><br /> CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">100</span>, <span style="color: #ff0000;">"TGraph"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE, <span style="color: #000000;">5</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">196</span>, <span style="color: #000000;">162</span><br /> CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">105</span>, <span style="color: #ff0000;">"TGraph"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE, <span style="color: #000000;">207</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">196</span>, <span style="color: #000000;">162</span><br /> DEFPUSHBUTTON <span style="color: #ff0000;">"&Salir"</span>, <span style="color: #000000;">110</span>, <span style="color: #000000;">342</span>, <span style="color: #000000;">174</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">14</span><br /> __CLASS <span style="color: #ff0000;">"Button"</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:2gn153t2]
I sent it to your mail too, check it.
Best regards.
Manuel Mercado Gómez. |
e-mail manager | Hello,
Sometimes it is difficult to get system into your inbox.
The treeview of outlook is somewhat limited. So I programmed an e-mail manager for me.
I can import from outlook into a mdi Fivewin program. For every email there is a mdi childwindow.
Now I can arrange perfect order. I can move around the emails add/edit text inside the mail and much more.
Best regards,
Otto
[url:3n5yja6e]http://www.atzwanger-software.com/fw/maildesktop.mp4[/url:3n5yja6e] |
e-mail manager | very good idea <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
e-mailadresses | e-mail adresses
Can anyone tell me if it is possible to incorporate and use e-mailadresses from Xbase++ fields (with FWH) iand if yes how to do it? |
e-mailadresses | can someone tell me if it is possible to incorporate e-mailadresses in xbase++ fields and to use them to send emails from. |
e-mailadresses | Yes. Search the forum for email, smtp, and mapi for more information.
Regards,
James |
e-mailadresses | Sorry, i can't help because i don't understand your question.
Please provide some more details about your problem.
What data do you have and what you want to do with them?
Regards,
Detlef |
e-mailadresses | Hi all
I use
<!-- m --><a class="postlink" href="http://www.afterlogic.com/products/email-components">http://www.afterlogic.com/products/email-components</a><!-- m -->
since 3 Years
One Dll fast and small
Tx |
e-mailadresses | Hi,
That looks very interesting.
Can you provide us an example of how you handle the integration ?
Thanks a lot in advance. |
e-mailadresses | OIMAP := TOLEAUTO():NEW( "MAILBEE.IMAP4" )
OIMAP:LICENSEKEY := CMB_MAILKEY
OIMAP:SERVERNAME := CSERVER
OIMAP:USERNAME := CACCOUNT
OIMAP:PASSWORD := CPASSWORD
OSMTP:ENABLELOGGING = .T.
OIMAP:ENABLELOGGING := .t.
OIMAP:CONNECT( CSERVER )
OIMAP:SELECTMAILBOX( cFolder )
envelopes := OIMAP:RetrieveEnvelopesEx( 1, OIMAP:MessageCount, .F., .T., .f. )
EvelopesArr := OIMAP:RETRIEVEENVELOPES( 1, 25000, .T. )
OIMAP:DISCONNECT() |
e-mailadresses | I want to put f.e. an emailadres in a field of an adres file and by clicking on the emailadres open the outlook program f.e. |
e-mailadresses | jds,
This is an example:
[code=fw:ak8i7z3g]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oSay, oCursor<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCursor HAND<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /> @ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"test@gmail.com"</span><br /><br /> oSay:<span style="color: #000000;">lWantClick</span> = .T.<br /> oSay:<span style="color: #000000;">bLClicked</span> = <span style="color: #000000;">{</span> || ShellExecute<span style="color: #000000;">(</span> oDlg, <span style="color: #ff0000;">"Open"</span>, <span style="color: #ff0000;">"mailto:"</span> + oSay:<span style="color: #000000;">GetText</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,,, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> oSay:<span style="color: #000000;">oCursor</span> = oCursor<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:ak8i7z3g] |
e-mailadresses | In case that you want to use a GET:
[code=fw:2dhj5vjd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oGet, oCursor, cEmail := <span style="color: #ff0000;">"test@gmail.com "</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCursor HAND<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /> @ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cEmail<br /><br /> oGet:<span style="color: #000000;">bLClicked</span> = <span style="color: #000000;">{</span> || ShellExecute<span style="color: #000000;">(</span> oDlg, <span style="color: #ff0000;">"Open"</span>, <span style="color: #ff0000;">"mailto:"</span> + oGet:<span style="color: #000000;">GetText</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,,, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oGet:<span style="color: #000000;">oCursor</span> = oCursor<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2dhj5vjd] |
e-mailadresses | jds,
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=1&t=18035&p=94513#p94513">viewtopic.php?f=1&t=18035&p=94513#p94513</a><!-- l --> |
e-mailadresses | Thank you Antonio ! But it is necessary to put "outlook.exe" between "open" and "mailto:"
Hasta luego ! |
e-mailadresses | Jds,
Thanks for your feedback <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
e-mailadresses | Sorry Antonio, it also works without referencing to outlook
josé |
e-mailadresses | Jds,
Thanks again <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
eBikeWM | THIS WAS THE E-BIKE WORLD FOR EVERYONE 2019
With a total of 491 participants, we broke the world record and are thus the largest E-BIKE RACE in the world.
Many thanks to all participants, helpers, visitors, partners and sponsors of the E-Bike World Championships 2019.
LOOKING FORWARD TO 2020
[url:103rf2vh]https://www.facebook.com/ebikewm2019/videos/2539900999665732/[/url:103rf2vh] |
eBook de Inteligencia Artificial | Hola.
Para los interesados, acá les dejo un link para descargar un eBook sobre inteligencia artificial que se muy interesante (esta en ingles), utilizando Python
[url:1hr8xsp1]https://pythonmachinelearning.pro/wp-content/uploads/2018/01/Machine-Learning-for-Human-Beings-2.pdf?utm_content=educational&utm_campaign=2018-01-11&utm_source=email-sendgrid&utm_term=30402002&utm_medium=81372[/url:1hr8xsp1]
Saludos.
Carlos |
eMail cErrorLog (SOLUCIONADO) | Intento modificar ErrSysW.prg, para enviar el archivo de error por eMail en formato HTML pero STRTRAN no detecta el valor de CRLF
[code=fw:1zimtiw9]<div class="fw" id="{CB}" style="font-family: monospace;">cHtml := cErrorLog<br />STRTRAN<span style="color: #000000;">(</span>cHtml, Chr<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span>+Chr<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> , <span style="color: #ff0000;">'<br <span style="color: #000000;">\></span>'</span><span style="color: #000000;">)</span></div>[/code:1zimtiw9]
He intentado con CRLF y Chr(13)+Chr(10)...
Alguien podria sugerirme otra forma de hacerlo?? |
eMail cErrorLog (SOLUCIONADO) | Uuuuuupppppsssss Mi error...
[code=fw:2tcg830p]<div class="fw" id="{CB}" style="font-family: monospace;">cHtml := cErrorLog<br />cHtml := STRTRAN<span style="color: #000000;">(</span>cHtml, CRLF , <span style="color: #ff0000;">'<br <span style="color: #000000;">\></span>'</span><span style="color: #000000;">)</span></div>[/code:2tcg830p] |
eMail con formato Html | Hola amigos:
Trato de enviar un correo con formato html pero no lo hace. Me lee el archivo en texto plano.
cText := <!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Resúmen de cuenta</title>
</head>
<body>
</body>
</html>
DEFINE MAIL oMail ;
SUBJECT "Mejoras para Ud." ;
TEXT cTEXT ;
TO cCorreo ;
FROM USER
ACTIVATE MAIL oMail
Muchas gracias
Saludos
Ruben Dario Fernandez |
eMail with html | Hello friends.
I'm trying to send an eMail with html format, but I can't. Any help, please.
cText := <!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Resúmen de cuenta</title>
</head>
<body>
</body>
</html>
DEFINE MAIL oMail ;
SUBJECT "Mejoras para Ud." ;
TEXT cTEXT ;
TO cCorreo ;
FROM USER
ACTIVATE MAIL oMail
Muchas gracias
Saludos
Ruben Dario Fernandez |
eMail with html | hi,
i have read "somewhere"
[quote:3hb5i02h]
There is an undocumented feature of MAPISendMail for including an HTML body:
[code=fw:3hb5i02h]<div class="fw" id="{CB}" style="font-family: monospace;"> set lpszNoteText <span style="color: #0000ff;">to</span> <span style="color: #00C800;">nil</span> <span style="color: #000000;">(</span>or a pointer <span style="color: #0000ff;">to</span> an empty string<span style="color: #000000;">)</span><br /> add an HTML attachment</div>[/code:3hb5i02h]
MAPI will use the html attachment as the body of the e-mail (and not include the attachment).
[/quote:3hb5i02h]
---
[quote:3hb5i02h]
Officially, Simple MAPI does not support HTML.
If you however set the message body to NULL (not just an empty string), and
the very first attachment is an HTML file, the outgoing message will be HTML
populated from the atttachment data. I don't know whether this is a bug or a
feature.
[code=fw:3hb5i02h]<div class="fw" id="{CB}" style="font-family: monospace;">m_pMessage->lpszNoteText = <span style="color: #00C800;">NULL</span>;<br />m_pMessage->lpszMessageType = <span style="color: #ff0000;">"IPM.Note"</span>;<br />m_pMessage->lpszConversationID = <span style="color: #00C800;">NULL</span>; <span style="color: #B900B9;">// <-- set to null</span></div>[/code:3hb5i02h]
[/quote:3hb5i02h]
---
as TEXT point to lpszNoteText try NIL or NULL
[quote:3hb5i02h] DEFINE MAIL [<oMail>] ;
[ SUBJECT <cSubject> ] ;
[ TEXT <cText> ] ;
[ TYPE <cType> ] ;[/quote:3hb5i02h]
and add a HTML as Attachment |
eMail with html | Thanks very much Jimmy.
Saludos
Ruben Dario Fernandez
Enviado desde mi 21081111RG mediante Tapatalk |
eMailDeskTop | 1. INTRODUCTION
I would like to introduce our new software project.
Maybe someone of you is interested in joining the development.
Then, please, send me an email.
We are working on a new project „email-desktop“. We need this program mainly for in-house use.
At the moment we are receiving so many emails that with the help of Outlook only we can't manage to handle them.
We think that this program could be of interest for many companies.
[b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] organizes incoming emails not in a tree view (like OUTLOOK) but like a desktop. [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] is not an archive but a tool to work on current emails.
Every email is an mdi window and converted into RTF.
That way we can edit them and work directly in an incoming email. We can drag & drop the emails, sort them, and organize them.
We can filter which category to show etc.
[b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] is adapted to the way people are used to work.
You have your notice-papers on your desk and then you sort them. Exactly this method we try to provide with [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] .
Today, for example, we had to bring order into 90 unanswered emails.
With the help of [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] we were able to do this job within 2 hours. Now there are 27 structured emails left.
All superfluous content like logos, greetings and unimportant details are deleted.
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/clip0001.png[/img:1owm8ys2]
2. DESKTOP
[b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] is an extension for Outlook.
It is a desktop for emails. All the incoming emails are automatically listed on this desktop.
You can sort and group these emails and you can start work on the email.
On click you get a menu and can do whatever you want with the email.
I think [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] has much potential. Everyone here is working with Outlook and an extension
would have a market.
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/1_img2.png[/img:1owm8ys2]
On this desktop are 50 emails comfortably.
2.1. HOW DOES [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] WORK
Incoming emails are copied with by VBA script to the folder [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] in Outlook.
A Fivewin – program copies these emails as a msg and rtf file and a INI file to a folder on the disk.
2.2. FUNCTIONS
position
The position and size of the emails on [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] gets stored and when you re-open the program you have the same view.
New emails enter the screen in the right bottom corner and then you drop them where you want.
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/1_img7.png[/img:1owm8ys2]
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/1_img1.png[/img:1owm8ys2]
Today we got 84 new emails.
I imported all within 10 min. Then you cut and copied the emails which belong to one customer and to the same topic.
Now there are more or less 10 topics left to work on.
categories
Start screen
Only those categories are shown which you select.
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/1_img6.png[/img:1owm8ys2]
schedule
Then there is a schedule. If you select “Termin” the email is copied to the subfolder “termin” . The appointment is stored inside the filename:
Email 200160606.msg. With a directory browse all the emails are reimported at the selected date.
2.2.1. SEND AN EMAIL
You can send back the "stuctured email" to Outlook or to anyone.
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/clip0005.png[/img:1owm8ys2]
2.3. [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] <-> DMS
Screen to import the emails
[b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] looks up the email sender address in our customer database
You can select “Import to [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] and store the the original Email in our DMS”.
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/1_img8.png[/img:1owm8ys2]
2.4. XBROWSE OVERVIEW
Fulltext search
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/clip0002.png[/img:1owm8ys2]
Filter
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/clip0003.png[/img:1owm8ys2]
sum in column
“ANZAHL” how many emails are inside the system for each customer.
We show only a number if there are more than one email.
footer with the total number of the filtered records
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/clip0006.png[/img:1owm8ys2]
2.5. NOTE
The purpose is:
You should mark a block inside a single [b:1owm8ys2]eMailDeskTop[/b:1owm8ys2] and then click <Notiz>.
The block is added to a Doc – notiz.
Then the next etc.
header
Block
1) From email Nr. 480
footer
[img:1owm8ys2]http://www.atzwanger-software.com/fw/eMailDesk/clip0004.png[/img:1owm8ys2] |
eMailDeskTop | It looks like a great idea!
EMG |
eMailDeskTop | Otto,
This is cool. I have a similar requirement.
Do you have a VBA script that can post an email body and its attachment into a dbf?
TIA |
eMailDeskTop | Dear Antonio,
now I have the email-desktop ready in mod harbour.
Same functionality as desktop version and best you can work simultaneously.
Thanks you and mod harbour.
Best regards,
Otto
[img:lcxwo7xp]https://mybergland.com/fwforum/modharbouredesktop.jpg[/img:lcxwo7xp] |
eMailDesktop - uses filesystem as database | eMailDesktop
Searching for a possibility to store the emails I came to the solution to use the Filesystem (Not a Database!) for schemaless data
I found an interesting post.
[quote:22ve6b34]I always love coming to these forums and reading all the heavy database gurus pitching that the file System can't do it as quick as the Database. On quite the contrary a properly layed out tree, well designed hashtables and saving them as an object to a file will yield the same speeds as a database and from my tests. A properly designed hashtable and directory tree will win everytime. Way less overhead. Recently I have been moving away from database driven programming and more on the file tree for simplicity and program portability. No DB means easy backup just zip your tree up and go. It is very nice and a recomendation to program in this fashion for onetime clients with small applications. Look at the big pic do I have the time to design my own or just leverage what is already there like the db. I personally like saving my objects to file and using them later just keep an eye on your the size of your tables and look into using a RandomAccessFile in order to be able to seek quickly lay it out like a database and break it up into hashtable objects. Enjoy. Remember what ever data you store in the file will consume double the memory usage at times depending on your code. The hash table itself and typically where you consume it to view.
[/quote:22ve6b34]
Does someone know how to implement such a hashtable?
Thanks in advance and best regards,
Otto |
eMailDesktop - uses filesystem as database | FullTextSearch engine
I found a program which looks promising <!-- m --><a class="postlink" href="https://www.fileseek.ca">https://www.fileseek.ca</a><!-- m --> .
I read in the FAQ that it should be possible to operate from command line.
So I think I could pass the search options from FIVEWIN and get back a file with the results.
BTW does someone use fileseek.
Best regards,
Otto
[quote:1s3m04ii]If you pass a folder name to fileseek with no switches, FileSeek will treat that the same as -d. To pass a command line parameter value that includes spaces use quotes, like this: -d "C:\My Folder". Here is the complete list of command line parameters:
Set Search Directory: -d [path] (separate multiple paths with the | symbol)
Set Exclude Directory: -xd [path] (separate multiple paths with the | symbol)
Set Include Files Filter: -f [files] (separate multiple file filters with the | symbol)
Set Exclude Files Filter: -xf [files] (separate multiple file filters with the | symbol)
Set Query: -q [query]
RegEx Query: -r [query] (use this instead of -q if you want to do a RegEx search)
Load Search Profile: -l [profile name] (This starts FileSeek with the specific Profile. Any other command to modify search criteria happens after this, so you can load a profile then modify the criteria. This is only available to Pro users.)
Output Results to File: -o [filename] (This option loads FileSeek, starts a search, and outputs a file with the filename the user specified with the search results to the specified folder, then closes FileSeek. You can specify .csv, .html or any other extension for a text file. This is only available to Pro users.)
Execute the Search: -start
[/quote:1s3m04ii] |
eMailDesktop - uses filesystem as database | Hello,
FileSeek is working fine.
Calling with Parameter 0 it works without showing a window.
FileSeek returns a csv file.
Best regards,
Otto
[code=fw:37ci8o0h]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> suchestarten<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cPrg := <span style="color: #ff0000;">""</span><br /> cPrg := <span style="color: #ff0000;">'c:<span style="color: #000000;">\F</span>ileSeek<span style="color: #000000;">\F</span>ileSeek.exe -d "c:<span style="color: #000000;">\#</span> DEMODATEN" -f kunden.dbf -r "Franz" -o C:<span style="color: #000000;">\F</span>ileSeek<span style="color: #000000;">\L</span>ookup.csv -start'</span><br /><br /> winexec<span style="color: #000000;">(</span> cPrg,<span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:37ci8o0h] |
eMailDesktop - uses filesystem as database | May I know in what way fileseek is different from the popular grep?
[quote:2lslwl6n]C:\bcc7\bin>grep ?
Turbo GREP 5.6 Copyright (c) 1992-2010 Embarcadero Technologies, Inc.
Syntax: GREP [-rlcnvidzewoqhu] searchstring file[s] or @filelist
Options are one or more option characters preceded by "-", and optionally
followed by "+" (turn option on), or "-" (turn it off). The default is "+".
-r+ Regular expression search -l- File names only
-c- match Count only -n- Line numbers
-v- Non-matching lines only -i- Ignore case
-d- Search subdirectories -z- Verbose
-e Next argument is searchstring -w- Word search
-o- UNIX output format Default set: [0-9A-Z_]
-q- Quiet: supress normal output
-h- Supress display of filename
-u xxx Create a copy of grep named 'xxx' with current options set as default
A regular expression is one or more occurrences of: One or more characters
optionally enclosed in quotes. The following symbols are treated specially:
^ start of line $ end of line
. any character \ quote next character
* match zero or more + match one or more
[aeiou0-9] match a, e, i, o, u, and 0 thru 9 ;
[^aeiou0-9] match anything but a, e, i, o, u, and 0 thru 9
[/quote:2lslwl6n] |
eMailDesktop - uses filesystem as database | Dear Mr. Rao,
I didn‘t even know that there is a tool for fulltext search inside bcc\bin folder.
So I can’t tell anything about.
BTW, can you search with grep inside WORD files?
Best regards,
Otto |
eMailDesktop - uses filesystem as database | any file |
eShop sample and a DBF product file | Hello Mark,
Here
[url:1rleuumk]https://www.modharbour.club/modharbour_samples/eshop/index.prg[/url:1rleuumk]
you see how eShop works with a DBF database.
Maybe you have some images we can use for the demo.
I explain in the next post how I did.
'Best regards,
Otto
[img:1rleuumk]https://mybergland.com/fwforum/eshop.jpg[/img:1rleuumk] |
eShop sample and a DBF product file | Otto,
great enhancements on the eshop example! Excellent! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
eShop sample and a DBF product file | Hello Mark,
here you you see what I do:
Store DBF into a HASH - pass the HASH to HTML .
[img:2v2whl86]https://mybergland.com/fwforum/dbf1.jpg[/img:2v2whl86]
Then in the home.view I substitute the hard-coded part through this code.
That is all. That easy.
Thanks to Antonio's wonderful template and his mod harbour.
[img:2v2whl86]https://mybergland.com/fwforum/dbf2.jpg[/img:2v2whl86]
I will post the whole source after lunch.
Best regards,
Otto |
eShop sample and a DBF product file | Hello Mark,
Here are the source files I change in eShop example.
[url:3ja42jhr]https://mybergland.com/fwforum/eshop.zip[/url:3ja42jhr]
Best regards,
Otto |
eShop sample and a DBF product file | Thanks.
Will try to setup Mod. in the weekend. to get it up and running for the samples. |
eShop sample and a DBF product file | Hi,
Here is the easiest way to install the Apache24 server on windows x64
[quote:2jbmjght]To download:
[url:2jbmjght]https://drive.google.com/uc?id=1HEae-kEG_b40bjxO30E57AVJtMlGp6sA&export=download&fbclid=IwAR0_U2AnNm8WWWDz4KtXjmGHZOoUDP6o0YOrlp06WYH0BCc1Jf8T8bmFwD4[/url:2jbmjght]
Unzip and copy Apache24 folder in C: \
From the C: \ Apache24 folder run "Install Service and Start.bat" as administrator
And that's it.
Saludos,
Adhemar C.[/quote:2jbmjght]
Best regards,
Otto
Here is a video:
[url:2jbmjght]https://mybergland.com/fwforum/installmodharbour.mp4[/url:2jbmjght] |
eShop sample and a DBF product file | I had this text, but it seems to work. I can see stuff with localhost
C:\WINDOWS\system32>rem Parar el servico corre como adm
C:\WINDOWS\system32>C:\Apache24\bin\httpd -k start
(OS 10048)Elk socketadres (protocol/netwerkadres/poort) kan normaal slechts ÚÚn keer worden gebruikt. : AH00072: make_sock: could not bind to address [::]:80
(OS 10048)Elk socketadres (protocol/netwerkadres/poort) kan normaal slechts ÚÚn keer worden gebruikt. : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
C:\WINDOWS\system32>pause
Press any key to continue . . . |
eShop sample and a DBF product file | For uploading to our server, Just copy the folder to a online location ? |
eShop sample and a DBF product file | Mark, did you run the file "AS ADMIN"?
Best regards,
Otto
em Parar el servico corre como adm |
eShop sample and a DBF product file | [quote="Otto":1980z5us]Mark, did you run the file "AS ADMIN"?
Best regards,
Otto
em Parar el servico corre como adm[/quote:1980z5us]
Yes. ? (but I tried again)
C:\WINDOWS\system32>rem Parar el servico corre como adm
C:\WINDOWS\system32>C:\Apache24\bin\httpd -k start
(OS 10048)Elk socketadres (protocol/netwerkadres/poort) kan normaal slechts ÚÚn keer worden gebruikt. : AH00072: make_sock: could not bind to address [::]:80
(OS 10048)Elk socketadres (protocol/netwerkadres/poort) kan normaal slechts ÚÚn keer worden gebruikt. : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
C:\WINDOWS\system32>pause
Press any key to continue . . .
But it seems to work whne it put localhost in chrome.
If I change something in the samples dir, it also reflects when i refresh chrome |
eShop sample and a DBF product file | Hi,
modharbour_samples/info.prg
Should tell you that harbour is installed.
Best regards,
Otto |
eShop sample and a DBF product file | Then it is ok.
OS Windows 8 6.2
Harbour Harbour 3.2.0dev (r2004201301)
Build date May 27 2020 05:53:35
Compiler Microsoft Visual C 19.26.28805 (64-bit)
Capabilities
RDD DBF, DBFFPT, DBFNSX, SIXCDX, DBFCDX, SDF, DELIM, DBFBLOB, DBFNTX
Version Harbour
00 HB_VERSION_HARBOUR Harbour 3.2.0dev (r2004201301)
01 HB_VERSION_COMPILER Microsoft Visual C 19.26.28805 (64-bit)
02 HB_VERSION_MAJOR 3
03 HB_VERSION_MINOR 2
04 HB_VERSION_RELEASE 0
05 HB_VERSION_STATUS dev
06 HB_VERSION_REVISION 2004201301
07 HB_VERSION_CHANGELOG_LAST 2020-04-20 15:01 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
08 HB_VERSION_CHANGELOG_ID e8cc50254a83714ccb22e78db84a492a419aa576
09 HB_VERSION_PCODE_VER 3
10 HB_VERSION_PCODE_VER_STR PCode version: 0.3
11 HB_VERSION_BUILD_DATE_STR May 27 2020 05:53:35
12 HB_VERSION_BUILD_DATE 20200527
13 HB_VERSION_BUILD_TIME 05:53:35
14 HB_VERSION_BUILD_PLAT -l-
15 HB_VERSION_BUILD_COMP
16 HB_VERSION_FLAG_PRG
17 HB_VERSION_FLAG_C 64
18 HB_VERSION_FLAG_LINKER 1
19 HB_VERSION_BITWIDTH true
20 HB_VERSION_ENDIANNESS false
21 HB_VERSION_MT WIN
22 HB_VERSION_SHARED win
23 HB_VERSION_UNIX_COMPAT msvc64
24 HB_VERSION_PLATFORM x86-64
25 HB_VERSION_CPU false
26 HB_VERSION_COMPILER_CPP false
27 HB_VERSION_MAX_ <!-- m --><a class="postlink" href="https://github.com/harbour/core/">https://github.com/harbour/core/</a><!-- m --> |
eagle fw + mysql | Buen día Foro.... hace un tiempo había una forma de acceder a una bases de datos de mysql y era a través de EAGLE. mi pregunta es si alguien tiene un pedacito de código par acceder desde fivewin sin necesidad de usar otras librerías a las tablas de mysql.
Les cuento tengo un desarrollo hecho con php y funciona muy bien. pero en ciertos lugares y dada la comodidad de programar en fw me gustaría hacer pequeños módulos para la actualización de las tablas.
Por ahí lo que busco no existe y desde ya muchas gracias.
Posdata: yo tengo el código Eagle pero con las nueva versión de harbour y fivewin no puedo crear el ejecutable me da varios errores. |
eagle fw + mysql | Buenos dias
Quizás este post te de alguna idea de como poder hacerlo
[url:28ho4w98]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=26230#p144355[/url:28ho4w98]
Saludos |
eagle fw + mysql | Juan:
El siguiente es un sample que Manu entrega con la lib Eagle
[code=fw:2u0790rd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// AUTOR.....: Manuel Expósito Suárez Soft4U 2002-2009 //</span><br /><span style="color: #B900B9;">// eMail.....: <!-- e --><a href="mailto:messoft@gmail.com">messoft@gmail.com</a><!-- e --> //</span><br /><span style="color: #B900B9;">// CLASE.....: TMyTable //</span><br /><span style="color: #B900B9;">// FECHA MOD.: 11/01/2009 //</span><br /><span style="color: #B900B9;">// VERSION...: 6.00 //</span><br /><span style="color: #B900B9;">// PROPOSITO.: Ejemplo uso Egle1 + FW con Browse de FW //</span><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Eagle1.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"dtpicker.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"calendar.ch"</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Son estaticas para que sean visibles desde todo el PRG, por comodidad.</span><br /><br /><span style="color: #00C800;">static</span> oConnect <span style="color: #B900B9;">// Objeto conexion</span><br /><span style="color: #00C800;">static</span> oDS <span style="color: #B900B9;">// Objeto DataSet</span><br /><br /><span style="color: #00C800;">static</span> oWnd <span style="color: #B900B9;">// Objetos de FWH</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cTypeConn<br /><br /> SET DATE FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"DD/MM/YYYY"</span><br /><br /> <span style="color: #00C800;">if</span> AbrirTodo<span style="color: #000000;">(</span> @cTypeConn <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">4</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">120</span> ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ejemplo de manteniento de una tabla con"</span> + ;<br /> <span style="color: #ff0000;">" Eagle1 y FWH - "</span> + cTypeConn;<br /> <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd NOINSET;<br /> <span style="color: #0000ff;">TO</span> oDS:<span style="color: #000000;">cVersion</span> + <span style="color: #ff0000;">" por "</span> + oDS:<span style="color: #000000;">cAuthor</span> CLOCK DATE<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> <span style="color: #00C800;">else</span><br /><br /> Salir<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">(</span> <span style="color: #00C800;">nil</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> BuildMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oMenu<br /><br /> <span style="color: #0000ff;">MENU</span> oMenu<br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Mantenimiento"</span> <span style="color: #0000ff;">ACTION</span> Mantenimiento<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Utilities"</span><br /> <span style="color: #0000ff;">MENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Calculadora"</span> <span style="color: #0000ff;">ACTION</span> WinExec<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Calc"</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Lamando a la calculadora de Windows"</span><br /><br /> <span style="color: #0000ff;">SEPARATOR</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Escribir"</span> <span style="color: #0000ff;">ACTION</span> WinExec<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Write"</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Llamando a Write de Windows"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Salir"</span><br /> <span style="color: #0000ff;">MENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Acerca de..."</span> ;<br /> <span style="color: #0000ff;">ACTION</span> MsgAbout<span style="color: #000000;">(</span> oDS:<span style="color: #000000;">cAuthor</span>, oDS:<span style="color: #000000;">cVersion</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Informa sobre la versión de Eagle1"</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Salir"</span>;<br /> <span style="color: #0000ff;">ACTION</span> Salir<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Salir del ejemplo de Eagle1 y FWH"</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">return</span> oMenu<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Crea el objeto conexion y abre la tabla</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> AbrirTodo<span style="color: #000000;">(</span> cTConn <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cDbName := <span style="color: #ff0000;">"E1Prueba "</span><br /> <span style="color: #00C800;">local</span> cTabla := <span style="color: #ff0000;">"Test"</span><br /> <span style="color: #00C800;">local</span> lRet<br /><br /><span style="color: #B900B9;">// Con sistema empotrado:</span><br />#ifdef E1_EMBEDDED<br /><br /> <span style="color: #00C800;">local</span> aOptions := <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Prueba E1 con FWH"</span>, <span style="color: #ff0000;">"--defaults-file=./test.cnf"</span> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">local</span> aGroup := <span style="color: #000000;">{</span> <span style="color: #ff0000;">"op_servidor"</span>, <span style="color: #ff0000;">"op_cliente"</span> <span style="color: #000000;">}</span><br /><br /> oConnect := TMSEConnect<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br /> lRet := oConnect:<span style="color: #000000;">Connect</span><span style="color: #000000;">(</span> aOptions, aGroup, AllTrim<span style="color: #000000;">(</span> cDbName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> cTConn := <span style="color: #ff0000;">"Sistema Empotrado"</span><br /><br /><span style="color: #B900B9;">// Con sistema cliente/servidor:</span><br />#else<br /><br /> <span style="color: #00C800;">local</span> cHost := <span style="color: #ff0000;">"127.0.0.1 "</span><br /> <span style="color: #00C800;">local</span> cUser := <span style="color: #ff0000;">"root "</span><br /> <span style="color: #00C800;">local</span> cPassword := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> oDlg<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">14</span>, <span style="color: #000000;">35</span>;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Datos de conexión"</span> ;<br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">01</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Host:"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">01</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">GET</span> cHost <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">1.8</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Usuario:"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">02</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">GET</span> cUser <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">2.6</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Password:"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">03</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">GET</span> cPassword <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">3.4</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Base datos:"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">04</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">GET</span> cDbName <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">4</span>, <span style="color: #000000;">7</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Acptar"</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /> cHost := trim<span style="color: #000000;">(</span> cHost <span style="color: #000000;">)</span><br /> cUser := trim<span style="color: #000000;">(</span> cUser <span style="color: #000000;">)</span><br /> cPassword := trim<span style="color: #000000;">(</span> cPassword <span style="color: #000000;">)</span><br /> cDbName := trim<span style="color: #000000;">(</span> cDbName <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// Creamos el objeto "connexion"</span><br /> oConnect := TMSConnect<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// Nos conectamos al servidor</span><br /> lRet := oConnect:<span style="color: #000000;">Connect</span><span style="color: #000000;">(</span> cHost, cUser, cPassword, cDbName <span style="color: #000000;">)</span><br /><br /> cTConn := <span style="color: #ff0000;">"Sistema Clente/Sevidor"</span><br /><br />#endif<br /><br /><span style="color: #B900B9;">// Comun para cualquier sistema:</span><br /> <span style="color: #00C800;">if</span> !lRet<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"No hay conexión con el servidor"</span>, <span style="color: #ff0000;">"Operación Cancelada"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> oDS := TMyTable<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oConnect, cTabla <span style="color: #000000;">)</span><br /> oDS:<span style="color: #000000;">SetReadPADAll</span><span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span><br /> oDS:<span style="color: #000000;">SetTinyAsLogical</span><span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// Todas las siguientes solo muestran Tablas</span><br /><span style="color: #B900B9;">// (2) Con TMSQuery</span><br /><span style="color: #B900B9;">// oDS := TMSQuery():New( oConnect, "SELECT Id, First, Last, Street, City, State, Zip, Hiredate, Married FROM " + cTabla )</span><br /><span style="color: #B900B9;">// oDS:SetReadPADAll( .t. )</span><br /><span style="color: #B900B9;">// oDS:SetTinyAsLogical( .t. )</span><br /><br /><span style="color: #B900B9;">// (3) Con TMSACursor</span><br /><span style="color: #B900B9;">// oDS := TMSACursor():New( oConnect, "SELECT Id, First, Last, Street, City, State, Zip, Hiredate, Married FROM " + cTabla )</span><br /><br /><span style="color: #B900B9;">// (4) Con TMSDbfCursor</span><br /><span style="color: #B900B9;">// oDS := TMSDbfCursor():New( oConnect, "SELECT Id, First, Last, Street, City, State, Zip, Hiredate, Married FROM " + cTabla )</span><br /><br /><span style="color: #B900B9;">// Con esta sentencia hacemos que se tengan en cuenta los espacios en blanco</span><br /><span style="color: #B900B9;">// de momento no esta implemetado en Cursores locales basados en Array y Dbf</span><br /><span style="color: #B900B9;">// if oDS:ClassName() $ "TMSQUERY TMSTABLE"</span><br /><span style="color: #B900B9;">// oDS:SetReadPADAll( .t. )</span><br /><span style="color: #B900B9;">// endif</span><br /><br /> <span style="color: #B900B9;">// Abrimos la tabla, traemos el resultado a nuestro cliente</span><br /> lRet := oDS:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> !lRet<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se puede abrir la tabla: "</span> + cTabla, <span style="color: #ff0000;">"Operación Cancelada"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">(</span> lRet <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><br /><span style="color: #00C800;">static</span> procedure Salir<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> oDS <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"O"</span><br /> oDS:<span style="color: #000000;">Free</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> oConnect <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"O"</span><br /> oConnect:<span style="color: #000000;">Free</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"O"</span><br /> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> procedure Mantenimiento<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBrw, oCol<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mantenimiento tabla TEST"</span><br /><br /> @ <span style="color: #000000;">00</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">" &Datos tabla..."</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> oBrw := TXBrowse<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oDlg <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || hb_ValToStr<span style="color: #000000;">(</span> oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">6</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">6</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">7</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">7</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || DToC<span style="color: #000000;">(</span> oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">8</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">8</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || hb_ValToStr<span style="color: #000000;">(</span> oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">9</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">9</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || hb_ValToStr<span style="color: #000000;">(</span> oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || hb_ValToStr<span style="color: #000000;">(</span> oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">11</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">11</span> <span style="color: #000000;">)</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">12</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> <span style="color: #000000;">12</span> <span style="color: #000000;">)</span><br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">nTop</span> := <span style="color: #000000;">10</span><br /> :<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">10</span><br /> :<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">240</span><br /> :<span style="color: #000000;">nRight</span> := <span style="color: #000000;">370</span><br /> :<span style="color: #000000;">nColDividerStyle</span> := <span style="color: #000000;">2</span><br /> :<span style="color: #000000;">SetMySql</span><span style="color: #000000;">(</span> oDS, .f. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">bSkip</span> := <span style="color: #000000;">{</span> | n | oBrw:<span style="color: #000000;">oMysql</span>:<span style="color: #000000;">Skipper</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> @ <span style="color: #000000;">14</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Añadir"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> CtrDatos<span style="color: #000000;">(</span> oBrw, .t. <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">14</span>, <span style="color: #000000;">08</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Modificar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> CtrDatos<span style="color: #000000;">(</span> oBrw, .f. <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">14</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Borrar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> Borrar<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">14</span>, <span style="color: #000000;">22</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ordenar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> Ordernar<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">14</span>, <span style="color: #000000;">29</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"B&uscar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> Buscar<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">14</span>, <span style="color: #000000;">36</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Listar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Listado de la tabla"</span>, .t. <span style="color: #000000;">)</span>, oDS:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">14</span>, <span style="color: #000000;">57</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Borra la fila actual</span><br /><br /><span style="color: #00C800;">static</span> procedure Borrar<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> nRecNo := oDS:<span style="color: #000000;">RecNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> MsgYesNo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Realmente quiere borrar el registro "</span> + StrNum<span style="color: #000000;">(</span> oDS:<span style="color: #000000;">RecNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"?"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> oDS:<span style="color: #000000;">Delete</span><span style="color: #000000;">(</span> , <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> MyMsgInfo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Borrado en el servidor"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> MsgYesNo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Refresca la lista?"</span> <span style="color: #000000;">)</span><br /> oDS:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oDS:<span style="color: #000000;">GoTo</span><span style="color: #000000;">(</span> nRecNo <span style="color: #000000;">)</span><br /> oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">else</span><br /> MyMsgInfo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se ha borrado..."</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Establece un nuevo orden de visualizacion</span><br /><br /><span style="color: #00C800;">static</span> procedure Ordernar<span style="color: #000000;">(</span> oLbxPrincipal <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oLbx<br /> <span style="color: #00C800;">local</span> i := oDS:<span style="color: #000000;">FieldCount</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aFld := Array<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> n, cValue<br /><br /> <span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> i<br /> aFld<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> := oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> n := <span style="color: #000000;">0</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">18</span>, <span style="color: #000000;">30</span>;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Eagle1, FW y ListBox"</span> ;<br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">01</span>,<span style="color: #000000;">02</span> <span style="color: #0000ff;">LISTBOX</span> oLbx;<br /> <span style="color: #0000ff;">VAR</span> cValue;<br /> <span style="color: #0000ff;">ITEMS</span> aFld;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">70</span>;<br /> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Seleccionar"</span>;<br /> <span style="color: #0000ff;">OF</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #00C800;">DEFAULT</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> MyMsgInfo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Orden: "</span> + Str<span style="color: #000000;">(</span> n := oLbx:<span style="color: #000000;">GetPos</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + ;<br /> + CRLF + <span style="color: #ff0000;">"Nombre del campo: "</span> + cValue, <span style="color: #ff0000;">"Has elegido"</span> <span style="color: #000000;">)</span>, ;<br /> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span>;<br /> <span style="color: #0000ff;">OF</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /> <span style="color: #00C800;">if</span> n != <span style="color: #000000;">0</span> .and. oDS:<span style="color: #000000;">SetOrderBy</span><span style="color: #000000;">(</span> n,, .t. <span style="color: #000000;">)</span><br /> oLbxPrincipal:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oLbxPrincipal:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> MyMsgInfo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se ha establacido otro orden..."</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> procedure Buscar<span style="color: #000000;">(</span> oLb <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg<br /> <span style="color: #00C800;">local</span> i := oDS:<span style="color: #000000;">FieldCount</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">local</span> oSay, cSay := <span style="color: #ff0000;">"&Valor campo "</span><br /> <span style="color: #00C800;">local</span> oGet, uVal<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">70</span>;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Búsqueda de valores en el DataSet"</span> ;<br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">01</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"&Numero de columna ( 1 - "</span> + StrNum<span style="color: #000000;">(</span> i <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" ):"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">01</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> n <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999"</span> ;<br /> <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">(</span> uVal := oDS:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span>, oGet:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> oSay:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cSay + AllTrim<span style="color: #000000;">(</span> oDS:<span style="color: #000000;">FieldName</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, n > <span style="color: #000000;">0</span> .and. n <= i <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">02</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">VAR</span> cSay <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">02</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> uVal <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span>;<br /> <span style="color: #0000ff;">OF</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> oDS:<span style="color: #000000;">Find</span><span style="color: #000000;">(</span> n, uVal, .t. <span style="color: #000000;">)</span>, ;<br /> MyMsgInfo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Valor encontrado"</span> <span style="color: #000000;">)</span>, ;<br /> MyMsgInfo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Valor no encontrado"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, oLb:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"S&iguiente"</span>;<br /> <span style="color: #0000ff;">OF</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !oDS:<span style="color: #000000;">FindNext</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, MyMsgInfo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No hay más. Se llegó al final"</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span>, ;<br /> oLb:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span>;<br /> <span style="color: #0000ff;">OF</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> procedure CtrDatos<span style="color: #000000;">(</span> oLb, lNuevo <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg<br /> <span style="color: #00C800;">local</span> cQueHago<br /> <span style="color: #00C800;">local</span> nRec := oDS:<span style="color: #000000;">RecNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> lNuevo<br /> cQueHago := <span style="color: #ff0000;">"Altas"</span><br /> oDS:<span style="color: #000000;">Blank</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> cQueHago := <span style="color: #ff0000;">"Modificación"</span><br /> oDS:<span style="color: #000000;">Load</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">77</span>;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mantenimiento de la tabla Test - "</span> + cQueHago;<br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">01</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"First"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">02</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">GET</span> oDS:<span style="color: #000000;">First</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">01</span>, <span style="color: #000000;">26.6</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Last"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">02</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> oDS:<span style="color: #000000;">Last</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">2.8</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Street"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">4</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">GET</span> oDS:<span style="color: #000000;">Street</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">2.8</span>, <span style="color: #000000;">26.6</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"City"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">4</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> oDS:<span style="color: #000000;">City</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"State"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">6</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">GET</span> oDS:<span style="color: #000000;">State</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K XX"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">5.5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Zip"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">6</span>, <span style="color: #000000;">4</span> <span style="color: #0000ff;">GET</span> oDS:<span style="color: #000000;">Zip</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K 99999-9999"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">13.9</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Hiredate"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">78</span>, <span style="color: #000000;">83</span> DTPICKER oDS:<span style="color: #000000;">Hiredate</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">11</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">5.7</span>, <span style="color: #000000;">22</span> <span style="color: #0000ff;">CHECKBOX</span> oDS:<span style="color: #000000;">Married</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Married"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">33</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Age"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">6</span>, <span style="color: #000000;">24.5</span> <span style="color: #0000ff;">GET</span> oDS:<span style="color: #000000;">Age</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K 999"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">37.5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Salary"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">6</span>, <span style="color: #000000;">28</span> <span style="color: #0000ff;">GET</span> oDS:<span style="color: #000000;">Salary</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@KE 9,999,999.999"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//..................... El campo MEMO...............................................</span><br /> @ <span style="color: #000000;">6.4</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Notes"</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">8.1</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">GET</span> oDS:<span style="color: #000000;">Notes</span> MEMO <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">270</span>, <span style="color: #000000;">65</span><br /><span style="color: #B900B9;">//..................................................................................</span><br /><br /> @ <span style="color: #000000;">10.5</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Guardar"</span>;<br /> <span style="color: #0000ff;">OF</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> FuncVale<span style="color: #000000;">(</span> lNuevo <span style="color: #000000;">)</span>, oLb:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">10.5</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancelar"</span>;<br /> <span style="color: #0000ff;">OF</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lNuevo, oDS:<span style="color: #000000;">Blank</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oDS:<span style="color: #000000;">Load</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">10.5</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span>;<br /> <span style="color: #0000ff;">OF</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> procedure FuncVale<span style="color: #000000;">(</span> lNuevo <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> nRec<br /><br /> <span style="color: #00C800;">if</span> lNuevo<br /> oDS:<span style="color: #000000;">insert</span><span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span><br /> oDS:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> nRec := oDS:<span style="color: #000000;">RecNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oDS:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span><br /> oDS:<span style="color: #000000;">GoTo</span><span style="color: #000000;">(</span> nRec <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:2u0790rd]
Saludos |
eagle fw + mysql | Gracias Mario....te cuento. donde estoy hay un sistema realizado en php y mysql, funciona muy bien para realizar consultas o visualizar datos pero a la hora de realizar alguna tarea donde hay que buscar datos de otras tablas se pone medio pesadito el tema ya que hay que guardar todas las variables y reembiarlas para que cuando se cargue nuevamente la pagina tenga esos datos y la verdad me gusta mas hacerlo con fw... yo compre la versión 12.8 y no tengo ni el Eagle ni el TMysql... ja si por favor me podes decir donde adquirirlos o si FW tiene alguna forma de leer desde Localhost una base mysql y realizar alguna tarea sin usar php te lo voy agradecer y mucho ya ya tengo 62 años y me actualice con php mysql pero ya estoy tan metido con clipper y fw que la verdad me cuesta cambiarme hermano.
desde escobar donde se hace la fiesta de la flor te mando un abrazo y quedo a la espera de alguna novedad tuya... mi correo privado es <!-- e --><a href="mailto:juanca252@yahoo.com.ar">juanca252@yahoo.com.ar</a><!-- e --> desde ya un abrazo a la distancia. |
eagle fw + mysql | Juan Carlos;
La clase TMySQL esta en las contribs de xHarbour y Harbour: [url:10luzx8x]http://code.google.com/p/fivewin-contributions/downloads/list[/url:10luzx8x]
tambien tenes la clase TDolphin, en el blog de Daniel (TDolphin) hay varios ejemplos y el enlace para descargarla: [url:10luzx8x]http://tdolphin.blogspot.com/[/url:10luzx8x]
Eagle, es de pago y fue creada por Manu Exposito: <!-- e --><a href="mailto:manuexposito@terra.es">manuexposito@terra.es</a><!-- e -->, <!-- e --><a href="mailto:messoft@gmail.com">messoft@gmail.com</a><!-- e -->
Obviamente todas conectan mediante localhost
Saludos |
eagle fw + mysql | Manu, te envié hace tiempo varios correos para actualizarme, pero no obtuve respuesta
Estuve bastante tiempo apartado de este tema y ya no me acordaba ni del mail que tenía en yahoo ni id, ni na de na <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Me quedé en
[quote:3vpjbahh]
Fecha.....: 12/03/2005
Version...: 3.02
[/quote:3vpjbahh]
Aunque pone 3.03
Bueno, aún tengo esto que me fue de gran ayuda en su momento y que de he retomar de nuevo para ponerme al dia <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
[url=http://postimage.org/:3vpjbahh][img:3vpjbahh]http://s26.postimg.org/d2lzkilg9/Libro_Eagle.png[/img:3vpjbahh][/url:3vpjbahh]
[url=http://postimage.org/:3vpjbahh][img:3vpjbahh]http://s26.postimg.org/wlqktvk7t/Libro_Eagle1_001.png[/img:3vpjbahh][/url:3vpjbahh] |
eagle fw + mysql | Cristóbal, escríbeme a mi correo xmessoft de gmail o llámame por teléfono y te paso lo ultimísimo <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Vamos que no me entere yo que tú te quedas sin tu Eagle1!!!!
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
eagle fw + mysql | [quote="xmanuel":26fbzvka]Cristóbal, escríbeme a mi correo xmessoft de gmail o llámame por teléfono y te paso lo ultimísimo <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Vamos que no me entere yo que tú te quedas sin tu Eagle1!!!!
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->[/quote:26fbzvka]
Manu, gracias por tu ofrecimiento
De momento, no lo necesito ya que estoy en otras cosas <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> y no voy a tener el tiempo que requiere volver a ello, pero ten por seguro que me pondré en contacto contigo o te pondré un mensaje en el foro para solicitártelo.
Gracias de nuevo y me alegro haberte visto de nuevo por aqui |
eagle fw + mysql | Manu, te envié un correo el 17 de Septiembre
Cuando puedas dime algo
-------------------------- EDITADO -------------------
Reenviado |
eagle fw + mysql | Cristobal, vuelve a enviármelo, he tenido problemas y puede que se haya perdido <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.