Thank you, Emmitt!
Your tip helped me out.
For those intrested, here is the code applied to a Static text object in a
form:
SET ERROR MESSAGE 2038 OFF
DROP TABLE ttopfive
CREATE TEMPORARY TABLE ttopfive +
(tregnr INTEGER, tkostnad CURRENCY, tslen=(SLEN(CTXT(tkostnad))) INTEGER, +
tsfil=(SFIL('.',(13-tslen))) TEXT, +
xyregnr=((CTXT(tregnr))&tsfil&(CTXT(tkostnad))) TEXT 30)
CREATE INDEX ittopfive ON ttopfive (tregnr)
INSERT INTO ttopfive (tregnr, tkostnad) +
SELECT TOP 5 regnr,kostnad FROM debitering ORDER BY regnr DESC
SELECT (SRPL(LISTOF(xyregnr),',',(CHAR(10)),0)) INTO varhint +
INDICATOR ivvaluelist FROM ttopfive
SET ERROR MESSAGE 2038 ON
RETURN
--------------------------end of code-------------------------
The code is placed as a custom form action and executed from
the forms afterstart eep with this code:
PROPERTY rbase_form_action toppfem ' '
PROPERTY statictext1 hint .varhint
PROPERTY statictext1 showhint 'TRUE'
RETURN
-------------------------end of code--------------------------
Best regards
Christian
> Christian,
>
> If you can capture and store the last five entries in a variable (and it
> sounds like you may have or could easily get there), then build up a
> message in a variable and use the PROPERTY command to set the hint for the
> object.
>
> Emmitt Dove
> Converting Systems Architect
> Evergreen Packaging, Inc.
> [email protected]
> (203) 214-5683 m
> (203) 643-8022 o
> (203) 643-8086 f
> [email protected]
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
> [email protected]
> Sent: Friday, January 28, 2011 06:57
> To: RBASE-L Mailing List
> Subject: [RBASE-L] - Show info on hoover over
>
> Hi,list!
>
> Does anybody know if it is possible to have a list of the last five
> entries show when hoovering the cursor over an area or bitbutton in a
> form?
>
> Like a hint showing when entering a field.
>
> My solution for seeing the last 5 entries is a button, calling a form with
> a dbgrid. So I have solved my need but it would be cooler if I could slide
> the mouse a few cm to the right and have info show up, then slide back and
> the info disappear.
>
> Regards
>
> Christian
>
> --- 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.
> ================================================
>