Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I Reference a Global Parameter Hidden by Instance Variable?

Status
Not open for further replies.

DaveInIowa

Programmer
Dec 2, 2003
576
US
I have a global parm (DivisionId) that I would like to set in the OnRead() method of a data row. The problem is the data row also contains a column/variable named DivisionId.

What syntax can I use to distinguish my global DivisionId from the data row instance's DivisionId?

Code:
Sub OnRead( )
    Super::OnRead( )
    ???.DivisionId = Me.DivisionId
End Sub
 
Can you not change the name of your parameter so it does not clash with the DataRow variable name?

That would be the easiest way eg: PDivisionId for param name.

 
I could change the parm name as you suggested but I'm just as interested in getting a handle on understanding parameter/variable scope in Actuate's programming environment and would like to know how to qualify these variables properly for any future projects I work on. I'm very new to working with Actuate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top