Using PB 11.2 with backend Sybase ASE 12.5. A collegue of
mine
has extensively used "string( message.longparm, "address")"
to store a window (class) name eg: wm_something then uses
this to manipulate later in the script to access this window
name through this structure string.
eg:- in the open event str_xx.s_win_name = string(
message.longparm, "address")
later in the script:
window to open = str_xx.s_win_name
Now i am still wondering why using this method instead of
simply using in the open event
str_xx.s_win_name = this.classname()
does using the message object addressing have any benefits
then simply using the this.classname(), or is there any
demerits of using this method of storing a class name? (I am
very confused)
Thomas.
I would be very surprized if PB was automatically providing the classname as
a value in the message object for the open event. I'm going to guess that
this sort of trickery is done in the code that opens the window. Are
windows always opened using openwithparm? In any event, I think you are
correct in preferring the use of the classname function - much simpler.
However, I suspect that there may be a reason for the "trickery" (or,
perhaps, was *past tense* a reason). Why not simply ask this person?