cancel
Showing results for 
Search instead for 
Did you mean: 

PowerBuilder.NET instantiate object dynamic like a C# ( reflection )

Former Member
0 Kudos

Hello Dears, I wonder if it is possible to instantiate object just a is done in C#, an example:  pAttachment = ((object[])nItem.Values)[0].Tostring();

I using PB.NET 12.5 and PB.NET 12.6.

Thanks,

Franco Castillo.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sure - look at the Create Using syntax.

string ls_objclass = 'n_cst_myObject"

pAttachment = CREATE USING ls_objclass

Former Member
0 Kudos

Dear Paul, thank you very much for your reply.  I´ve already trying  with that syntax, however throws

me the following error:  " system.runtime.interopservices.COMException line ......."

To explain me better, I trying to use "interop.domino.dll" to access a Lutos Notes from my PB.NET 12.6.

Franco C.