Hello Jacob.
I think global vars are only available in imported libs if you declare them and set them to something.
I have a DecVar function which declairs and initialises all the lib vars.
Br
Chuck
_____
From: ext Meachen, Jacob [mailto:Jacob.Meachen@adckrone.com]
Sent: Fri 04/04/2008 13:33
To: VRF
Subject: [vrf] Variable scope
Hi VRF
Does anyone know anything about variable scope? I have defined a variable lets call it test which is a global
I have then imported a function which wants to access this test variable for read/write purposes.
I would prefer not to pass the variable directly because I have designed a format for calling different functions depending on which measurement we are making. So my option was to pass a string containing the name of the variable to the formula input of a formula box. It works when I test the function outside of the host program but not when it has been imported.
---
You are currently subscribed to vrf as: Charles.Stewart@vertu.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
I think global vars are only available in imported libs if you declare them and set them to something.
I have a DecVar function which declairs and initialises all the lib vars.
Br
Chuck
_____
From: ext Meachen, Jacob [mailto:Jacob.Meachen@adckrone.com]
Sent: Fri 04/04/2008 13:33
To: VRF
Subject: [vrf] Variable scope
Hi VRF
Does anyone know anything about variable scope? I have defined a variable lets call it test which is a global
I have then imported a function which wants to access this test variable for read/write purposes.
I would prefer not to pass the variable directly because I have designed a format for calling different functions depending on which measurement we are making. So my option was to pass a string containing the name of the variable to the formula input of a formula box. It works when I test the function outside of the host program but not when it has been imported.
---
You are currently subscribed to vrf as: Charles.Stewart@vertu.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
Does anyone know anything about variable scope? I have defined a variable lets call it test which is a global
I have then imported a function which wants to access this test variable for read/write purposes.
I would prefer not to pass the variable directly because I have designed a format for calling different functions depending on which measurement we are making. So my option was to pass a string containing the name of the variable to the formula input of a formula box. It works when I test the function outside of the host program but not when it has been imported.
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".