Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: IsMethod() for use in functions Date: Tue, 5 Jul 2016 20:06:51 +0200 Lines: 25 Message-ID: References: X-Trace: individual.net yr6pBb2P61K4kK19ldKKvQcVqLyVTdTSIJH2pkjxH/pIPBda4= Cancel-Lock: sha1:7cwle0HChCXp8nOuu+kBy7DHIbk= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:9505 Hi Dick, > I use IsMethod() from time to time. E.g. If > > IF IsMethod (SELF, #OnlyForSomeUsers) > Send (SELF, #OnlyForSomeUserl) > ENDIF > > It allows me to write a method OnlyForSomeUser of the same class which > is only present in one specific main program which includes the > library with the above code. I can easily extend some general > functionality for just one specific client's version without a whole > subclassing job, by calling that method OnlyForSomeUser via Send. > > Can I do something similair from within a function? I vaguely remember > there was something like that. I don't know if there is a function to check for a function existence - but you can call a function with Clipper calling convention with _CallClipFunc() passing the parameters in an array. Wolfgang --