Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #941

Re: bBrowser Editable

From Joachim Bieler <support@votools.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: bBrowser Editable
Date 2011-04-26 07:25 +0200
Message-ID <91n3b4FskoU1@mid.individual.net> (permalink)
References <566ea3b0-3e74-4588-ae9e-7f0b81204957@x37g2000prb.googlegroups.com>

Show all headers | View raw


Hi Rob,

your code is right and should work. One reason why it nevertheless does not work could be that 
several columns exist with the name. You can check this with the code below:

iDuplicate := 0
for iPos := 1 upto oBrowser:ColumnCount
     oColumn := oBrowser:GetColumn(iPos)
     if oColumn:NameSym = #YEAR
         iDuplicate += 1
     endif
next
if iDuplicate > 1
     ? "Column exists repeatedly."
endif

Regards,
Joachim Bieler



Am 17.04.2011 13:57, schrieb Rob Smith:
> Hi
>
> I'm using bArrayServer and wish to disable editing the first column
>
> Relevant code is
>
> 	self:oDCbBrowserDataBS:Editable:=true
> 	self:oDCbBrowserDataCR:Editable:=true
> 	self:oDCbBrowserDataPL:Editable:=true
>
> 	oDataColumn:=self:oDCbBrowserDataBS:GetColumn(#YEAR)
> 	oDataColumn:Caption:="Year"
> 	oDataColumn:Width:=180
> 	oDataColumn:Editable:=false
>
> The caption and width work fine, but it still allows editing of all
> columns, what am I doing wrong?
>
> Thanks
>
> Rob
>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

bBrowser Editable Rob Smith <rasmithhalifax@googlemail.com> - 2011-04-17 04:57 -0700
  Re: bBrowser Editable "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-17 22:12 +0000
  Re: bBrowser Editable D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-18 06:47 +0200
    Re: bBrowser Editable "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-19 22:15 +0000
      Re: bBrowser Editable D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-20 09:19 +0200
        Re: bBrowser Editable "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-04-20 19:36 +1000
          Re: bBrowser Editable D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-22 18:11 +0200
        Re: bBrowser Editable "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-20 21:50 +0000
          Re: bBrowser Editable D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-22 18:19 +0200
            Re: bBrowser Editable "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-23 00:57 +0000
              Re: bBrowser Editable D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-24 07:09 +0200
                Re: bBrowser Editable "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-25 22:44 +0000
                Re: bBrowser Editable D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-26 21:29 +0200
                Re: bBrowser Editable "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-26 22:19 +0000
                Re: bBrowser Editable D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-27 17:48 +0200
            Re: bBrowser Editable "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-04-29 20:05 +1000
  Re: bBrowser Editable Joachim Bieler <support@votools.com> - 2011-04-26 07:25 +0200

csiph-web