set error variable verr
open c1
if verr <> 0 then  // you can also test for SqlCode here instead
  pause 2 using 'Cursor c1 Does NOT exist'
endif


----- Original Message ----- 
From: "Bruce Chitiea" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Tuesday, June 26, 2012 5:45 PM
Subject: [RBASE-L] - Test for Cursor?


All:


Is there a test for a cursor defined in memory, along the lines of:


If exists cursor c1 then
   set var vcursorexists = 'yes'
endif


? Thanks



Bruce

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: 
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, 
place any 
text to search for.
================================================


Reply via email to