Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datatoclip with zero records
Message
From
31/03/2006 14:54:39
 
 
To
31/03/2006 14:43:11
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01108844
Message ID:
01109640
Views:
25
>>I disagree. You only really know you need to code against it because you get an error. It's not like trying to access record 5 in an empty table. You'd know intuitively that would fail. I don't feel that _vfp.datatoclip with an empty table is necessarily the sort of thing you'd code against intuitively.
>>
>>I agree with Peter and Cetin that it's a bug in the documentation.
>
>But then I'd rather see the code fixed, not the documentation. The function could simply return empty string for zero records. Wouldn't that be nice?

But then you couldn't use TRY/CATCH to process easily. You'd still have to check for "no records" situation for that code to work (unless no records was OK).
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform