Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't pack... and combo box (beginner) questions.
Message
 
 
À
24/05/2001 15:18:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00510815
Message ID:
00511386
Vues:
18
Hi!

What you meant 'at screen'? If user press 'DELETE' button, or delete record in the grid (there is appropriate event), use following code to assure user no longer see the record:
tableupdate(.T.) && use this in case of buffered alias
if !eof()
  skip
  if !bof()
    skip -1
  endif
else
  if !bof()
    skip-1
  else
    go top
  endif
endif
thisform.Refresh
If SET DELETED ON, record will go out of scope as soon as record pointer moved. You DO NOT NEED that damn PACK command, this is administrators command only, so never use it for user interface.

HTH.


>Nope. Thanks Vlad, but I'm still getting that message. I need the user to be able to delete the record on screen.
>Any other ideas?
>TIA
>Ulises
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform