Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12717
| 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 | 2019-11-29 08:06 +0100 |
| Message-ID | <h4bucbFo7muU1@mid.individual.net> (permalink) |
| References | <9b0f18b3-1716-4c98-9799-8e8ebd145b6b@googlegroups.com> <h49rt0Fau8fU1@mid.individual.net> |
Followups directed to: poster
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
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