What do I need to change at its pre-processor directive so instead of coding
- Code: Select all Expand view
- REDEFINE FOLDEREX ::oFolder ID 110 OF ::oDlg ;
PROMPTS "tab1", "tab2" ;
DIALOGS "dlg1", "dlg2"
I could also pass arrays for prompts and dialogs like this
- Code: Select all Expand view
- REDEFINE FOLDEREX ::oFolder ID 110 OF ::oDlg ;
PROMPTS {"tab1", "tab2"} ;
DIALOGS {"dlg1", "dlg2"}
Can the #xcommand be coded to be able to accept both format?
TIA
Excerpt from FWH19.12's folder.ch;
- Code: Select all Expand view
#xcommand REDEFINE FOLDEREX [<oFolder>];
[ ID <nId> ] ;
[ <of: OF, WINDOW, DIALOG> <oWnd> ] ;
[ <prm: PROMPT, PROMPTS, ITEMS> <cPrompt,...> ] ;
[ <bm: BITMAPS, IMAGES, BMPS> <cbmps,...> ] ;
[ <dlg: DIALOG, DIALOGS, PAGE, PAGES> <cDlgsName,...> ] ;
[ TAB HEIGHT <ntabheight> ];
[ OPTION <nOption> ] ;
[ ROUND <nRound> ];
[ SEPARATOR <nSep> ];
[ <lAdjust: ADJUST> ] ;
[ <lStretch: STRETCH> ] ;
[ POPUP <upop>];
[ ALIGN <nAlign,...> ] ;
[ BRIGHT <nBright> ] ;
[ ACTION <uAction> ];
[ ON CHANGE <uChange> ] ;
[ ON PAINT TAB <uPaint> ];
[ ON PAINT TEXT <uPaintxt> ];
[ HELPTOPICS <cnHelpids,...> ] ;
[ <layout: TOP, LEFT, BOTTOM, RIGHT> ] ;
[ <lAnimate: ANIMATE> [ SPEED <nSpeed> ] ] ;
[ FONT <oFont> ]; //-->> byte-one 2010
[ <lTransparent: TRANSPARENT> ] ;
[ <lBorder: NOBORDER > ] ;
[ COLOR <nClrPane> ] ;
=> ;
[<oFolder> := ] TFoldereX():ReDefine( <nId>, <oWnd>, [\{<cDlgsName>\}],;
[\{<cbmps>\}], [\{<cPrompt>\}], <ntabheight>, [\{<cnHelpids>\}],;
<nRound>, [{|nOption,nOldOption,Self| <uChange>}],;
[{|Self,nOption| <uPaint>}], [{|Self,nOption| <uPaintxt>}], ;
[\{<nAlign>\}], <.lAdjust.>, <nSep>, <nOption>, ;
[{|Self,nOption| <upop>}], <.lStretch.>, [ Upper(<(layout)>) ],;
[{|Self,nOption| <uAction>}], <nBright>, <.lAnimate.>, [<nSpeed>], ;
<oFont>, <.lTransparent.>, <.lBorder.>, <nClrPane> )