Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily.
X
I have a question regarding the disadvantages of the Global definition. I know that it can�t be used when extracting data from Excel component, but cannot find any additional disadvantages.
The one major advantage is that results can be displayed above the calculated area, which is very useful when producing formal documents.
I never use GLOBAL because most often I re-use equations or re-define variables in a worksheet. If you are doing one calculation in a sheet then using GLOBAL may not be an issue.
On 1/6/2010 11:46:14 AM, Armo wrote: >Ok cheers. > >The main issue is displaying >results above where they have >been calculated without >manually changing them when an >input is changed. > >Regards > >Mike
Huh? You listed that as an advantage, so what is the issue?
On 1/6/2010 11:59:18 AM, Armo wrote: >>Huh? You listed that as an advantage, >>so what is the issue? > >That is the issue, that�s why >I'm asking if anybody knows >any disadvantages of using >them. > >Regards > >Mike
as far as I know there is no disadvantage unless you attempt to redefine the value somewhere on the sheet. Then, as pointed out elsewhere, there will be confusion.
"I'm asking if anybody knows any disadvantages of using them." _____________________
Global definitions have no disadvantages. Just a matter of using them when convenient, for instance to avoid collapsing area(s)if you want the result to show somewhere at the top of the work sheet ... think in term of a *.PDF that will not capture collapsed area(s).
When using the given/find function the global definition cannot be used, therefore the answer has essentially been calculated using the local definition and cannot be shown above the function.
That's not a "disadvantage" That's just something it doesn't do.
Moreover, your example is incorrect in syntax, because while your inputs are globalized, the Find result is not. So your example does not actually show an error. The c=1 is correct, based on the fact that the globalized value of c is 1, and you then redefine it to equal 3, but that's a local assignment.
The correct syntax should be c ~ Find(c), which then fails because Find cannot be globalized.
On 1/13/2010 1:10:09 PM, eden_mei wrote: >That's not a "disadvantage"
I would say that it is a disadvantage because when using (Find) the answer cannot be globalized therefore the answer can not be shown say above in a results table.
I understand that the first c is for the birds, but what I'm trying to say is that once the Find function has produced an answer it cannot be shown above that function, like a globalized varible.
On 1/14/2010 3:31:55 AM, Armo wrote: >I understand that the first c >is for the birds, but what I'm >trying to say is that once the >Find function has produced an >answer it cannot be shown >above that function, like a >globalized varible. > >Regards > >Mike ____________________________