Question on Delete
Terry A. Pickering
pickering@myself.com
Wed, 25 Feb 1998 14:30:05
I don't know why I always have so much with these dang things! .....
I have a quick screen (Alpha, 7.10F3) that has the following code in it.
The screen has a primary record, then a detail with a cluster of 10
records. The problem is when I try to delete an individual line in the
cluster by fieldmarking. It always prompts for the id range and I can't get
it to allow me to select the record by fieldmarking.
In the example below, the "Modify/Existing Records" works fine. It allows
me to use the cursor arrows to select the record to change, etc. The
"Delete/Entire Transaction" works fine. It deletes the primary record and
all the detail records. The "Delete/Individual Line" works, EXCEPT it
requires I put the starting and ending ID numbers in (I hate doing that!)
The "Delete/Individual Line TEST" is the one I've been playing around with
to see if I can get it to work the way I want.
I've tried putting different options on the MENUITEM line itself, with no
luck. I've tried different varities of the PUSH by putting them on the same
line, in reverse order -- every which way and combination I could think of
- Noluck. Any suggestions?
ACTIONMENU LABEL "Modify "
MENUITEM LABEL "Existing Records" ACTION DESIGNER DES1
ACTIONMENU LABEL "Delete "
MENUITEM LABEL "Entire Transaction" ACTION DELETE, UPDATE STAY
MENUITEM LABEL "Individual Line" ACTION DELETE MARK, UPDATE STAY
MENUITEM LABEL "Individual Line TEST" ACTION DESIGNER DES2
PROCEDURE DESIGNER DES1
BEGIN
PUSH FIELDMARK
END
PROCEDURE DESIGNER DES2
BEGIN
PUSH FIELDMARK
PUSH DELETE MARK
END
Thanks for the assistance - Terry P.
Terry Pickering CompuGroup, Inc.
pickering@myself.com Portland, Oregon USA
www.teleport.com/~compugrp Cessna 172 & Lancair ES
__!__
_______(*)_______
! ! !