Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox and Remote Views
Message
De
19/10/2000 12:05:06
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
ListBox and Remote Views
Divers
Thread ID:
00431539
Message ID:
00431539
Vues:
44
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform