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


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

Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile ClassCheckFiles:aFiles:Access / Assign

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile ClassCheckFiles:aFiles:Access / Assign
Followup-To poster
Date Fri, 29 Nov 2019 08:06:51 +0100
Lines 77
Message-ID <h4bucbFo7muU1@mid.individual.net> (permalink)
References <9b0f18b3-1716-4c98-9799-8e8ebd145b6b@googlegroups.com> <h49rt0Fau8fU1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace individual.net v0guX/Wnjoiht+Ca+VR9zQBSTveSOqQA/N7MrZUVNMszEbsfg=
Cancel-Lock sha1:urXbNZj4WeOxuLt0l8G8rDQiluA=
User-Agent XanaNews/1.18.1.6
Xref csiph.com comp.lang.clipper.visual-objects:12717

Followups directed to: poster

Show key headers only | View raw


Hi to all,

sorry, only after rereading my post I have noted that I have answered
in Italian in the International forum - sorry for that.

Therefore I will repeat my answer in English:

since 2.8 it is not more permitted to have a instance variable and a
access/assign of the same name.

class xxx
 protect oVar as object

access oVar class xxx
 return oVar

is not more accepted by the compiler ( a part that I would consider
that a bad and dangerous style, not only for the compiler, but also for
the user).
So you should write:

class xxx
 protect _oVar as object

access oVar class xxx
 return _oVar

And for the second question: the parameter type of FErase() was changed
from PSZ to string in 2.8.

Wolfgang





Wolfgang Riedmann wrote:

> Ciao Mario,
> 
> > 1) - "ACCESS/ASSIGN method has same name as PROTECTED or HIDDEN ivar
> > AFILES: 51565 " - nella riga 1 di entrambe.  La Variabile è
> > definita nella classe come "Protect"
> > 
> > ACCESS aFiles() CLASS CheckFiles  
> > 
> > RETURN self:aFiles 
> >  
> > e
> > 
> > ASSIGN aFiles(aValue) CLASS CheckFiles
> > 	self:aFiles := aValue
> > RETURN self:aFiles
> 
> questo non è più ammesso nella 2.8 perchè non ammesso in .NET
> (access/assign e variable interna dello stesso nome).
> Devi rinominare uno dei due. Rinominerei la protect interna mettendo
> davanti un _
> 
> 
> > 2) - "Possibly dangerous automatic conversion STRING <-> PSZ: 51440"
> > l'errore è riferito al Comando :
> > // Delete original file and Index
> > FErase(String2Psz(oArchive:FileSpec:FullPath))
> > 			FErase(String2Psz(StrTran(Upper(oArchive:FileSpec:FullPath),
> > cExtension, cMemoExt)))
> 
> togli lo StringPsz().
> 
> Saluti
> 
> Wolfgang



-- 

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


Thread

Ca.Vo. 2.8sp4 - errore 51565 dalla  CheckFile Class CheckFiles:aFiles:Access / Assign donsummario@gmail.com - 2019-11-28 01:38 -0800
  Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile ClassCheckFiles:aFiles:Access / Assign "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-11-28 13:12 +0100
    Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile ClassCheckFiles:aFiles:Access / Assign "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-11-29 08:06 +0100
      Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile ClassCheckFiles:aFiles:Access / Assign donsummario@gmail.com - 2019-12-02 01:40 -0800
  Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile Class CheckFiles:aFiles:Access / Assign Danilo Giuliani <softdevo@tiscali.it> - 2019-11-29 08:59 +0100

csiph-web