Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error with Clone Method
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Error with Clone Method
Miscellaneous
Thread ID:
00398580
Message ID:
00398580
Views:
35
I think I found a bug in the BizObj.Clone method. If you don't pass in a 0 to clone all records then the method errors out with Data Type Error on the line:

IF lnRecNo != 0 and lnRecNo <= lnRecCnt

The error occurs because lnRecCnt is never populated with the BizObj's Reccount(). It is only populated from the case statement where "tiRecord = 0"

I added the following before the Do Case to correct the error:

lnRecCnt = RECCOUNT()
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Next
Reply
Map
View

Click here to load this message in the networking platform