Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

Datawindow creation failure in PB 12.5.2 .net due \ escape character in DW syntax

$
0
0

Powerbuilder .net adds \ escape character for double quotes embedded in string variable:pfc_n_cst_winsrv_statusbar

 

Essentially pfc_n_cst_winsrv_statusbar.of_createdwobject generates a datawindow definition in ls_dwdefinition, then uses that to create a datawindow. I'm testing this using the PFC Example app, with the latest 12.5 Classic PFC pbls. This works in PB Classic 12.5.2 Build 5006. Migrated that app to PB .net 12.5.2 Build 5006. This does not work in PB .net. When generating the datawindow definition in ls_dwdefinition, PB .net inserts \ escape characters in front of all double quotes embedded in ls_dwdefinition. The subsequent creation of the datawindow fails I assume because the \ escape characters are not recognized as valid dw syntax. I compared the dwsyntax string created in PB Classic 12.5 vs the PB .net created dw syntax string, and the only differences I can see are \escape characters. When I copy the PB .net datawindow definition from a debug session and paste that into the datawindow definition variable in a PB 12.5 Classic debug session, the datawindow creation fails similarly.

Has anyone seen this behavior before? Is there a setting I could change that would eliminate this behavior? Any help would be greatly appreciated. BTW, this is not just an exercise, I see this behavior in our proprietary app which we are currently migrating to PB .net.

Regards,

Todd Oesterreich


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>