0
votes

Calling the function with the window w_test_1

The code for the function wf_access_test

Hi

This is a simple example to hopefully explain my problem for a more complex application.

However, I am calling this function from many different windows. So I thought rather than 'hard code' the specific window intoduce a variable.

Unfortnately as you can see from this image powerbuilder does not like it!

I am obviously doing something wrong, but I have exhausted all avenues that I am aware of.

I'm relatively new to using Powerbuilder and the manuals don't seem to have an example of this - which does seem strange to me.

An idiot guide answer would be most appreciated.

Many thanks in anticipation.

1

1 Answers

0
votes

Sorry, try this:

Long i
StaticText  lo_st

For i = 1 to UpperBound( iw_Window.Control[] )
    If Typeof( iw_Window.Control[i] ) = statictext! Then

        lo_st = iw_Window.Control[i]
        lo_st.text = iw_Window.ClassName()

    End If

Next

Return 0