xsharp.eu • Best way to implement bBrowser codeblocks in X# - Page 2
Page 2 of 2

Best way to implement bBrowser codeblocks in X#

Posted: Fri Jun 24, 2022 11:37 am
by robert
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#

Posted: Mon Jun 27, 2022 2:21 pm
by ic2
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

Best way to implement bBrowser codeblocks in X#

Posted: Thu Jul 14, 2022 9:24 pm
by ic2
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:

Code: Select all

Local obicon,oanyicon As Object
  oanyiconicon:=CreateInstance(#paperclip)
  obicon:=CreateInstance(bIcon,oanyicon,16)
RETURN obIcon
Dick