Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12715 > unrolled thread
| Started by | donsummario@gmail.com |
|---|---|
| First post | 2019-11-28 01:38 -0800 |
| Last post | 2019-11-29 08:59 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | donsummario@gmail.com |
|---|---|
| Date | 2019-11-28 01:38 -0800 |
| Subject | Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile Class CheckFiles:aFiles:Access / Assign |
| Message-ID | <9b0f18b3-1716-4c98-9799-8e8ebd145b6b@googlegroups.com> |
Buongiorno a tutti, Sto migrando alcune procedure da 2.7sp4b a 2.8sp4 !!! da una dll storica ChechFiles ricevo i seguenti errori : 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 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))) Qualcuno può gentilmente aiutarmi a comprendere il motivo di questo comportamento ?? coe al solito ringrazio in anticipo chiunque voglia spendersi per questo. Mario Summa
[toc] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2019-11-28 13:12 +0100 |
| Subject | Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile ClassCheckFiles:aFiles:Access / Assign |
| Message-ID | <h49rt0Fau8fU1@mid.individual.net> |
| In reply to | #12715 |
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 --
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2019-11-29 08:06 +0100 |
| Subject | Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile ClassCheckFiles:aFiles:Access / Assign |
| Message-ID | <h4bucbFo7muU1@mid.individual.net> |
| In reply to | #12716 |
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 --
[toc] | [prev] | [next] | [standalone]
| From | donsummario@gmail.com |
|---|---|
| Date | 2019-12-02 01:40 -0800 |
| Subject | Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile ClassCheckFiles:aFiles:Access / Assign |
| Message-ID | <87b0ba7d-7f13-47a0-9f0c-15fe02730ac2@googlegroups.com> |
| In reply to | #12717 |
Hi to all I'm sorry and Apologize, for the use of Italian in the Iternational forum.... Therefore I will tanks Mr. Wolfgang Riedmann and Danilo for Yours answer to my problem T.I.A. all Mario Summa Il giorno venerdì 29 novembre 2019 08:06:54 UTC+1, Wolfgang Riedmann ha scritto: > 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 > > > > --
[toc] | [prev] | [next] | [standalone]
| From | Danilo Giuliani <softdevo@tiscali.it> |
|---|---|
| Date | 2019-11-29 08:59 +0100 |
| Subject | Re: Ca.Vo. 2.8sp4 - errore 51565 dalla CheckFile Class CheckFiles:aFiles:Access / Assign |
| Message-ID | <qrqj5m$1kbr$1@gioia.aioe.org> |
| In reply to | #12715 |
Non uso più VO da anni, ma ritengo che sia sufficiente: FErase(oArchive:FileSpec:FullPath)> FErase(StrTran(Upper(oArchive:FileSpec:FullPath), cExtension, cMemoExt)) Danilo > Il 28/11/2019 10:38, donsummario@gmail.com ha scritto: > Buongiorno a tutti, Sto migrando alcune procedure da 2.7sp4b a 2.8sp4 !!! > da una dll storica ChechFiles ricevo i seguenti errori : > > 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 > > 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))) > > Qualcuno può gentilmente aiutarmi a comprendere il motivo di questo comportamento ?? coe al solito ringrazio in anticipo chiunque voglia spendersi per questo. > Mario Summa > > > >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web