Re: .net question
- From: "Eric den Doop" <ericdendoop@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Apr 2005 15:02:16 +0200
You should always specify a return value type. Try:
define class somename as session olepublic
procedure someproc(ctext as string) as string
return ctext
endproc
enddefine
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
<dave> wrote in message news:uKQkD62OFHA.2604@xxxxxxxxxxxxxxxxxxxxxxx
>I have a dll built with fox 8 defined as follows
>
> define class somename as session olepublic
> procedure someproc
> lparameters ctext as string
> return ctext
> endproc
> enddefine
>
> I want to use the dll in visual basic.net
> I can add a reference to the class in VB but when I try to use the
> procedure
> I get the error
>
> C:\WindowsApplication1\Form1.vb(61): Too many arguments to 'Public
> Overridable Function someproc() As Object'.
>
> VB Code as follows
>
> dim x as somecode.somename
> x = new somecode.somename
> x.someproc("sometext") && this line produces the error above
>
>
> can someone explain where I am going wrong please
>
> Thanks in advance
>
> Dave
>
>
>
>
>
>
>
.
- References:
- .net question
- From: dave
- .net question
- Prev by Date: ActiveVFP Unlimited Version 3 Released
- Next by Date: Re: .net question
- Previous by thread: .net question
- Next by thread: Re: .net question
- Index(es):
Relevant Pages
|