Re: .net question



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
>
>
>
>
>
>
>


.



Relevant Pages

  • Re: .net question
    ... function someproc(cText as string) as string ... >I have a dll built with fox 8 defined as follows ... > define class somename as session olepublic ...
    (microsoft.public.fox.programmer.exchange)
  • Re: .net question
    ... Dave ... > function someproc(cText as string) as string ... >> define class somename as session olepublic ... >> Overridable Function someproc() As Object'. ...
    (microsoft.public.fox.programmer.exchange)