HELP CALCULATE
You have to have your dictionary open to @DICT as well.
I think you want to say
RESULT = CALCULATE(ATTRIBUTE)
Since {} is for a literal attribute name only.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Thursday, August 15, 2013 4:35 PM
To: [email protected]
Subject: [U2] @RECORD VARIABLES
I am attempting to pass a variable into a SUBROUTINE and use it to access the
data through the dictionary name.
SUBROUTINE fieldLookup(....., ATTRIBUTE, ....) .
.
.
READ @RECORD FROM F.FILE, @ID THEN
RESULT = {ATTRIBUTE}
END ELSE
RESULT = ""
END
The part that isn't working is the RESULT = {ATTRIBUTE}
As written here it is looking for a dictionary attribute named ATTRIBUTE.
I tried forcing it to evaluate the variable ATTRIBUTE to the value in ATTRIBUTE
by putting it in parenthesis, but it complained that it was expecting a
variable when it was compiling.
Is there a way to use a variable in the curly braces so that I can make this a
generic subroutine?
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
________________________________
Dave Davis
Team Lead, Research & Development
P: 614-875-4910 x108
F: 614-875-4088
E: [email protected]
[http://www.harriscomputer.com/images/signatures/HarrisSchools.jpg]
[http://www.harriscomputer.com/images/signatures/DivisionofHarris.gif]<http://www.harriscomputer.com/>
6110 Enterprise Parkway
Grove City, OH
43123
www.harris-schoolsolutions.com<http://www.harris-schoolsolutions.com>
This message is intended exclusively for the individual or entity to which it
is addressed. This communication may contain information that is proprietary,
privileged or confidential or otherwise legally exempt from disclosure. If you
are not the named addressee, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received this
message in error, please notify the sender immediately by e-mail and delete all
copies of the message.
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users