Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Joachim Bieler Newsgroups: comp.lang.clipper.visual-objects Subject: Re: bBrowser Editable Date: Tue, 26 Apr 2011 07:25:57 +0200 Lines: 44 Message-ID: <91n3b4FskoU1@mid.individual.net> References: <566ea3b0-3e74-4588-ae9e-7f0b81204957@x37g2000prb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net LRgs1+SBdnhZPLREpbS2+ASyab0bPXaL7fqf2twiw51o2AoBtS Cancel-Lock: sha1:BDNIPk3wjsTl3lPmV4jR7wjyWuE= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: <566ea3b0-3e74-4588-ae9e-7f0b81204957@x37g2000prb.googlegroups.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:941 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 >