Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datatoclip with zero records
Message
From
31/03/2006 11:58:31
 
 
To
31/03/2006 11:51:14
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01108844
Message ID:
01109556
Views:
32
>>>>>When I do _vfp.datatoclip with a table/cursor that has zero records, the result is an error:
>>>>>
>>>>>OLE IDispatch exception code 0 from Visual Foxpro for Windows: 11 :Function argument value, type or count is invalid...
>>>>>
>>>>>Have I encountered a third bug in only three days here?
>>>>
>>>>No, you have to check for there being any records BEFORE you use DataToClip.
>>>
>>>So, YES, I have found a third bug in three days. :) Because it is not documented that DataToClip will fail if there are zero records. Agree?
>>
>>No, I do not agree. There are other processes that you could do that would fail if there are no records. It's just a situation you should code against.
>
>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.

Now THAT I would agree with.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform