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


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

Re: VO2.8 error - ACCESS/ASSIGN method.....

From Massimo Bighelli <info@arcasistemi.it>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: VO2.8 error - ACCESS/ASSIGN method.....
Date 2011-07-04 18:38 +0200
Organization ARCA Sistemi S.r.l.
Message-ID <iusq9t$fpn$2@speranza.aioe.org> (permalink)
References <c4058b21-f660-4206-8977-0c99814d2b09@b39g2000prd.googlegroups.com>

Show all headers | View raw


Bill,

use different names for your class instance and tour ACCESS
i.e.
ACCESS myVar CLASS XXX
return SELF:_myVar

and in your class declaration

PROTECT _myVar AS ...


Massimo



Il 04/07/2011 05:57, Bill Tillick ha scritto:
> Help please: I cannot figure out to deal with the cause of this new
> error in VO2.8 when compiling a VO2.5 program (It never was a problem
> on 2.5!) -
> "ACCESS/ASSIGN method has same name as PROTECTED or HIDDEN ivar xxxxx:
> 51565"
> where the 'offending' code is such as:
>
> ASSIGN address2 (uValue) CLASS CreaDB
> SELF:FIELDPUT(#address2, uValue)
> RETURN address2 := uValue
>
> or
> access SHORTNAME() class AllowsUpdate
> return self:FieldGet(#SHORTNAME)
>
> How did you folks solve this problem when moving to 2.8?
>
> Thanks,
> Bill

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


Thread

VO2.8 error - ACCESS/ASSIGN method..... Bill Tillick <wtillick@gmail.com> - 2011-07-03 20:57 -0700
  Re: VO2.8 error - ACCESS/ASSIGN method..... "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-07-04 01:14 -0700
  Re: VO2.8 error - ACCESS/ASSIGN method..... Massimo Bighelli <info@arcasistemi.it> - 2011-07-04 18:38 +0200
  Re: VO2.8 error - ACCESS/ASSIGN method..... "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-07-04 22:07 +0000
    Re: VO2.8 error - ACCESS/ASSIGN method..... Bill Tillick <wtillick@gmail.com> - 2011-07-07 20:59 -0700

csiph-web