FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
[WD19]Automated Procedure
[WD19]Automated Procedure
Débuté par Ericus, 11 mai 2017 11:50 - 3 réponses
Connectez-vous…
Ericus
#1
Posté le 11 mai 2017 - 11:50
Good day
I use the automated procedure mechanism in Windev to run a process every 10 minutes. However, I am not sure if, once the process is started, it will finish within 10 minutes. Sometimes it might, other times it might not.
How can I run the automated procedure as regularly as possible but only once the previous procedure is finished.
Thanks in advance for any assistance.
Ericus Steyn
Signaler
0
0
Christoph Erdmann
#2
Posté le 11 mai 2017 - 13:45
Hallo Ericus,
look in the help for SEMAPHORE. I think, this can do this.
Christoph
Signaler
0
0
Fabrice Harari
#3
Posté le 11 mai 2017 - 14:38
Hi Ericus,
it depends of what you mean by " as regularly as possible but only once the previous procedure is finished."
if your process runs for 12 mn, should the next one start at 12+10 or immediately?
Anyway, the way I'm doing that is as follow:
- instead of using a 10mn timer, I'm using a 10 seconds timer
- I declare a global boolean bAlreadyInProcess, set at false by default
- in my timer code, I do
if bAlreadyInProcess=true then
return
else
IF TIME CONDITION is true (that's where the question above comes into play) then
bAlreadyInProcess=true
----
real process here
----
balreadyinProcess=False
end
end
And that's it...
This system also allows me to start multiple processes with different time interval settings from inside ONE timer
Best regards
Signaler
0
0
Ericus
#4
Posté le 11 mai 2017 - 14:40
Thanks Fabrice
That will do the trick.
I'm normally so sharp don't know why I missed that.
Regards
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte