Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp 6.0
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00275577
Message ID:
00275585
Views:
19
>This code stops at the copy line as the syntax must not be right. Can anyone see what I'm doing wrong, I've tried every variation I could think of with no luck.
>
>***COMBINE.PRG
>SET EXACT OFF
>CLEAR
>CLOSE DATA
>SELECT A
>USE VV ORDER DAM1
>SELECT B
>USE AHORSE ORDER NAME
>SELECT A
>LOCATE
>SCAN
>STORE DAM1 TO MDAM1
>SELECT B
>SEEK MDAM1
>DO WHILE NAME = MDAM1
>STORE NAME TO cname
>***code bombs on copy
>COPY FILE &cname TO C:\JUNK\pedigrees\&cname
>SKIP
>ENDDO
>SELECT A
>ENDSCAN
>CLOSE DATA
>RETURN

Try

COPY FILE &cname TO ('C:\JUNK\pedigrees\' + cname)
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform