Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Keywords as method

0 views
Skip to first unread message

Travis Pruitt

unread,
Feb 27, 1998, 3:00:00 AM2/27/98
to

I'm using Set as a function name in one of my class modules. It must be
called Set since I'm implementing another group's interface. VB5 complains
that, since this is a keyword, the syntax of the function declaration is
incorrect. Any ideas on how to get around this?

Thanks!
Travis

i.e. -

public function Set( nValue as integer )
end function

Complains that this is the wrong syntax for Set.


Joe We are Borg Foster

unread,
Feb 28, 1998, 3:00:00 AM2/28/98
to

In article <6d7c0s$cs$1...@usenet50.supernews.com>, tra...@seanet.com (Travis Pruitt) writes:

> I'm using Set as a function name in one of my class modules. It must be
> called Set since I'm implementing another group's interface. VB5 complains
> that, since this is a keyword, the syntax of the function declaration is
> incorrect. Any ideas on how to get around this?

Try naming it NameOfInterfaceYoureImplementing_Set, as if your
class implements multiple interfaces.

--
Joe Foster <mailto:jfo...@ricochet.net> Spam is irrelevant. Assimilate this:
<ftp://ftp.microsoft.com/softlib/index.txt> Microsoft's master patch list
<ftp://ftp.microsoft.com/softlib/mslfiles/> MS I got yer patch right here!
<http://www.microsoft.com/msdn/> MS Knowledge Base & more
<http://www.dejanews.com/home_ps.shtml> Usenet search and archival engine
<http://www.altavista.digital.com> WWW *and* Usenet search engine
WARNING: I cannot be held responsible for the above They're coming to
because my cats have apparently learned to type. take me away, ha ha!

0 new messages