In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

About Progress Dialog

Xailer professional forum in English
Responder
Avatar de Usuario
Dionisis Divaris
Mensajes: 484
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

About Progress Dialog

Mensaje por Dionisis Divaris »

Hello Ignacio, Jose
I can not run this piece of code (not file creation but progress dialog)
what;s wrong ????
FUNCTION SetupFiles()
LOCAL ii,prog1
LOCAL DBS:={}
With object Prog1:= TProgressDlg():New( )
:nCommonAVI := aviCOPYFILES
:lNoMinimize := .T.
:lAutoTime := .T.
:lNoCancel := .T.
:lCenter := .T.
:Create()
END
Prog1:Run()
Prog1:nValue:=10
Prog1:cTitle := "¸ëåã÷ïò & Äçìéïõñãßá Áñ÷åßùí"
IF ! FILE("MAIN.DBF")
AADD(DBS,{ "CODE" , "C", 06,0 })
AADD(DBS,{ "FIRST", "C" ,18,0 })
AADD(DBS,{ "LAST" , "C" ,30,0 })
AADD(DBS,{ "ADDR" , "C" ,30,0 })
AADD(DBS,{ "PZIP" , "C" ,07,0 })
AADD(DBS,{ "CITY" , "C" ,30,0 })
AADD(DBS,{ "TEL1" , "C" ,11,0 })
AADD(DBS,{ "TEL2" , "C" ,11,0 })
AADD(DBS,{ "FAX" , "C" ,11,0 })
DBCREATE("MAIN",DBS)
USE MAIN NEW
DBCREATEINDEX("MAIN","CODE",{||CODE})
DBCREATEINDEX("MAIN01","LAST",{||LAST})
Prog1:cText:="Äçìéïõñãßá Áñ÷åßïõ :"
Prog1:cMessage := "ÌÁÉÍ.DBF"
Prog1:Reset()
IF Prog1:nValue < 100 ; ProcessMessages() ;Endif
ENDIF
For ii:= 1 to 300000 ; Next
Prog1:nValue:=80
inkey(100)
Prog1:Stop()
RETURN nil
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Avatar de Usuario
Dionisis Divaris
Mensajes: 484
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

About Progress Dialog

Mensaje por Dionisis Divaris »

Ï "Dionisis Divaris" <sv1fkk@hol.gr> Ýãñáøå óôï ìÞíõìá
news:[email=4423bcff@ozsrvnegro.ozlan.local...]4423bcff@ozsrvnegro.ozlan.local...[/email]
> Hello Ignacio, Jose
>
> I can not run this piece of code (not file creation but progress dialog)
> what;s wrong ????
>
> FUNCTION SetupFiles()
> LOCAL ii,prog1
> LOCAL DBS:={}
> With object Prog1:= TProgressDlg():New( )
> :nCommonAVI := aviCOPYFILES
> :lNoMinimize := .T.
> :lAutoTime := .T.
> :lNoCancel := .T.
> :lCenter := .T.
> :Create()
> END
> Prog1:Run()
> Prog1:nValue:=10
> Prog1:cTitle := "¸ëåã÷ïò & Äçìéïõñãßá Áñ÷åßùí"
>
> IF ! FILE("MAIN.DBF")
>
> AADD(DBS,{ "CODE" , "C", 06,0 })
> AADD(DBS,{ "FIRST", "C" ,18,0 })
> AADD(DBS,{ "LAST" , "C" ,30,0 })
> AADD(DBS,{ "ADDR" , "C" ,30,0 })
> AADD(DBS,{ "PZIP" , "C" ,07,0 })
> AADD(DBS,{ "CITY" , "C" ,30,0 })
> AADD(DBS,{ "TEL1" , "C" ,11,0 })
> AADD(DBS,{ "TEL2" , "C" ,11,0 })
> AADD(DBS,{ "FAX" , "C" ,11,0 })
> DBCREATE("MAIN",DBS)
> USE MAIN NEW
> DBCREATEINDEX("MAIN","CODE",{||CODE})
> DBCREATEINDEX("MAIN01","LAST",{||LAST})
> Prog1:cText:="Äçìéïõñãßá Áñ÷åßïõ :"
> Prog1:cMessage := "ÌÁÉÍ.DBF"
> Prog1:Reset()
>
> IF Prog1:nValue < 100 ; ProcessMessages() ;Endif
> ENDIF
> For ii:= 1 to 300000 ; Next
> Prog1:nValue:=80
> inkey(100)
> Prog1:Stop()
>
> RETURN nil
Ok I Found the solution
I put a ProcessMessages() into a Delay loop and
all pending messages processed fine.
Works perfect.
TIA
Dionisis
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Avatar de Usuario
Dionisis Divaris
Mensajes: 484
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

About Progress Dialog

Mensaje por Dionisis Divaris »

Ï "Dionisis Divaris" <sv1fkk@hol.gr> Ýãñáøå óôï ìÞíõìá
news:[email=4423bcff@ozsrvnegro.ozlan.local...]4423bcff@ozsrvnegro.ozlan.local...[/email]
> Hello Ignacio, Jose
>
> I can not run this piece of code (not file creation but progress dialog)
> what;s wrong ????
>
> FUNCTION SetupFiles()
> LOCAL ii,prog1
> LOCAL DBS:={}
> With object Prog1:= TProgressDlg():New( )
> :nCommonAVI := aviCOPYFILES
> :lNoMinimize := .T.
> :lAutoTime := .T.
> :lNoCancel := .T.
> :lCenter := .T.
> :Create()
> END
> Prog1:Run()
> Prog1:nValue:=10
> Prog1:cTitle := "¸ëåã÷ïò & Äçìéïõñãßá Áñ÷åßùí"
>
> IF ! FILE("MAIN.DBF")
>
> AADD(DBS,{ "CODE" , "C", 06,0 })
> AADD(DBS,{ "FIRST", "C" ,18,0 })
> AADD(DBS,{ "LAST" , "C" ,30,0 })
> AADD(DBS,{ "ADDR" , "C" ,30,0 })
> AADD(DBS,{ "PZIP" , "C" ,07,0 })
> AADD(DBS,{ "CITY" , "C" ,30,0 })
> AADD(DBS,{ "TEL1" , "C" ,11,0 })
> AADD(DBS,{ "TEL2" , "C" ,11,0 })
> AADD(DBS,{ "FAX" , "C" ,11,0 })
> DBCREATE("MAIN",DBS)
> USE MAIN NEW
> DBCREATEINDEX("MAIN","CODE",{||CODE})
> DBCREATEINDEX("MAIN01","LAST",{||LAST})
> Prog1:cText:="Äçìéïõñãßá Áñ÷åßïõ :"
> Prog1:cMessage := "ÌÁÉÍ.DBF"
> Prog1:Reset()
>
> IF Prog1:nValue < 100 ; ProcessMessages() ;Endif
> ENDIF
> For ii:= 1 to 300000 ; Next
> Prog1:nValue:=80
> inkey(100)
> Prog1:Stop()
>
> RETURN nil
Ok I Found the solution
I put a ProcessMessages() into a Delay loop and
all pending messages processed fine.
Works perfect.
TIA
Dionisis
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Responder