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

What's up with PBWidth/PBHeight vs Width/Height attributes in PB .net 12.5.2?

$
0
0

I've verified that the .height/.width attributes in PB Classic 12.5.2 are mapped to PB .net 12.5.2 .PBHeight//PBWidth attributes. In PB .net 12.5.2 it appears there is also width/height attributes, but these appear to have values appx 20% of the respective PBWidth/PBHeight attributes.

 

At any rate I have an application that does a lot of dynamic resizing/moving of objects based on the "width" of various objects. To carry over the object positioning/sizing from PB Classic to PB .net, I need to replace coded references to the .width/.height attributes with PB .net friendly references to .PBWidth/.PBHeight. However I'm getting compiler errors when I do this, strangely enough these seem to be case sensitive, for instance a reference to .PBHeight attribute gives an error 'Cannot find the element "PBHeight"', whereas a reference to .pbheight yields the error 'Incompatible property pbheight for type XXXXXXXXXX'. I'm also getting 'Undefined variable: pbheight' when referencing the pbheight attribute of a window or user object. These errors all apply to pbwidth also.

 

I imagine I'm just missing something simple at this point, but it's been a ride just getting here, hoping that someone here has seen this issue, and can share a solution.

 

Thanks in advance,

 

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>