next native Control to Express++ Syntax

This forum is for eXpress++ general support.
Message
Author
User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: next native Control to Express++ Syntax

#11 Post by Auge_Ohr »

hi,

got it when make some modification after look into Debugger

my "OnAction" Codeblock is not in aGetListItem :o
it seem me that in DCMONTH.CH are 13 parameter in xGETLIST_OPTIONS missing <bOnItemDblClick>
after add 14st Parameter i saw this in Debugger
DcCustom.jpg
DcCustom.jpg (364.34 KiB) Viewed 10977 times
next i try this

Code: Select all

xxx := aGetListItem[bGETLIST_ACTION]  // -> NIL
xxx := aGetListItem[21,14] // -> Codeblock

*  SetOption( @oMonth:OnItemDblClick, aGetListItem[bGETLIST_ACTION] )
   SetOption( @oMonth:OnItemDblClick, aGetListItem[21,14] )
using bGETLIST_ACTION (= 18 ? ) i got NIL :?:
my Codeblock is in Element 21 as 14st Item.

so what i'm still doing wrong with Express++ Syntax :think:
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: next native Control to Express++ Syntax

#12 Post by rdonnay »

I will download your code and give this a look today to help figure this out.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: next native Control to Express++ Syntax

#13 Post by rdonnay »

In your DCMONTH.CH file, you added the ONACTION clause but did not include the code block in the options array:

Change this:

Code: Select all

  @ <row>, <col> DCCUSTOM {|a|DC_DxeMonth(a)} [<clauses>]                       ;
       ;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS,                           ;
         {<ms>,<st>,<sw>,<ss>,<se>,<maxs>,<cdt>,<nDate>,<lbd>,<tbg>,            ; /* each 10 */
          <tfg>,<bbg>,<bfg>} )                                                                              ; /* Jimmy */
      [;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS2,{<dDate1>,<dDate2>})]     ; /* Jimmy */
      [;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS3,{<cResType>,<cResFile>})] ; /* Jimmy */

To this:

Code: Select all

  @ <row>, <col> DCCUSTOM {|a|DC_DxeMonth(a)} [<clauses>]                       ;
       ;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS,                           ;
         {<ms>,<st>,<sw>,<ss>,<se>,<maxs>,<cdt>,<nDate>,<lbd>,<tbg>,            ; /* each 10 */
          <tfg>,<bbg>,<bfg>,<bOnItemDblClick>} )                                ; /* Jimmy */
      [;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS2,{<dDate1>,<dDate2>})]     ; /* Jimmy */
      [;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS3,{<cResType>,<cResFile>})] ; /* Jimmy */
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: next native Control to Express++ Syntax

#14 Post by Auge_Ohr »

thx for Answer.
i have enhance from 13 to 14 parameter as you show it.

still have to ask how to get right Element with my Codeblock ?

Code: Select all

// bGETLIST_ACTION = 18 (?) -> NIL  
*  SetOption( @oMonth:OnItemDblClick, aGetListItem[bGETLIST_ACTION] )

// as show in Debugger i find my Codeblock here
   SetOption( @oMonth:OnItemDblClick, aGetListItem[21,14] )
so i like to ask what is the right Express++ Syntax for [21,14] ?
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: next native Control to Express++ Syntax

#15 Post by rdonnay »

That looks correct. Are you saying that it doesn't work?
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: next native Control to Express++ Syntax

#16 Post by Auge_Ohr »

rdonnay wrote:That looks correct. Are you saying that it doesn't work?
it does not work with

Code: Select all

aGetListItem[bGETLIST_ACTION]
it does work with

Code: Select all

aGetListItem[21,14]
start Sample
mark 1st Day with lbDown and hold it
move to 2nd Days and lbUp

now a Msgbox() (see Codeblock) must appear to show Day Difference.
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: next native Control to Express++ Syntax

#17 Post by rdonnay »

If you want it to work with bGETLIST_ACTION, you need to change the code to this:

Code: Select all

  @ <row>, <col> DCCUSTOM {|a|DC_DxeMonth(a)} [<clauses>]                       ;
       ;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS,                           ;
         {<ms>,<st>,<sw>,<ss>,<se>,<maxs>,<cdt>,<nDate>,<lbd>,<tbg>,            ; /* each 10 */
          <tfg>,<bbg>,<bfg>} )                                                  ; /* Jimmy */
      [;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS2,{<dDate1>,<dDate2>})]     ; /* Jimmy */
      [;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS3,{<cResType>,<cResFile>})] ; /* Jimmy */
      [;DC_GetListSet(DCGUI_GETLIST,bGETLIST_ACTION,<bOnItemDblClick>)]         ; /* Jimmy */
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: next native Control to Express++ Syntax

#18 Post by Auge_Ohr »

rdonnay wrote:If you want it to work with bGETLIST_ACTION, you need to change the code to this:

Code: Select all

...
      [;DC_GetListSet(DCGUI_GETLIST,bGETLIST_ACTION,<bOnItemDblClick>)]         ; /* Jimmy */
YES ... that is what i want, THX for help
greetings by OHR
Jimmy

Post Reply