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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetValue

Status
Not open for further replies.

Kebabmeister

Programmer
Apr 22, 2003
94
GB
I cannot make "GetValue" work. I have tried the "Help" and using the format suggested there I have the following in the Finish method of an object:

GetValue("CallstatsSiteidBefore","PeriodSLA")

which causes the following:

NewReportApp::CallstatsSiteidBefore%Finish(5): Illegal variable use. - (GetValue)
NewReportApp::CallstatsSiteidBefore%Finish(7): Illegal variable use. - (PeriodSLA)
NewReportApp::CallstatsSiteidBefore%Finish(7): Operator not found for these types..

I just know this is something I'm doing that someone in the knwo will look at and laugh. If that someone is you, enjoy a giggle, and then please, HELP!
 
Really need to see the full code for what you are doing. However, in GetValue("CallstatsSiteidBefore","PeriodSLA"), the first argument should be an object and not in quotes
 
Thanks.

I have tried this in quotes, out of quotes, in as many combinations as I can think of. It always seems to report the GetValue function as an illegal variable.
 
Looking at the help example, it has vValue = GetValue( fromObject, vName ), whereas you just have GetValue("CallstatsSiteidBefore","PeriodSLA")

With what are you populating the return off getvalue?
 
Example 2 says:

You can call AVar with any of the following statements:

x = row.AVar
x = row.GetValue( "AVar" )
x = row.GetValue( 2 )

I have tried this with object name and variable name, in quotes, out of quotes. I am trying to access a variable of type double and the function is trying to populate a variable in the function of type double.

My guess is that it is a simple enough syntax problem but without knowing what that problem is, it's a nightmare to resolve.

Thanks anyway.
 
A_Variable = Me.GetValue("NameofDataRowPropertiesColumn")

is what I've used and seems to work for what I need it for ... used this expression in over-ridden OnRead method for DataRow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top