Array index

Is it possible to address an entry in an array with a variable index?

I have unsuccessfully tried using the [] operator eg:

AnyInt t=round(.Study.t);
AnyVar=Data[t];

Thanks

James

Hi James

I believe that is possible if the .Study.t is available when you use
it and Data is an array it shouldn’t be a problem. I think you are
doing it the right way, maybe if you haven’t solved it you could
upload it?

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “jamesshippen” <jamesshippen@…> wrote:
>
> Is it possible to address an entry in an array with a variable index?
>
> I have unsuccessfully tried using the [] operator eg:
>
> AnyInt t=round(.Study.t);
> AnyVar=Data[t];
>
> Thanks
>
> James
>

Hi James
(and Christian),

I think that Christian might have misunderstood you (or maybe I have;-
). Anyway, here is my answer.

The indexing operator, i.e. [], does currently allow constant
integers only (as you have experienced). There is no really good
reason for this, except history. This limitation was obvious in the
early versions of AnyBody before it had integer variables at all. And
now the indexing operator has simply not followed along with other
new features of AnyScript. But it is coming…

It is already implemented in the prototypes of version 3.0, and now
that we have seen the public demand for the functionality, we
consider whether we can easily transfer this to version 2.1 that it
still waiting to be released.

Well I hope this answer the strange behavior, but it does not solve
your problem…

I wonder if we can figure out to make a work-around.
What if you make an interpolation function using Data[] as the data
for the interpolation. If you use piecewise linear interpolation,
your function will pass through the data points. I think this implies
that you can do what you want to do by

AnyInt t = round(.Study.t);
AnyVar var = f_Data(t);

where f_Data is the interpolation function.
I hope this bring you a bit forward.

Best regards,

Michael, AnyBody Support

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…>
wrote:
>
> Hi James
>
> I believe that is possible if the .Study.t is available when you use
> it and Data is an array it shouldn’t be a problem. I think you are
> doing it the right way, maybe if you haven’t solved it you could
> upload it?
>
> Best regards
> Christian, AnyBody Support
>
> — In anyscript@yahoogroups.com, “jamesshippen” <jamesshippen@>
wrote:
> >
> > Is it possible to address an entry in an array with a variable
index?
> >
> > I have unsuccessfully tried using the [] operator eg:
> >
> > AnyInt t=round(.Study.t);
> > AnyVar=Data[t];
> >
> > Thanks
> >
> > James
> >
>

Hi Michael and Christian

Many thanks to you both; I must admit my original question was more
directed more towards the use of variable array indices than
availability of .Study.t but all information greatfully received.

I tried the suggestion of using AnyFunInterpol as below:

AnyFunInterpol right_heel = {
Data = {Main.Model.Mannequin.Posture.Right.HEE};
T = Main.Model.Mannequin.Posture.Time;
Type=PiecewiseLinear;
};

AnyInt t = round(Main.Study.t);
AnyVar var=right_heel(t);

But received the error:

ERROR(SCR.EXP8) : C:\FreePostureMove\Environment.any
(41) : ‘right_heel’ : Illegal function argument
list ‘right_heel’(‘AnyInt’).
Supported function use :

Have I umplemented the function correctly?

Ta!

James

PS As a typical user, I would certainly welcome the use of non-
contact array indices ASAP!

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…>
wrote:
>
> Hi James
> (and Christian),
>
> I think that Christian might have misunderstood you (or maybe I
have;-
> ). Anyway, here is my answer.
>
> The indexing operator, i.e. [], does currently allow constant
> integers only (as you have experienced). There is no really good
> reason for this, except history. This limitation was obvious in the
> early versions of AnyBody before it had integer variables at all.
And
> now the indexing operator has simply not followed along with other
> new features of AnyScript. But it is coming…
>
> It is already implemented in the prototypes of version 3.0, and now
> that we have seen the public demand for the functionality, we
> consider whether we can easily transfer this to version 2.1 that it
> still waiting to be released.
>
> Well I hope this answer the strange behavior, but it does not solve
> your problem…
>
> I wonder if we can figure out to make a work-around.
> What if you make an interpolation function using Data[] as the data
> for the interpolation. If you use piecewise linear interpolation,
> your function will pass through the data points. I think this
implies
> that you can do what you want to do by
>
> AnyInt t = round(.Study.t);
> AnyVar var = f_Data(t);
>
> where f_Data is the interpolation function.
> I hope this bring you a bit forward.
>
> Best regards,
>
> Michael, AnyBody Support
>
>
>
> — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> wrote:
> >
> > Hi James
> >
> > I believe that is possible if the .Study.t is available when you
use
> > it and Data is an array it shouldn’t be a problem. I think you are
> > doing it the right way, maybe if you haven’t solved it you could
> > upload it?
> >
> > Best regards
> > Christian, AnyBody Support
> >
> > — In anyscript@yahoogroups.com, “jamesshippen” <jamesshippen@>
> wrote:
> > >
> > > Is it possible to address an entry in an array with a variable
> index?
> > >
> > > I have unsuccessfully tried using the [] operator eg:
> > >
> > > AnyInt t=round(.Study.t);
> > > AnyVar=Data[t];
> > >
> > > Thanks
> > >
> > > James
> > >
> >
>

Hi James,

One more small deficiency related to integers, it seems; this time
for the AnyInterpolFunction - sorry.

Try making ‘t’ a floating point variable, i.e.

AnyVar t = round(Main.Study.t);

This should be ok since it can still hold the integer value of course.
An AnyVar shoule be acceptable input for the function.

Best regards,

Michael, AnyBody Support

— In anyscript@yahoogroups.com, “jamesshippen” <jamesshippen@…>
wrote:
>
> Hi Michael and Christian
>
> Many thanks to you both; I must admit my original question was more
> directed more towards the use of variable array indices than
> availability of .Study.t but all information greatfully received.
>
> I tried the suggestion of using AnyFunInterpol as below:
>
> AnyFunInterpol right_heel = {
> Data = {Main.Model.Mannequin.Posture.Right.HEE};
> T = Main.Model.Mannequin.Posture.Time;
> Type=PiecewiseLinear;
> };
>
> AnyInt t = round(Main.Study.t);
> AnyVar var=right_heel(t);
>
>
> But received the error:
>
> ERROR(SCR.EXP8) : C:\FreePostureMove\Environment.any
> (41) : ‘right_heel’ : Illegal function argument
> list ‘right_heel’(‘AnyInt’).
> Supported function use :
>
>
> Have I umplemented the function correctly?
>
> Ta!
>
> James
>
> PS As a typical user, I would certainly welcome the use of non-
> contact array indices ASAP!
>
>
>
> — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> wrote:
> >
> > Hi James
> > (and Christian),
> >
> > I think that Christian might have misunderstood you (or maybe I
> have;-
> > ). Anyway, here is my answer.
> >
> > The indexing operator, i.e. [], does currently allow constant
> > integers only (as you have experienced). There is no really good
> > reason for this, except history. This limitation was obvious in
the
> > early versions of AnyBody before it had integer variables at all.
> And
> > now the indexing operator has simply not followed along with
other
> > new features of AnyScript. But it is coming…
> >
> > It is already implemented in the prototypes of version 3.0, and
now
> > that we have seen the public demand for the functionality, we
> > consider whether we can easily transfer this to version 2.1 that
it
> > still waiting to be released.
> >
> > Well I hope this answer the strange behavior, but it does not
solve
> > your problem…
> >
> > I wonder if we can figure out to make a work-around.
> > What if you make an interpolation function using Data[] as the
data
> > for the interpolation. If you use piecewise linear interpolation,
> > your function will pass through the data points. I think this
> implies
> > that you can do what you want to do by
> >
> > AnyInt t = round(.Study.t);
> > AnyVar var = f_Data(t);
> >
> > where f_Data is the interpolation function.
> > I hope this bring you a bit forward.
> >
> > Best regards,
> >
> > Michael, AnyBody Support
> >
> >
> >
> > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> > wrote:
> > >
> > > Hi James
> > >
> > > I believe that is possible if the .Study.t is available when
you
> use
> > > it and Data is an array it shouldn’t be a problem. I think you
are
> > > doing it the right way, maybe if you haven’t solved it you could
> > > upload it?
> > >
> > > Best regards
> > > Christian, AnyBody Support
> > >
> > > — In anyscript@yahoogroups.com, “jamesshippen”
<jamesshippen@>
> > wrote:
> > > >
> > > > Is it possible to address an entry in an array with a
variable
> > index?
> > > >
> > > > I have unsuccessfully tried using the [] operator eg:
> > > >
> > > > AnyInt t=round(.Study.t);
> > > > AnyVar=Data[t];
> > > >
> > > > Thanks
> > > >
> > > > James
> > > >
> > >
> >
>

Hi Michael

Ta…but!

I tried:
AnyFunInterpol right_heel = {
Data = {Main.Model.Mannequin.Posture.Right.HEE};
T = Main.Model.Mannequin.Posture.PelvisPosTime;
Type=PiecewiseLinear;
};

AnyVar t = round(Main.Study.t);
AnyVar var=right_heel(t);

but it return the error:

ERROR(SCR.EXP1) : C:\research\Repository.6
\Repository.6w\ARep\Aalborg\FreePostureMove\Environment.any
(41) : ‘=’ : Illegal operation for given argument
types : ‘AnyFloat’ ‘=’ ‘AnyFloat[1]’

Sorry to be a pain!!1

James

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…>
wrote:
>
> Hi James,
>
> One more small deficiency related to integers, it seems; this time
> for the AnyInterpolFunction - sorry.
>
> Try making ‘t’ a floating point variable, i.e.
>
> AnyVar t = round(Main.Study.t);
>
> This should be ok since it can still hold the integer value of
course.
> An AnyVar shoule be acceptable input for the function.
>
> Best regards,
>
> Michael, AnyBody Support
>
>
> — In anyscript@yahoogroups.com, “jamesshippen” <jamesshippen@>
> wrote:
> >
> > Hi Michael and Christian
> >
> > Many thanks to you both; I must admit my original question was
more
> > directed more towards the use of variable array indices than
> > availability of .Study.t but all information greatfully received.
> >
> > I tried the suggestion of using AnyFunInterpol as below:
> >
> > AnyFunInterpol right_heel = {
> > Data = {Main.Model.Mannequin.Posture.Right.HEE};
> > T = Main.Model.Mannequin.Posture.Time;
> > Type=PiecewiseLinear;
> > };
> >
> > AnyInt t = round(Main.Study.t);
> > AnyVar var=right_heel(t);
> >
> >
> > But received the error:
> >
> > ERROR(SCR.EXP8) : C:\FreePostureMove\Environment.any
> > (41) : ‘right_heel’ : Illegal function argument
> > list ‘right_heel’(‘AnyInt’).
> > Supported function use :
> >
> >
> > Have I umplemented the function correctly?
> >
> > Ta!
> >
> > James
> >
> > PS As a typical user, I would certainly welcome the use of non-
> > contact array indices ASAP!
> >
> >
> >
> > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> > wrote:
> > >
> > > Hi James
> > > (and Christian),
> > >
> > > I think that Christian might have misunderstood you (or maybe I
> > have;-
> > > ). Anyway, here is my answer.
> > >
> > > The indexing operator, i.e. [], does currently allow constant
> > > integers only (as you have experienced). There is no really
good
> > > reason for this, except history. This limitation was obvious in
> the
> > > early versions of AnyBody before it had integer variables at
all.
> > And
> > > now the indexing operator has simply not followed along with
> other
> > > new features of AnyScript. But it is coming…
> > >
> > > It is already implemented in the prototypes of version 3.0, and
> now
> > > that we have seen the public demand for the functionality, we
> > > consider whether we can easily transfer this to version 2.1
that
> it
> > > still waiting to be released.
> > >
> > > Well I hope this answer the strange behavior, but it does not
> solve
> > > your problem…
> > >
> > > I wonder if we can figure out to make a work-around.
> > > What if you make an interpolation function using Data[] as the
> data
> > > for the interpolation. If you use piecewise linear
interpolation,
> > > your function will pass through the data points. I think this
> > implies
> > > that you can do what you want to do by
> > >
> > > AnyInt t = round(.Study.t);
> > > AnyVar var = f_Data(t);
> > >
> > > where f_Data is the interpolation function.
> > > I hope this bring you a bit forward.
> > >
> > > Best regards,
> > >
> > > Michael, AnyBody Support
> > >
> > >
> > >
> > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> > > wrote:
> > > >
> > > > Hi James
> > > >
> > > > I believe that is possible if the .Study.t is available when
> you
> > use
> > > > it and Data is an array it shouldn’t be a problem. I think
you
> are
> > > > doing it the right way, maybe if you haven’t solved it you
could
> > > > upload it?
> > > >
> > > > Best regards
> > > > Christian, AnyBody Support
> > > >
> > > > — In anyscript@yahoogroups.com, “jamesshippen”
> <jamesshippen@>
> > > wrote:
> > > > >
> > > > > Is it possible to address an entry in an array with a
> variable
> > > index?
> > > > >
> > > > > I have unsuccessfully tried using the [] operator eg:
> > > > >
> > > > > AnyInt t=round(.Study.t);
> > > > > AnyVar=Data[t];
> > > > >
> > > > > Thanks
> > > > >
> > > > > James
> > > > >
> > > >
> > >
> >
>

Hi James,

Try

AnyFloat var=right_heel(t);

or

AnyVector var=right_heel(t);

AnyScript is a bit sensitive to assignment of scalars (AnyVar) with
vectors/matrices on the right-hand side. This is in general ok, but
it can, as in your case, be a bit confusing when the vector/matrix
has only one element.
The interpolation function is always returning vector quantities,
also when it is only one data set you interpolate. It is designed to
interpolate vector quantities.

Best regards,

Michael, AnyBody Support

— In anyscript@yahoogroups.com, “jamesshippen” <jamesshippen@…>
wrote:
>
> Hi Michael
>
> Ta…but!
>
> I tried:
> AnyFunInterpol right_heel = {
> Data = {Main.Model.Mannequin.Posture.Right.HEE};
> T = Main.Model.Mannequin.Posture.PelvisPosTime;
> Type=PiecewiseLinear;
> };
>
> AnyVar t = round(Main.Study.t);
> AnyVar var=right_heel(t);
>
> but it return the error:
>
> ERROR(SCR.EXP1) : C:\research\Repository.6
> \Repository.6w\ARep\Aalborg\FreePostureMove\Environment.any
> (41) : ‘=’ : Illegal operation for given argument
> types : ‘AnyFloat’ ‘=’ ‘AnyFloat[1]’
>
> Sorry to be a pain!!1
>
> James
>
> — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> wrote:
> >
> > Hi James,
> >
> > One more small deficiency related to integers, it seems; this
time
> > for the AnyInterpolFunction - sorry.
> >
> > Try making ‘t’ a floating point variable, i.e.
> >
> > AnyVar t = round(Main.Study.t);
> >
> > This should be ok since it can still hold the integer value of
> course.
> > An AnyVar shoule be acceptable input for the function.
> >
> > Best regards,
> >
> > Michael, AnyBody Support
> >
> >
> > — In anyscript@yahoogroups.com, “jamesshippen” <jamesshippen@>
> > wrote:
> > >
> > > Hi Michael and Christian
> > >
> > > Many thanks to you both; I must admit my original question was
> more
> > > directed more towards the use of variable array indices than
> > > availability of .Study.t but all information greatfully
received.
> > >
> > > I tried the suggestion of using AnyFunInterpol as below:
> > >
> > > AnyFunInterpol right_heel = {
> > > Data = {Main.Model.Mannequin.Posture.Right.HEE};
> > > T = Main.Model.Mannequin.Posture.Time;
> > > Type=PiecewiseLinear;
> > > };
> > >
> > > AnyInt t = round(Main.Study.t);
> > > AnyVar var=right_heel(t);
> > >
> > >
> > > But received the error:
> > >
> > > ERROR(SCR.EXP8) : C:\FreePostureMove\Environment.any
> > > (41) : ‘right_heel’ : Illegal function argument
> > > list ‘right_heel’(‘AnyInt’).
> > > Supported function use :
> > >
> > >
> > > Have I umplemented the function correctly?
> > >
> > > Ta!
> > >
> > > James
> > >
> > > PS As a typical user, I would certainly welcome the use of non-
> > > contact array indices ASAP!
> > >
> > >
> > >
> > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> > > wrote:
> > > >
> > > > Hi James
> > > > (and Christian),
> > > >
> > > > I think that Christian might have misunderstood you (or maybe
I
> > > have;-
> > > > ). Anyway, here is my answer.
> > > >
> > > > The indexing operator, i.e. [], does currently allow constant
> > > > integers only (as you have experienced). There is no really
> good
> > > > reason for this, except history. This limitation was obvious
in
> > the
> > > > early versions of AnyBody before it had integer variables at
> all.
> > > And
> > > > now the indexing operator has simply not followed along with
> > other
> > > > new features of AnyScript. But it is coming…
> > > >
> > > > It is already implemented in the prototypes of version 3.0,
and
> > now
> > > > that we have seen the public demand for the functionality, we
> > > > consider whether we can easily transfer this to version 2.1
> that
> > it
> > > > still waiting to be released.
> > > >
> > > > Well I hope this answer the strange behavior, but it does not
> > solve
> > > > your problem…
> > > >
> > > > I wonder if we can figure out to make a work-around.
> > > > What if you make an interpolation function using Data[] as
the
> > data
> > > > for the interpolation. If you use piecewise linear
> interpolation,
> > > > your function will pass through the data points. I think this
> > > implies
> > > > that you can do what you want to do by
> > > >
> > > > AnyInt t = round(.Study.t);
> > > > AnyVar var = f_Data(t);
> > > >
> > > > where f_Data is the interpolation function.
> > > > I hope this bring you a bit forward.
> > > >
> > > > Best regards,
> > > >
> > > > Michael, AnyBody Support
> > > >
> > > >
> > > >
> > > > — In anyscript@yahoogroups.com, “AnyBody Support”
<support@>
> > > > wrote:
> > > > >
> > > > > Hi James
> > > > >
> > > > > I believe that is possible if the .Study.t is available
when
> > you
> > > use
> > > > > it and Data is an array it shouldn’t be a problem. I think
> you
> > are
> > > > > doing it the right way, maybe if you haven’t solved it you
> could
> > > > > upload it?
> > > > >
> > > > > Best regards
> > > > > Christian, AnyBody Support
> > > > >
> > > > > — In anyscript@yahoogroups.com, “jamesshippen”
> > <jamesshippen@>
> > > > wrote:
> > > > > >
> > > > > > Is it possible to address an entry in an array with a
> > variable
> > > > index?
> > > > > >
> > > > > > I have unsuccessfully tried using the [] operator eg:
> > > > > >
> > > > > > AnyInt t=round(.Study.t);
> > > > > > AnyVar=Data[t];
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > James
> > > > > >
> > > > >
> > > >
> > >
> >
>

Success (with both AnyFloat and AnyVector)!!

Many thanks

James

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…>
wrote:
>
> Hi James,
>
> Try
>
> AnyFloat var=right_heel(t);
>
> or
>
> AnyVector var=right_heel(t);
>
> AnyScript is a bit sensitive to assignment of scalars (AnyVar) with
> vectors/matrices on the right-hand side. This is in general ok, but
> it can, as in your case, be a bit confusing when the vector/matrix
> has only one element.
> The interpolation function is always returning vector quantities,
> also when it is only one data set you interpolate. It is designed
to
> interpolate vector quantities.
>
> Best regards,
>
> Michael, AnyBody Support
>
>
>
>
> — In anyscript@yahoogroups.com, “jamesshippen” <jamesshippen@>
> wrote:
> >
> > Hi Michael
> >
> > Ta…but!
> >
> > I tried:
> > AnyFunInterpol right_heel = {
> > Data = {Main.Model.Mannequin.Posture.Right.HEE};
> > T = Main.Model.Mannequin.Posture.PelvisPosTime;
> > Type=PiecewiseLinear;
> > };
> >
> > AnyVar t = round(Main.Study.t);
> > AnyVar var=right_heel(t);
> >
> > but it return the error:
> >
> > ERROR(SCR.EXP1) : C:\research\Repository.6
> > \Repository.6w\ARep\Aalborg\FreePostureMove\Environment.any
> > (41) : ‘=’ : Illegal operation for given argument
> > types : ‘AnyFloat’ ‘=’ ‘AnyFloat[1]’
> >
> > Sorry to be a pain!!1
> >
> > James
> >
> > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> > wrote:
> > >
> > > Hi James,
> > >
> > > One more small deficiency related to integers, it seems; this
> time
> > > for the AnyInterpolFunction - sorry.
> > >
> > > Try making ‘t’ a floating point variable, i.e.
> > >
> > > AnyVar t = round(Main.Study.t);
> > >
> > > This should be ok since it can still hold the integer value of
> > course.
> > > An AnyVar shoule be acceptable input for the function.
> > >
> > > Best regards,
> > >
> > > Michael, AnyBody Support
> > >
> > >
> > > — In anyscript@yahoogroups.com, “jamesshippen”
<jamesshippen@>
> > > wrote:
> > > >
> > > > Hi Michael and Christian
> > > >
> > > > Many thanks to you both; I must admit my original question
was
> > more
> > > > directed more towards the use of variable array indices than
> > > > availability of .Study.t but all information greatfully
> received.
> > > >
> > > > I tried the suggestion of using AnyFunInterpol as below:
> > > >
> > > > AnyFunInterpol right_heel = {
> > > > Data = {Main.Model.Mannequin.Posture.Right.HEE};
> > > > T = Main.Model.Mannequin.Posture.Time;
> > > > Type=PiecewiseLinear;
> > > > };
> > > >
> > > > AnyInt t = round(Main.Study.t);
> > > > AnyVar var=right_heel(t);
> > > >
> > > >
> > > > But received the error:
> > > >
> > > > ERROR(SCR.EXP8) : C:\FreePostureMove\Environment.any
> > > > (41) : ‘right_heel’ : Illegal function argument
> > > > list ‘right_heel’(‘AnyInt’).
> > > > Supported function use :
> > > >
> > > >
> > > > Have I umplemented the function correctly?
> > > >
> > > > Ta!
> > > >
> > > > James
> > > >
> > > > PS As a typical user, I would certainly welcome the use of
non-
> > > > contact array indices ASAP!
> > > >
> > > >
> > > >
> > > > — In anyscript@yahoogroups.com, “AnyBody Support”
<support@>
> > > > wrote:
> > > > >
> > > > > Hi James
> > > > > (and Christian),
> > > > >
> > > > > I think that Christian might have misunderstood you (or
maybe
> I
> > > > have;-
> > > > > ). Anyway, here is my answer.
> > > > >
> > > > > The indexing operator, i.e. [], does currently allow
constant
> > > > > integers only (as you have experienced). There is no really
> > good
> > > > > reason for this, except history. This limitation was
obvious
> in
> > > the
> > > > > early versions of AnyBody before it had integer variables
at
> > all.
> > > > And
> > > > > now the indexing operator has simply not followed along
with
> > > other
> > > > > new features of AnyScript. But it is coming…
> > > > >
> > > > > It is already implemented in the prototypes of version 3.0,
> and
> > > now
> > > > > that we have seen the public demand for the functionality,
we
> > > > > consider whether we can easily transfer this to version 2.1
> > that
> > > it
> > > > > still waiting to be released.
> > > > >
> > > > > Well I hope this answer the strange behavior, but it does
not
> > > solve
> > > > > your problem…
> > > > >
> > > > > I wonder if we can figure out to make a work-around.
> > > > > What if you make an interpolation function using Data[] as
> the
> > > data
> > > > > for the interpolation. If you use piecewise linear
> > interpolation,
> > > > > your function will pass through the data points. I think
this
> > > > implies
> > > > > that you can do what you want to do by
> > > > >
> > > > > AnyInt t = round(.Study.t);
> > > > > AnyVar var = f_Data(t);
> > > > >
> > > > > where f_Data is the interpolation function.
> > > > > I hope this bring you a bit forward.
> > > > >
> > > > > Best regards,
> > > > >
> > > > > Michael, AnyBody Support
> > > > >
> > > > >
> > > > >
> > > > > — In anyscript@yahoogroups.com, “AnyBody Support”
> <support@>
> > > > > wrote:
> > > > > >
> > > > > > Hi James
> > > > > >
> > > > > > I believe that is possible if the .Study.t is available
> when
> > > you
> > > > use
> > > > > > it and Data is an array it shouldn’t be a problem. I
think
> > you
> > > are
> > > > > > doing it the right way, maybe if you haven’t solved it
you
> > could
> > > > > > upload it?
> > > > > >
> > > > > > Best regards
> > > > > > Christian, AnyBody Support
> > > > > >
> > > > > > — In anyscript@yahoogroups.com, “jamesshippen”
> > > <jamesshippen@>
> > > > > wrote:
> > > > > > >
> > > > > > > Is it possible to address an entry in an array with a
> > > variable
> > > > > index?
> > > > > > >
> > > > > > > I have unsuccessfully tried using the [] operator eg:
> > > > > > >
> > > > > > > AnyInt t=round(.Study.t);
> > > > > > > AnyVar=Data[t];
> > > > > > >
> > > > > > > Thanks
> > > > > > >
> > > > > > > James
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>