PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
WINDEV Code
WINDEV Code
Started by Vinit Sawant, Dec., 13 2017 9:25 AM - 3 replies
Connect yourself…
Vinit Sawant
#1
Posted on December, 13 2017 - 9:25 AM
Hi,
I'm having one small code in my application but I'm not able to understand it as I'm new to this technology.
pModule est un Module = paModule
pDossier est un Dossier dynamique = paDossier
// ETAPE 1 - on supprime les modifs précédentes
Requête_DT_enregistrées_supprimer.p_Dossier = FenInt_DT_module.pDossier:identifiant
Requête_DT_enregistrées_supprimer.p_Module = FenInt_DT_module.pModule:ordre
SI PAS HExécuteRequête(Requête_DT_enregistrées_supprimer) ALORS
Logger:Erreur(ChaîneConstruit("Echec suppression des anciennes Données Techniques du module %1",FenInt_DT_module.pModule:ordre),ErreurInfo())
RENVOYER Faux
FIN
If someone help me out to understand this code and also when the error mentioned in the code will be come then it will be very useful.
Thanks in advance.
Report
0
0
Piet van Zanten
#2
Posted on December, 13 2017 - 10:35 PM
Hi Vinit,
Line 4 and 5 supply the parameters to a delete query.
Line 6 executes the query.
If it fails the error will be logged.
Kind regards,
Piet
Report
0
0
Vinit Sawant
#3
Posted on December, 14 2017 - 6:57 AM
Hi Piet,
Thanks for your answer.
Can you please also tell me under what circumstances "Echec suppression des anciennes Données Techniques du module %1" this error will occur?
Regards,
Vinit
Report
0
0
Arie
#4
Posted on December, 14 2017 - 10:01 AM
Vinit,
in normal situation where everything runs fine a query will not give an error.
But sometimes things go wrong, when for instance network/server is slow you can get a timeout,
When you change your analysis most of the time Windev will alert you to modify queries as well or do it for you. Sometimes this fails and then you run a query against a database where fieldnames may differ. This will also throw an error.
Or your query deletes records which have childrecords. Depending on your database-constraints you may need to delete the child records first. Therefore the query fails. This situation however must be handeld in your code beforehand, so it is actually a developers fault.
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text