PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Probleme sur requete ( positionnement )
Probleme sur requete ( positionnement )
Started by StefP, Sep., 22 2005 11:46 AM - 2 replies
Connect yourself…
StefP
#1
Posted on September, 22 2005 - 11:46 AM
Effectuant un calcul de remonté d'aplomb sur une nomenclature, j'ai un probléme avec la fonction Hlitrecherche sur une requete sur 1 ENREGISTREMENT.
Ma requete comprend un ORDER BY et est filtré par le champ IDNOMENCLA
Trace du fichier du champs IDNOMENCLA
35 aplomb 2 qté=1 Qté calculé=2
34 aplomb 3 qté=2 Qté calculé=8
6886 aplomb 2 qté=4 Qté calculé=4 <--- c'est la le bug
32 aplomb 2 qté=2 Qté calculé=2
31 aplomb 3 qté=4 Qté calculé=8
30 aplomb 2 qté=2 Qté calculé=2
29 aplomb 2 qté=1 Qté calculé=1
28 aplomb 1 qté=1 Qté calculé=1
Tous fonctionne sauf pour le "6886", mon code passe à travers
Je pense que le Hlitrecherche pose un problême
Si quelqu'un à une idée
Merci
Le Code :
HExécuteRequête(Req_nom1,hRequêteDéfaut+hModifieFichier,numarbo)
HLitDernier(Req_nom1)
TANTQUE PAS H.endehors
recherche=Req_nom1.IDNOMENCLA
// ici je traite le calcul en remontant mon fichier jusqu'a l'aplomb 1
...Explication
Ligne traité à l'aplomb 3 Qté=2
Je recherche le premier l'aplomb 2 (qté= 3 ) et ensuite le premier aplomb 1 (Qté=4)
en faisant des HLitPrécédent(Req_nom1)
Donc la Qté totale sur la ligne traité est 2x3x4
...
// ici je replace le pointeur au bonne endroit
HLitRecherche(Req_nom1,IDNOMENCLA,recherche)
Req_nom1.NO_QUANTITENOM=nbtot
HModifie(Req_nom1)
Message("Calculs de quantité en cours : "+recherche)
HLitPrécédent(Req_nom1)
FIN
Report
0
0
Alain
#2
Posted on September, 22 2005 - 5:12 PM
Bonjour,
Eventuellement en utilisant HSauvePosition et HRetourPosition ?
Report
0
0
StefP
#3
Posted on September, 26 2005 - 10:13 AM
Je vais essayer
cdt
Stef
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
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