- Daryl Foster
- PowerBuilder
- Wednesday, 8 November 2017 05:32 AM UTC
Hi Everyone,
I'm working on migrating our PB 10.5 COM Object to a PB2017 .Net Assembly but I've had a problem with objects that are dynamically created with the "objectvariable = CREATE USING objecttypestring" syntax. It can't seem to find the objecttypestring and returns a null object. Is this syntax supported for .Net Assembly targets?
For example, the following type of code won't work (not real code obviously):
string ls_type = 'n_svc_string'
userobject lnv_object
lnv_object= create using ls_type
but this code will work:
string ls_type = 'n_svc_string'
userobject lnv_object
choose case ls_type
case 'n_svc_string'
lnv_object= create n_svc_string
case 'n_svc_something_else'
lnv_object= create n_svc_something_else
end choose
Does anyone know if the "create using" syntax is supported when deploying to a .Net assembly?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.