Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API Exception Error with BEAUTIFY - Partially Solved

Status
Not open for further replies.

fmoore0001

Programmer
Dec 3, 2002
192
US
Guys, I did ask some time ago about why when I ran BEAUTIFY on some forms and prg files I would get an API Exception error, but not on others. I have found at least one reason. If you use the prefix 'm.' for memory variables in your code the BEAUTIFY program will fail every time. If you remove them no more problems.

The only problem I do see is code where you have to differeniate field variables and memory variables, like in a SCATTER/GATHER routine. But the use of the 'm.' prefiex to variables is definitely one cause of API errors in BEAUTIFY, at least in Visual Foxpro 6.0 and 7.0.

Frank
 


Why not use :

Code:
create cursor myCursor (Name c(20))
SCATTER NAME oTest 

?oTest.name

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Frank,

Thanks for posting that. I remember that when you first posted details of the error, I did a search of the Microsoft Knowledge Base, and couldn't see anything relevant. Maybe you should report it to Microsoft as a bug.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top