Set mv pos on post read? (AREV Specific)
At 14 FEB 2001 07:46:15PM Barry Stevens wrote:
I want to be able to set the cursor position to the next vacant row in an amv table on a post read.
How do I do this?
I have been trying all the wc_mv_next%=@":Pos and wc_amv_reset% and wc_reset% combinations, but cant get it to work … just to position to the last filled line.
Barry
At 14 FEB 2001 10:45PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Barry,
The following has cosmetic flaws, but what about something like (assuming the multivalue field is the first field after the key):-
CALL CATALYST("K", {Ctrl-G}99999{Up}")
On faster machines you may not notice .
Also consider whether the post-read could reverse the order of the AMV group (in which case you'd be editing the top line and not the bottom - au natural) and the pre-save could reverse it back again.
Both incredibly ugly workarounds, unfortunately.
World Leaders in all things RevSoft
At 15 FEB 2001 05:32AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Have you ensured that it is in a related group, even id the only member? See http://www.sprezzatura.com/V3I6A19.HTM
World Leaders in all things RevSoft
At 15 FEB 2001 06:02AM Barry Stevens wrote:
]]CALL CATALYST("K", {Ctrl-G}99999{Up}"),@vm)+1)
Thanks
Barry
At 15 FEB 2001 08:48AM Don Miller - C3 Inc. wrote:
Here's a snippit that I use to do what you want. I put it on an F2 key in the controlling MV but you could certainly modify it to work on a post read event.
$INSERT VERBS,AREV.COMMON
$INSERT VERBS,LCPOSITIONS
$INSERT VERBS,WINDOW.CONSTANTS
CURR.DATA=@RECORD] ;* this is where the cursor is
CNT=COUNT(CURR.DATA,@VM)+(CURR.DATA NE '') ;*new line at end
MV.NEXT=CNT+1
WI.NEXT=WI
RESET=CLEAN.UP.EDIT$
Hope it's useful to you.
Don Miller
C3 Inc.