Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Notes in the same row
Message
 
 
To
12/04/2007 15:16:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01214141
Message ID:
01215180
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform