Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" 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: References: <9b0f18b3-1716-4c98-9799-8e8ebd145b6b@googlegroups.com> 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 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 --