Jim and Ron, your suggestion should do it, thanks! I probably will use the
LJS function in there to get it exactly lined up!
The one problem with your idea of course, is that users could inadvertently
SELECT that line, so an error trap would be needed.
I think we still need a LEFT JUSTIFIED title possibility and I'll suggest it
to RDCC as an enhancement.
David Blocker
----- Original Message -----
From: "J.M. GRATIAS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 05, 2001 5:25 PM
Subject: Lining up TITLE with CHOOSE Box Data
>
> David Blocker :
>
> >>
> I often use the TITLE option of the CHOOSE command to create column
> headings
> for the data appearing in the CHOOSE box below if the data is multiple
> columns from a table. However, several features of the the TITLE line make
> this a challenge:
> ....
> Has anyone found a way to do this with less trial and error and cleaner,
> more predictable results?
> <<
>
> To do that, I add a extra line formated the same way as data :
>
> LABEL debut
> CHOOSE vchoix FROM #VALUES FOR +
> ' N� exp. |Derni�re MAJ|Type (Exp�diteur)', '*' FROM tversion +
> WHERE LIMIT = 1 UNION SELECT +
> (CTXT(LJS(numcde,8) & '|' & (CTXT(datemaj)) & '|' +
> + scase1 & (SGET(cregdou,1,1)) & scase3 & cp +
> & '(' + adresse1 + ')')), (CTXT(numcde)) FROM commande +
> WHERE cetat = '1' AND csaisie <> '0' AT 10, 20 CHKBOX +
> TITLE 'Choisir les exportations � aviser puis OK. Cancel pour autres N� :'
> +
> CAPTION .vcaption LINE .vINT FORMATTED
>
> tversion is my 'dummy table', commande is the table where to choose data.
>
> Of course, I have a prevent user from choosing this line :
>
> IF (SLOC(.vchoix,'*')) <> 0 THEN
> -- Choix = i �re ligne
> GOTO debut
> ENDIF
>
> Hope this will help,
>
> J.M. GRATIAS, Logimatique, France