Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox and Remote Views
Message
From
19/10/2000 12:05:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
ListBox and Remote Views
Miscellaneous
Thread ID:
00431539
Message ID:
00431539
Views:
43
Hi All,

This is my first message posting on the Thread. So I hope you'll be kind and answer ASAP!!! . Just kidding!!! :-)

Here is my problem:

I have a ListBox in a form that is populated with data from a remote view.
When adding a record to the view I get an error when setting the .Enabled property of the ListBox to .F.. At this point an APPEND BLANK on the view has already occurred.
The error message is:
Error: 1547
Cannot insert an empty row from a remote view into its base table(s)

I tried the following:

CURSORSETPROP('SendUpdates', .F., myView)
myListBox.Enabled = .F.
CURSORSETPROP('SendUpdates',.T. , myView)

This approach worked for the error part but the problem is that if I cancel out of the adding process then TableRevert() doesn't do its job and I ended up with a BLANK record.
I checked GetFldState(-1) before and after I changed the .Enabled property off the list to .F. and it changed from '3333333' to '1111111'; probably the reason why the TableRevert() fails to work. I tried to change the state of the record using SetFldState() only to find that, as quoted on the Hacker's Guide, this function has a strange behavior.

Thanks in advance and I hope this message is not too long.

Iraldo.
Next
Reply
Map
View

Click here to load this message in the networking platform