Code: Select all
{|o|o:bBrowserMethod(8)}
Code: Select all
METHOD BbrowserMethod(n) CLASS MyAddressDBServer
if n==8
return self:Fieldget(#Phone)
endif
In VO we can freely have these methods anywhere in the program. In X# this won't work as it needs to reside in the same program where we define the specific dbServer class. And that is only possible if we add a reference to bBrowser libraries in library with DBServers which doesn't feel correct.
I thought I could solve this by creating a function like this:
Code: Select all
{||:bBrowserfunction(8,self:Server)}
Function bBrowserfunction(n,oServer)
// do something with the parameters and return a value
and wherever the current methods says something like self:Fieldget(#whatever) I could use oServer:Fieldget(#whatever) instead.
However, as soon as I put SELF in the parameter I get No self available although self is used within test of the calling method without problems.
What is the best way to solve this without including bBrowser library references in a library with dbservers?
Dick & Frank