Jason,

I think this is one that you need to enclose like such

SET VAR vQuotes = (CVAL('QUOTES'))
SET VAR vMyJump TEXT = +
('PROPERTY TABLE MyTable '+.vQuotes+'JUMPTO '+.vmyrecnum+.vQuotes)
&MyJump

Jan

 


-----Original Message-----
From: Jason Kramer <[email protected]>
To: [email protected] (RBASE-L Mailing List)
Date: Wed, 06 Jan 2010 15:47:10 -0500
Subject: [RBASE-L] - JUMPTO question

    I have a form with a DBGrid.  When the user clicks on a record to modify 
it, several variable controls are populated with information.  If the user 
clicks on another record in the DBGrid, the variable controls will be 
populated with new information, throwing out any unsaved changes (if any).  
If there are any unsaved changes, I want to give the user he chance to stay 
on the current record, or discard their changes and move to the new record.
    I recored the record number using GETPROPERY TABLE 'MyTable->RECNO' 
vmyrecnum in the ON ROW ENTRY EEP.  I added a test for changes and a user 
prompt to the ON ROW EXIT EEP, along with this code for when the user wants 
to stay on the current record instead of discarding changes and moving on:
SET VAR vjum TEXT = ('jumpto'&.vmyrecnum)
PROPERTY TABLE MyTable .vjmp

    When this bit of code executes, the database closes/crashes.  There is 
no warning or error, R:BASE just coses and disappears from the screen.
    Just to make sure the JUMPTO code was not wonky, I used it in a command 
button, and that works fine.  The active record jumps to whatever record is 
stored in vmyrecnum. 

    If anyone has any ideas or suggestions, I would appreciate it.
                                     Thanks,
                                     Jason

-- 
Jason Kramer
University Archives and Records Management
002 Pearson Hall
(302) 831 - 3127 (voice)
(302) 831 - 6903 (fax)

Reply via email to