FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
WINDEV Code
WINDEV Code
Iniciado por Vinit Sawant, 13,dic. 2017 09:25 - 3 respuestas
Conéctese…
Vinit Sawant
#1
Publicado el 13,diciembre 2017 - 09:25
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.
Informar
0
0
Piet van Zanten
#2
Publicado el 13,diciembre 2017 - 22:35
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
Informar
0
0
Vinit Sawant
#3
Publicado el 14,diciembre 2017 - 06:57
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
Informar
0
0
Arie
#4
Publicado el 14,diciembre 2017 - 10:01
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.
Informar
0
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto