FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Xbrowse :nValue:nFootertype:= AGGR_SUM gives error
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Xbrowse :nValue:nFootertype:= AGGR_SUM gives error
Posted: Fri Sep 22, 2017 08:12 PM
Hello,

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


Code (fw): Select all Collapse
   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.08 with Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse :nValue:nFootertype:= AGGR_SUM gives error
Posted: Fri Sep 22, 2017 09: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
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: Xbrowse :nValue:nFootertype:= AGGR_SUM gives error
Posted: 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.08 with Harbour

Continue the discussion