Larry,

 

Thanks for the help. How do I prevent a report from printing twice when
using the below on entry EEP?

 

RECALC VAR

GETPROPERTY Quote_Comp TEXTVALUE vQuotePrint

PRINT KayParkQuote WHERE QuoteID = .vQuotePrint

CLEAR VAR vQuotePrint

PROPERTY DistID_Comp SET_FOCUS 'TRUE'

RETURN

 

The EEP works and the focus ends up in the proper field after printing
the quote, but the print screen comes up twice. Do I either have to add
something else to this EEP or have a separate EEP on exit?

 

Jim

 

________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of Lawrence
Lustig
Sent: Monday, April 13, 2009 8:04 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: scrolling region

 

<< 

GETPROPERTY Quote_Comp TEXTVALUE vQuoteBrowse

SET VAR vFormMode = 'Browse'

BROWSE USING KayParkEditQuote WHERE QuoteID = .vQuoteBrowse

RETURN

>> 

 

Is QuoteID an INTEGER column?  If so, you can either do:

 

BROWSE USING KayParkEditQuote WHERE QuoteID = &vQuoteBrowse

 

or

 

SET VAR vQuoteBrowseInt = (INT(.vQuoteBrowse))

BROWSE USING KayParkEditQuote WHERE QuoteID = .vQuoteBrowseInt

 

Also, you don't need to use the vFormMode variable to "tell"
KayParkEditQuote what mode it's in.  Instead, in the form's AFTER START
EEP, just set vFormMode = .RBTI_FORM_MODE and let R:Base tell you how
the form was started.

--

Larry

 

 

 

 

 

 

 

 

Reply via email to