Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Storing window name using [ string( message.longparm, "address") ]

193 views
Skip to first unread message

thomassequa

unread,
Jul 22, 2009, 10:30:13 AM7/22/09
to
Hi All:

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.

Scott Morris

unread,
Jul 22, 2009, 12:16:04 PM7/22/09
to

<Thomas Sequa> wrote in message news:4a672275.78b...@sybase.com...

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?


0 new messages