Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAttach Always Returns False
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00814123
Message ID:
00814195
Views:
10
Hi Mark

I found the problem. My builder had incorrectly entered a field in the UpdateFieldList. Once I fixed the problem it worked just fine.

Thanks
Simon



>Just as a test, leave the UpdatableFieldlist, UpdateNameList, KeyFieldList properties blank, and only specify the DataSourceType. Then attach should return .t. Then Detach the cursor [table]. Populate one of the 3 properties and test again. If failed, then you know which property is incorrect. Test each property separately to help narrow down source of error. If anything is incorrect in those properties [if not empty], the attach will fail.
>
>>Hi
>>
>>When I try use the CursorAttach method to attach a cursor to a CursorAdapter Object it always returns False and the CursorStatus remains 0.
>>
>>Since no error messages are generated I wanted to know what might cause this problem so I could track the cause. There does not seem to be any discussion in the help about why the CursorAttach method would return false.
>>
>>I am using the CursorAttach method to attach an existing VFP table to the CursorAdapter Object.
>>
>>The code is:
>>
>>Use myTable
>>omyCursorAdapter.CursorAttach("myTable")
>>
>>I set the datasourcetype to Native and filled in the UpdatableFieldlist, UpdateNameList, KeyFieldList properties prior to calling the method.
>>
>>Thanks
>>Simon
Simon White
dCipher Computing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform