Best way to implement bBrowser codeblocks in X#

This forum is meant for questions and discussions about the X# language and tools
User avatar
robert
Posts: 4326
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Best way to implement bBrowser codeblocks in X#

Post by robert »

Wolfgang,
Maybe this is the best way indeed.
Difficult to say without having the complete picture.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
ic2
Posts: 1818
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Best way to implement bBrowser codeblocks in X#

Post 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
ic2
Posts: 1818
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Best way to implement bBrowser codeblocks in X#

Post 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
Post Reply