Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't pack... and combo box (beginner) questions.
Message
From
25/05/2001 05:59:48
 
 
To
24/05/2001 15:18:47
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00510815
Message ID:
00511386
Views:
17
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform