Index
2012-04-23 16:09Michael Savage : Help! How do I pass an array to form method
2012-04-23 16:16Eurico Chagas Filho : Re: Help! How do I pass an array to form method
2012-04-23 17:01Fred Taylor : Re: Help! How do I pass an array to form method
2012-04-23 19:52Michael Savage : Re: Help! How do I pass an array to form method
2012-04-24 01:48Allen : RE: Help! How do I pass an array to form method
2012-04-24 02:59Dave Crozier : RE: Help! How do I pass an array to form method
2012-04-24 08:44Eurico Chagas Filho : Re: Help! How do I pass an array to form method
2012-04-25 01:37Lew Schwartz : Re: Help! How do I pass an array to form method
Back to top
Help! How do I pass an array to form method

Author: Michael Savage

Posted: 2012-04-23 16:09:49   Link

Is there a way?

TIA,

Mike

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4F95C51D.60605@golden.net

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2012 Michael Savage
Back to top
Re: Help! How do I pass an array to form method

Author: Eurico Chagas Filho

Posted: 2012-04-23 16:16:33   Link

thisform.somemethod(@somearray)

>________________________________

> From: Michael Savage <msavage@golden.net>

>To: ProFox Email List <profox@leafe.com>

>Sent: Monday, April 23, 2012 6:09 PM

>Subject: Help! How do I pass an array to form method

>

>Is there a way?

>

>TIA,

>Mike

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1335215793.97025.YahooMailNeo@web160801.mail.bf1.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2012 Eurico Chagas Filho
Back to top
Re: Help! How do I pass an array to form method

Author: Fred Taylor

Posted: 2012-04-23 17:01:59   Link

As long as the array is not a property of some object, Eurico has specified

it for you with the "@". If it is a property, you'll either need to pass

the object and then reference the array on the passed object, or you'll

have to copy the array to a local variable and pass that variable with the

"@".

Fred

On Mon, Apr 23, 2012 at 2:09 PM, Michael Savage <msavage@golden.net> wrote:

> Is there a way?

>

> TIA,

> Mike

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAJCBkspQeDKw1pxL-k3OXooVd7Sbzv6BEys8-OmYzNiNfG6OCA@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2012 Fred Taylor
Back to top
Re: Help! How do I pass an array to form method

Author: Michael Savage

Posted: 2012-04-23 19:52:09   Link

That was the problem. The array was part of the properties of the form.

I replaced the code with =ACOPY(laArray,thisform.Array) and it worked!

Thanks,

Mike

On 23/04/2012 6:01 PM, Fred Taylor wrote:

> As long as the array is not a property of some object, Eurico has specified

> it for you with the "@". If it is a property, you'll either need to pass

> the object and then reference the array on the passed object, or you'll

> have to copy the array to a local variable and pass that variable with the

> "@".

>

> Fred

>

>

> On Mon, Apr 23, 2012 at 2:09 PM, Michael Savage<msavage@golden.net> wrote:

>

>> Is there a way?

>>

>> TIA,

>> Mike

>>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4F95F939.5060203@golden.net

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2012 Michael Savage
Back to top
RE: Help! How do I pass an array to form method

Author: Allen

Posted: 2012-04-24 01:48:22   Link

Or you could just send the form as an object

Al

-----Original Message-----

From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com] On

Behalf Of Michael Savage

That was the problem. The array was part of the properties of the form.

I replaced the code with =ACOPY(laArray,thisform.Array) and it worked!

Thanks,

Mike

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000a01cd21e6$3e4534d0$bacf9e70$@com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2012 Allen
Back to top
RE: Help! How do I pass an array to form method

Author: Dave Crozier

Posted: 2012-04-24 02:59:44   Link

Mike,

You can pass the array with an "@" sign prefiving the name but you may also look at creating a "Parameter Object", making the array a property of this object tne passing the object to the form which can then use its properties. This has the added advantage that you can pass stuff back to the mainline as an aditional property of the "Paramater Object" if required and not simply as an additional array item. I always do this now as it makes adding parameteres to a form call so simple and of course passing data back becomes a breeze.

Dave

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf Of Michael Savage

Sent: 23 April 2012 22:10

To: ProFox Email List

Subject: Help! How do I pass an array to form method

Is there a way?

TIA,

Mike

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/BD031ECABF2B60499200AAB3DBB4A999F11DCABC@EX-A-FPL.FPL.LOCAL

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2012 Dave Crozier
Back to top
Re: Help! How do I pass an array to form method

Author: Eurico Chagas Filho

Posted: 2012-04-24 08:44:57   Link

Nice tip Dave, tks.

E.

>________________________________

> From: Dave Crozier <DaveC@Flexipol.co.uk>

>To: ProFox Email List <profox@leafe.com>

>Sent: Tuesday, April 24, 2012 4:59 AM

>Subject: RE: Help! How do I pass an array to form method

>

>Mike,

>You can pass the array with an "@" sign prefiving the name but you may also look at creating a "Parameter Object", making the array a property of this object tne passing the object to the form which can then use its properties. This has the added advantage that you can pass stuff back to the mainline as an aditional property of the "Paramater Object" if required and not simply as an additional array item. I always do this now as it makes adding parameteres to a form call so simple and of course passing data back becomes a breeze.

>

>Dave

>

>-----Original Message-----

>From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf Of Michael Savage

>Sent: 23 April 2012 22:10

>To: ProFox Email List

>Subject: Help! How do I pass an array to form method

>

>Is there a way?

>

>TIA,

>Mike

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1335275097.94944.YahooMailNeo@web160806.mail.bf1.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2012 Eurico Chagas Filho
Back to top
Re: Help! How do I pass an array to form method

Author: Lew Schwartz

Posted: 2012-04-25 01:37:25   Link

The oopy way to do this (where the array in question is a property of

another object) is to have the method code that operates on the array

in the other object as well. Since it's a property of that other

object, the other object should be smart enough to know how its own

array needs to be manipulated. The object that requires the

manipulation needn't even know that it's an array. This makes it far

easier and requires fewer domino-ing changes when, for instance, you

need to change over to a table driven solution and dump the array

altogether.

On Mon, Apr 23, 2012 at 5:09 PM, Michael Savage <msavage@golden.net> wrote:

> Is there a way?

>

> TIA,

> Mike

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAFuU78cm9C_XAHNA2oxUcVOD8=gAgScB_csVSBuKqnOZzTXy1A@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2012 Lew Schwartz