FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Utilities / Utilidades Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Sat Dec 09, 2017 03:13 PM
Decoremos el arbol de navidad de FWH - Decorate the FWH Christmas tree



Es tiempo de compartir y qu茅 mejor forma que incluir en el 谩rbol peque帽as o grandes contribuciones como regalo a nuestros amigos y compa帽eros
Seguro que puede quedar muy bonito entre todos
Feliz Navidad

It is time to share and what better way to include in the tree small or large contributions as a gift to our friends and colleagues
It sure can be very nice among all
Merry Christmas
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Sat Dec 09, 2017 03:18 PM
Mi primer regalo
My first present

Espero que os guste
I hope you like it

https://bitbucket.org/fivetech/fivewin- ... stflds.prg



Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Mon Dec 11, 2017 07:22 AM
Gracias Cristobal :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Mon Dec 11, 2017 09:13 AM

Buen铆sima aportaci贸n D. Cristobal. Esperando para la siguiente bola :D

Yo tambi茅n creo: https://www.youtube.com/watch?v=cLShxhQwwwA

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Mon Dec 11, 2017 10:27 AM

Gracias, espero que aportemos entre todos a decorarlo

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Sat Dec 30, 2017 11:43 PM


Please, change images names in code source

https://bitbucket.org/fivetech/fivewin- ... estmdi.prg

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Sun Dec 31, 2017 01:50 PM
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 174
Joined: Wed Nov 29, 2017 11:42 AM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Mon Jan 01, 2018 08:58 PM

Al compilar se necesita declarar las variables
Local nPanel, nItem
en HazExplorerBar()

y comentar la l铆nea
* :nAlign := 3

pues lanza un error en ejecuci贸n

Un Saludo,

Xevi.



Aprendiz de la vida!!!
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Mon Jan 01, 2018 11:52 PM
Xevi wrote:Al compilar se necesita declarar las variables
Local nPanel, nItem
en HazExplorerBar()

y comentar la l铆nea
* :nAlign := 3

pues lanza un error en ejecuci贸n


En cuanto a la declaraci贸n de variables, cierto, habia desactivado los warnings en mi editor, gracias
A mi no me da error de ejecuci贸n, pero si es asi, puedes poner o enviarme el ERROR.LOG que genera?
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Thu Jan 04, 2018 06:56 PM
Look

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Mon Jan 15, 2018 01:31 PM
Download gdrive file without using apis



Please, look this page ( for example )

https://sites.google.com/site/sitescaptudela/insertar-gadgets/google-drive-enlaces-directos

and use for download
//----------------------------------------------------------------------------//
//
// Function para descargar ficheros desde GDrive
// El truquillo est谩 en la direcci贸n de la descarga, el resto es trivial
//
// The ID of the file you get in the address offered by GMail when sharing the file.
// Just change the access address and add that ID
//
// https://docs.google.com/uc?export=download&id=
//----------------------------------------------------------------------------//

#include "Fivewin.ch"

//----------------------------------------------------------------------------//

Function Main()

聽 聽local cUrl

聽 聽// 
聽 聽cUrl 聽 := "https://docs.google.com/uc?export=download&id=YOUR_ID_OF_FILE"
聽 聽Cn_DownLoad( cUrl, .F., "c:\fwh\mydown.zip" )
聽 聽//

Return nil

//----------------------------------------------------------------------------//

Function Cn_DownLoad( cUrl, lText, cFileTarget )

聽 聽local oHttp
聽 聽local cContents 聽 聽 := ""
聽 聽DEFAULT cUrl 聽 聽 聽 聽:= ""
聽 聽DEFAULT lText 聽 聽 聽 := .F.
聽 聽DEFAULT cFileTarget := ""

聽 聽if !Empty( cUrl )
聽 聽 聽 DeleteUrlCacheEntry( cUrl )
聽 聽 聽 
聽 聽 聽 TRY
聽 聽 聽 聽 聽oHttp 聽 聽 := FWGetOleObject( "MSXML2.ServerXMLHTTP.3.0" )
聽 聽 聽 聽 聽//oHttp 聽 聽 := CreateObject( "MSXML2.ServerXMLHTTP.3.0" )
聽 聽 聽 聽 聽oHttp:Open( "GET", cUrl, .F. )
聽 聽 聽 聽 聽oHttp:Send()
聽 聽 聽 聽 聽oHttp:WaitForResponse()
聽 聽 聽 聽 聽DEFAULT lText := .F.
聽 聽 聽 聽 聽if lText
聽 聽 聽 聽 聽 聽 cContents 聽:= oHttp:ResponseText()
聽 聽 聽 聽 聽else
聽 聽 聽 聽 聽 聽 cContents 聽:= oHttp:ResponseBody()
聽 聽 聽 聽 聽endif
聽 聽 聽 CATCH

聽 聽 聽 END
聽 聽 聽 
聽 聽 聽 if Len( cContents ) > 0 .and. !Empty( cFileTarget )
聽 聽 聽 聽 聽MemoWrit( cFileTarget, cContents )
聽 聽 聽 else
聽 聽 聽 聽 聽MsgInfo( "Error en la descarga", "Atencion" )
聽 聽 聽 endif
聽 聽else
聽 聽 聽 MsgInfo( "URL proporcionada en blanco", "Error en la descarga" )
聽 聽endif
Return nil

//----------------------------------------------------------------------------//
DLL STATIC FUNCTION DELETEURLCACHEENTRY( cUrl AS LPSTR ) AS BOOL;
聽 聽 PASCAL FROM "DeleteUrlCacheEntryA" LIB "wininet.dll"
//----------------------------------------------------------------------------//
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 174
Joined: Wed Nov 29, 2017 11:42 AM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Mon Jan 15, 2018 02:15 PM

Crist贸bal,

muy buen aporte!!!

FUNCIONANDO PERFECTAMENTE!!!

Gracias.

Un Saludo,

Xevi.



Aprendiz de la vida!!!
Posts: 310
Joined: Sun Jan 08, 2006 10:09 PM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Mon Jan 15, 2018 06:39 PM

Friends,

A nice gift to 2018!

Posts: 58
Joined: Tue Mar 11, 2008 03:18 AM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Tue Jan 16, 2018 12:04 AM

Muy bien.

Gracias por compartir.

Posts: 58
Joined: Tue Mar 11, 2008 03:18 AM
Re: Decoremos el arbol de navidad de FWH - Decorate the FWH tree
Posted: Tue Jan 16, 2018 06:15 PM

Cristobal Navarro,

Si no es pedir m谩s. 驴Podr铆a dar una ruta de ejemplo de UPLOAD?

Gracias