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


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

Method has been strongly typed but has not been declared in the class

Started byRob Smith <rasmithhalifax@gmail.com>
First post2015-09-02 05:04 -0700
Last post2015-09-02 16:23 +0200
Articles 4 — 3 participants

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


Contents

  Method has been strongly typed but has not been declared in the class Rob Smith <rasmithhalifax@gmail.com> - 2015-09-02 05:04 -0700
    Re: Method has been strongly typed but has not been declared in the class "Wolfgang Riedmann" <wriedmann@gmail.com> - 2015-09-02 15:24 +0200
      Re: Method has been strongly typed but has not been declared in the class Rob Smith <rasmithhalifax@gmail.com> - 2015-09-02 06:58 -0700
        Re: Method has been strongly typed but has not been declared in the class "Gerhard Bunzel" <g.bunzel@domonet.de> - 2015-09-02 16:23 +0200

#8393 — Method has been strongly typed but has not been declared in the class

FromRob Smith <rasmithhalifax@gmail.com>
Date2015-09-02 05:04 -0700
SubjectMethod has been strongly typed but has not been declared in the class
Message-ID<fb8432b3-1af9-4865-a3b0-610685b600d0@googlegroups.com>
Hi

Suddenly I get the above error when adding a new method, why? I never have had it before?

Thanks

Rob

[toc] | [next] | [standalone]


#8394

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2015-09-02 15:24 +0200
Message-ID<d4obk8FfvvbU1@mid.individual.net>
In reply to#8393
Hi Rob,

> Suddenly I get the above error when adding a new method, why? I never
> have had it before?

strongly typed method unfortunately need to be declared in the class.

class MyClass

declare method Strong

method Strong() as void pascal class MyClass

  return

method Weak() class MyClass

  return nil

HTH

Wolfgang

-- 

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


#8395

FromRob Smith <rasmithhalifax@gmail.com>
Date2015-09-02 06:58 -0700
Message-ID<6a1e6d9e-1231-41a3-b379-63c04e97c4c0@googlegroups.com>
In reply to#8394
On Wednesday, September 2, 2015 at 2:24:26 PM UTC+1, Wolfgang Riedmann wrote:
> Hi Rob,
> 
> > Suddenly I get the above error when adding a new method, why? I never
> > have had it before?
> 
> strongly typed method unfortunately need to be declared in the class.
> 
> class MyClass
> 
> declare method Strong
> 
> method Strong() as void pascal class MyClass
> 
>   return
> 
> method Weak() class MyClass
> 
>   return nil
> 
> HTH
> 
> Wolfgang
> 
> --

Hi Wolfgang

I did this, but it still gives the warnings plus Missing Implementation of typed method NextURN

CLASS VoyagerShell inherit StandardShellWindow


  //{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)
  
	export axChildren as array 
	export axBrowsers as array  
	export lxFilesOpen as logic  
	
	instance oxSysKey as Syskey   
	
	declare method NextURN 

method NextURN(cFile) class VoyagerShell

	local nURN as int

	self:oxSysKey:seek(Upper(cFile))
	nURN:=self:oxSysKey:URN+1
	self:oxSysKey:URN:=nURN
	return nURN

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


#8397

From"Gerhard Bunzel" <g.bunzel@domonet.de>
Date2015-09-02 16:23 +0200
Message-ID<ms70o9$4vn$1@news.m-online.net>
In reply to#8395
Rob,

if you declare a method as strong typed - then that method has to be strong 
typed:


method NextURN (cFile AS STRING) AS INT PASCAL class VoyagerShell
...
RETURN nURN


HTH

Gerhard Bunzel


"Rob Smith"  schrieb im Newsbeitrag news:6a1e6d
9e-1231-41a3-b379-63c04e97c4c0@googlegroups.com...

On Wednesday, September 2, 2015 at 2:24:26 PM UTC+1, Wolfgang Riedmann 
wrote:
> Hi Rob,
>
> > Suddenly I get the above error when adding a new method, why? I never
> > have had it before?
>
> strongly typed method unfortunately need to be declared in the class.
>
> class MyClass
>
> declare method Strong
>
> method Strong() as void pascal class MyClass
>
>   return
>
> method Weak() class MyClass
>
>   return nil
>
> HTH
>
> Wolfgang
>
> --

Hi Wolfgang

I did this, but it still gives the warnings plus Missing Implementation of 
typed method NextURN

CLASS VoyagerShell inherit StandardShellWindow


  //{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)

export axChildren as array
export axBrowsers as array
export lxFilesOpen as logic

instance oxSysKey as Syskey

declare method NextURN

method NextURN(cFile) class VoyagerShell

local nURN as int

self:oxSysKey:seek(Upper(cFile))
nURN:=self:oxSysKey:URN+1
self:oxSysKey:URN:=nURN
return nURN 

[toc] | [prev] | [standalone]


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


csiph-web