Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HELP!!! This code works in debug but not in program.
Message
From
17/09/1998 07:55:21
John Baird
Coatesville, Pennsylvania, United States
 
 
To
16/09/1998 16:27:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00137460
Message ID:
00137719
Views:
18
>What happens if you change:
>lcCmd = 'USE ' + lcFile + ' IN 0 ALIAS ' + lcCurName
>to
>USE (lcFile) IN 0 ALIAS (lcCurName)
>?
>...snip
>>One other thing, the method's error handler picks up an error 'Structural index not found'. These files are downloaded from a vendor's ftp site and have no index files associated with them. If I use the same macro expansion from the code window, it runs just fine.
>...snip

Same Result. I tried running the code in a separate program with the same results.

Solved the problem late last night, though. Seems like the ON ERROR handler was causing some kind of problem. When we issue ON ERROR prior to running this loop and then turn ON ERROR &lcOnError, the code runs perfectly.

Thanks for the suggestion......
Previous
Reply
Map
View

Click here to load this message in the networking platform