You could also do this
S X="Fn3^TMGTEST"
W @("$$"_X)
Jim
----- Original Message -----
From: "Kevin Toppenberg" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 12, 2005 3:54 PM
Subject: Re: [Hardhats-members] GTM indirection question
I figured it out. Its this:
x="$$Fn3^TMGTEST"
w @x
NOT
w="Fn3^TMGTEST"
w [EMAIL PROTECTED]
Kevin
--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote:
I am trying to determine exactly how far I can push
indirection. I am having trouble with indirection
functions.
---------------------------------------
Here is indirection use for a procedure
with a passed parameter
THIS WORKS
--------------------------------------
GTM>do Fn^TMGTEST("hello")
That input value was: hello
GTM>set x="Fn^TMGTEST"
GTM>d @x@("hello")
That input value was: hello
---------------------------------------
Here is a function, with a return value
of 8, with no passed parameter
THIS DOESN'T WORK
---------------------------------------
GTM>w $$Fn2^TMGTEST
8
GTM>set x="Fn2^TMGTEST"
GTM>w [EMAIL PROTECTED]
%GTM-E-LABELMISSING, Label referenced but not
defined:
Fn2^TMGT <--- why was TMGTEST truncated to
TMGT?
I notice that Fn2^TMGT is 8 characters long, the
number of allowed significant letters in a variable.
So I thought that perhaps it was just too long a
name.
So I copied the function to TMGK (so that the total
length would still be 8 characters.) I get the same
error.
Is it possible to use indirection with functions
($$)
?
thanks
Kevin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With
Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to
explore the latest in dual
core and dual graphics technology at this free one
hour event hosted by HP,
AMD, and NVIDIA. To register visit
http://www.hp.com/go/dualwebinar
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar
happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by
HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members