Xbrowse :nValue:nFootertype:= AGGR_SUM gives error

Xbrowse :nValue:nFootertype:= AGGR_SUM gives error

Postby Marc Venken » Fri Sep 22, 2017 8:12 pm

Hello,

If I use a Num header as title in Xbrowse, I get a syntax error.


Code: Select all  Expand view

   aVelden7 :=  { ;
   { "omschrijving", "Item"        ,nil, 220 , NIL}, ; // 3
   { "Datum"      , "Datum"        ,nil,  75 ,NIL}, ; // 5
   { "info"       , "Persoon"      ,nil,  235 ,NIL }, ; // 6
   { "ploeg"      , "Ploeg"        ,nil,  35 ,NIL}, ; // 7
   { "aantal"     , "Aantal"       ,nil,  45 ,3}, ; // 8
   { "M_116"      , "116"        ,nil,  35 ,3}, ; // 9   --->>> If I put M116 no error , but if I leave 116, syntax error.
   { "M_128"      , "128"        ,nil,  35 ,3}, ; // 9
   { "M_140"      , "140"        ,nil,  35 ,3}, ; // 9
   { "M_152"      , "152"        ,nil,  35 ,3}, ; // 9
   { "M_164"      , "164"        ,nil,  35 ,3}, ; // 9
   { "M_Small"    , "S"           ,nil,  35 ,3}, ; // 9
   { "M_Medium"   , "M"          ,nil,  35 ,3}, ; // 9
   { "M_Large"    , "L"           ,nil,  35 ,3}, ; // 9
   { "M_XLarge"   , "XL"           ,nil,  35 ,3}, ; // 9
   { "M_XXLarge"   , "XXL"            ,nil,  35 ,3}, ; // 9
   { "M_XXXLarge" , "XXXL"           ,nil,  35 ,3}}

Xbrowse Item :

:116:nFooterType  := AGGR_SUM   // will give error

:aantal:nFooterType  := AGGR_SUM  // is ok.

 


Is it ment to be that Headers in Xbrowse need to be Char values and not Num values ?
It's not a big deal, but i just want to know.
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1397
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Xbrowse :nValue:nFootertype:= AGGR_SUM gives error

Postby nageswaragunupudi » Fri Sep 22, 2017 9:52 pm

Variable name can not start with a digit.
When the header name can not be used like this, please try the alternative:

oBrw:oCol( "116" ):nFooterType := AGGR_SUM
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10470
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Xbrowse :nValue:nFootertype:= AGGR_SUM gives error

Postby Marc Venken » Sat Sep 23, 2017 11:05 am

It Works. Thank.

For my interest :

There are more options that can be used in both ways :

1 : with

oBrw:options

and 2 : from inside

WITH OBJECT oBrw
: Options
END

Is there a advantidge in using one of the other ? or do we have more options with 1 or 2?

Just curious and learning....
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1397
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 57 guests