Wolfgang,
Maybe this is the best way indeed.
Difficult to say without having the complete picture.
Robert
Best way to implement bBrowser codeblocks in X#
Best way to implement bBrowser codeblocks in X#
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
Best way to implement bBrowser codeblocks in X#
Thanks Wolfgang,
Frank and I just went through it and indeed X# supports Send (for methods) and CreateInstance (for objects) to return a result from a class which is not referenced and this works as long as the library with this class is included in the compiled "end product".
We'll let you know when it works.
Dick & Frank
Frank and I just went through it and indeed X# supports Send (for methods) and CreateInstance (for objects) to return a result from a class which is not referenced and this works as long as the library with this class is included in the compiled "end product".
We'll let you know when it works.
Dick & Frank
Best way to implement bBrowser codeblocks in X#
Hello Wolfgang,
It works, thanks again.
It feels a bit like a trick; after al in VO you could have it all in a different library than the one with the dbserver class in it, with compiler checks if it exists But going to .Net from VO is full of steps backwards anyhow.
We had to include an extra step (as bIcon as in your code obviously won't work either without Bbrowser included). VO's RETURN bIcon{Paperclip{},16} would become:
Dick
It works, thanks again.
It feels a bit like a trick; after al in VO you could have it all in a different library than the one with the dbserver class in it, with compiler checks if it exists But going to .Net from VO is full of steps backwards anyhow.
We had to include an extra step (as bIcon as in your code obviously won't work either without Bbrowser included). VO's RETURN bIcon{Paperclip{},16} would become:
Code: Select all
Local obicon,oanyicon As Object
oanyiconicon:=CreateInstance(#paperclip)
obicon:=CreateInstance(bIcon,oanyicon,16)
RETURN obIcon