Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Occasionally hanging on a table with buffering
Message
De
19/01/2008 10:07:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/01/2008 19:52:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01283131
Message ID:
01283230
Vues:
22
Perhaps, as Çetin explained, you turn on buffering too late. You should do it in Form.Load(), at the latest (the other option, I think, is some method in the Form's DE - but I never used that). Form.Init() is not appropriate.

Or perhaps you are still turning buffering off again?

When saving records, don't forget to check for the return value of TableUpdate(). Here is some sample code:
Form.OnSave()
if TableUpdate()
  return .T.
else
  local laError(1)
  aerror(laError)
  MessageBox("Error saving record, message #" + trans(laError(1) + "-" + laError(2))
  return .F.
endif
This is just the skeleton; the actual method would probably have some additional details.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform