Here's something that I just tried hoping it might work:
On a form I defined a variable:
vCaption = ('Current Number:' & (CTXT(.vfCurrNum)) )
Then I ran the form using:
EDIT USING ... WHERE ... CAPTION .vCaption
It didn't work although I half-expected the first row to show the caption
before the form was entered and then be one row behind on subsequent rows.
(The variable is fine if placed normally on the form.)
Anybody know if it's possible to get a form variable into the form's
caption?
This I tried not really expecting it to work but it did:
I placed a button on the form which runs this eep:
*( FileName: Form_Position.EEP ... ... Date of last amendment: 01/12/2002 )
SET VAR vChoose = NULL
CHOOSE vChoose FROM #LIST 'Top Left,Top Right,Bottom Left,Bottom Right'
&vMenu_Pos +
CAPTION 'Choose form position:' LINES 4
IF vChoose = 'Top Right' THEN
SET RBGSIZE 328 0 965 540
ENDIF
IF vChoose = 'Bottom Right' THEN
SET RBGSIZE 328 480 965 540
ENDIF
IF vChoose = 'Top Left' THEN
SET RBGSIZE 0 0 965 540
ENDIF
IF vChoose = 'Bottom Left' THEN
SET RBGSIZE 0 480 965 540
ENDIF
RETURN
*( End of program )
I don't know why but I half-expected the screen to get scrambled moving it
from within itself but it works like a dream. The next step is to create an
image with 4 arrows and use that for the button...
And the request:
In v7 would it be possible - without making it a nightmare for apps already
in use - to standardise the way edit/browse using and RBGSize use their
co-ordinates?
It would be much easier to either define the top left corner and the
width/height or the top left and the bottom right corners in both cases
rather than do it one way in one and the other way in the other.
Maybe with commas separating the co-ordinates does it one way and without
any commas does it the other?
Regards,
Alastair.
----------------------------------
A D B Burr,
St. Albans, UK.
----------------------------------
[EMAIL PROTECTED]
----------------------------------
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/