Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Notes in the same row
Message
 
 
À
12/04/2007 15:16:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01214141
Message ID:
01215180
Vues:
13
>Hi Sir,
>
>Thanks for the info. However, the crsBomNotes.Notes could not seem to replace the crsMLE.Notes. Here is my code.
>
>
>SELECT crsMLE
>lcNotes = ""
>SCAN WHILE crsMLE.PartNum = crsBomNotes.PartNum
> lcNotes = m.lcNotes + IIF(EMPTY(m.lcNotes), "", " ") + ALLTRIM(crsBomNotes.Notes)
>ENDSCAN
>REPLACE Notes WITH m.lcNotes IN crsMLE
>
>
>Please help.
>
>Thanks,
>Sam

You're scanning the wrong cursor.
select crsBomNotes
if seek(crsMLE.PartNum)
  scan while PartNum = crsMLE.PartNum
  ...
  endscan
endif
replace...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform