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


Groups > comp.lang.clipper.visual-objects > #3779 > unrolled thread

new errors with SP4

Started byigsoftsprl.be@gmail.com
First post2012-07-15 11:39 -0700
Last post2012-07-15 21:55 +0200
Articles 4 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  new errors with SP4 igsoftsprl.be@gmail.com - 2012-07-15 11:39 -0700
    Re: new errors with SP4 Martin Hock <martintheodorfritz@gmail.com> - 2012-07-15 12:55 -0700
      Re: new errors with SP4 Jean-Luc Stassen <igsoftsprl.be@gmail.com> - 2012-07-15 13:39 -0700
    Re: new errors with SP4 "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2012-07-15 21:55 +0200

#3779 — new errors with SP4

Fromigsoftsprl.be@gmail.com
Date2012-07-15 11:39 -0700
Subjectnew errors with SP4
Message-ID<7406c0bc-0082-4685-b7de-837fa0606898@googlegroups.com>
Hello all,

With SP4, i'm buzy re-importing and compile all my apps.
There are now tons of errors that will not be there before.
Because I don't want to turn warings error of, I take my time to correct the errors... (usually, method without return)
But I also get specific error I can't correct:

ACCESS/ASSIGN method has same name as PROTECTED or HIDDEN ivar EMP_WP

"EMP_WP" is here one of them, I have also HWND, CFILTRE,CHERCHE

I'm surprised because, CHERCHE is typically french and I don't think it's used by the dev team !! 

What can I do if I don't want to delete some of my Access/Assign method ?

Jean-Luc

[toc] | [next] | [standalone]


#3780

FromMartin Hock <martintheodorfritz@gmail.com>
Date2012-07-15 12:55 -0700
Message-ID<3768878e-393d-4781-b786-e64d7724b427@googlegroups.com>
In reply to#3779
Am Sonntag, 15. Juli 2012 20:39:26 UTC+2 schrieb Jean-Luc Stassen:
> Hello all,
> 
> With SP4, i&#39;m buzy re-importing and compile all my apps.
> There are now tons of errors that will not be there before.
> Because I don&#39;t want to turn warings error of, I take my time to correct the errors... (usually, method without return)
> But I also get specific error I can&#39;t correct:
> 
> ACCESS/ASSIGN method has same name as PROTECTED or HIDDEN ivar EMP_WP
> 
> &quot;EMP_WP&quot; is here one of them, I have also HWND, CFILTRE,CHERCHE
> 
> I&#39;m surprised because, CHERCHE is typically french and I don&#39;t think it&#39;s used by the dev team !! 
> 
> What can I do if I don&#39;t want to delete some of my Access/Assign Methode

Jean Luc,

You could Prefix your Member variables with e.g. M like in other languages.
Class Myclass
   Protect Mhwnd as ptr
Access Hwnd class Myclass
Return mhwnd
  
HSH martin

[toc] | [prev] | [next] | [standalone]


#3782

FromJean-Luc Stassen <igsoftsprl.be@gmail.com>
Date2012-07-15 13:39 -0700
Message-ID<f19641d0-2b0a-46ed-a743-617c8d485442@googlegroups.com>
In reply to#3780
Ok Thank you. I was in 2.8 sp 2 before and I don't get those error.
I declare nothing, everything was created with a data window.
I found that if I re-save the data window, the error goes aways !

Thank you
Jean-Luc

Le dimanche 15 juillet 2012 21:55:53 UTC+2, Martin Hock a écrit :
> Am Sonntag, 15. Juli 2012 20:39:26 UTC+2 schrieb Jean-Luc Stassen:
> &gt; Hello all,
> &gt; 
> &gt; With SP4, i&amp;#39;m buzy re-importing and compile all my apps.
> &gt; There are now tons of errors that will not be there before.
> &gt; Because I don&amp;#39;t want to turn warings error of, I take my time to correct the errors... (usually, method without return)
> &gt; But I also get specific error I can&amp;#39;t correct:
> &gt; 
> &gt; ACCESS/ASSIGN method has same name as PROTECTED or HIDDEN ivar EMP_WP
> &gt; 
> &gt; &amp;quot;EMP_WP&amp;quot; is here one of them, I have also HWND, CFILTRE,CHERCHE
> &gt; 
> &gt; I&amp;#39;m surprised because, CHERCHE is typically french and I don&amp;#39;t think it&amp;#39;s used by the dev team !! 
> &gt; 
> &gt; What can I do if I don&amp;#39;t want to delete some of my Access/Assign Methode
> 
> Jean Luc,
> 
> You could Prefix your Member variables with e.g. M like in other languages.
> Class Myclass
>    Protect Mhwnd as ptr
> Access Hwnd class Myclass
> Return mhwnd
>   
> HSH martin

[toc] | [prev] | [next] | [standalone]


#3781

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2012-07-15 21:55 +0200
Message-ID<a6gln1F5mdU1@mid.individual.net>
In reply to#3779
Bonjour Jean-Luc,

> ... (usually, method without return)
This Error was already mentioned by VO 2.8 with the more strict compiler.
It's nothing new of SP4

> But I also get specific error I can't correct:
> ACCESS/ASSIGN method has same name as PROTECTED or HIDDEN ivar EMP_WP

Since VO 2.8 same names are no longer allowed. Also nothing new. This error
mostly occurs by recompiling imported VO 2.7-aefs

I'm naming the Protect variables as follows:
The Protect has a beginning underscore and the Assign/Access method the same
name as the variable, but without underscore. See the sample below. (old Ivo
Wessels trick)

CLASS ccEtikett INHERIT CustomControl
PROTECT _nIndex, _nReiheNr, _nSpalteNr AS DWORD //

ACCESS nIndex CLASS ccEtikett
RETURN _nIndex

ASSIGN nIndex(uValue) CLASS ccEtikettSELF:_nIndex := uValue
RETURN _nIndex

By the way,  HWND, CFILTRE,CHERCHE are usable as varable names, if you
follow the suggestion with the underscore

Good Luck
Urs

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web