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