I'm having a brain stall! I want to add an array as a property to a form
and can't remember what to do to initialise it as an array. Help!
TIA
John Weller
01380 723235
07976 393631
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/001301cddd13$97775630$c6660290$@johnweller.co.uk
** 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.
With the form open go to menu item form / new property
type in aTest[1] and press enter
* Peter Cushing *
IT development and support
Signature
John Weller wrote:
> I'm having a brain stall! I want to add an array as a property to a form
> and can't remember what to do to initialise it as an array. Help!
>
> TIA
>
> John Weller
> 01380 723235
> 07976 393631
>
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/50D055CE.3090409@whisperingsmith.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.
In code or using the IDE?
Using code, just "dimension this.array(1,2)"
Using the IDE form designer, open the form and while it is selected,
choose the menu option "Form" and then "New Property".
Finally, in the "Name" box, enter "array(1,2)" or whatever name and
dimensions you want.
Mike
-------- Original Message --------
Subject: Add an array as a form property
From: John Weller <john@johnweller.co.uk>
To: profoxtech@leafe.com
Date: 12/18/2012 5:34 AM
> I'm having a brain stall! I want to add an array as a property to a form
> and can't remember what to do to initialise it as an array. Help!
>
> TIA
>
> John Weller
> 01380 723235
> 07976 393631
>
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/50D056DE.3070509@ggisoft.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.
myarray[1]
Al
-----Original Message-----
I'm having a brain stall! I want to add an array as a property to a form
and can't remember what to do to initialise it as an array. Help!
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/C3B3D6958796490DABEC21DA29785144@gslredacer
** 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.
Author: desmond.lloyd@gmail.com
Posted: 2012-12-18 05:50:32 Link
Forgive me, what are typical uses of such an array?
------Original Message------
From: Allen
Sender: ProFox
To: profox@leafe.com
ReplyTo: ProFox Email List
Subject: Re: Add an array as a form property
Sent: Dec 18, 2012 5:44 AM
myarray[1]
Al
-----Original Message-----
I'm having a brain stall! I want to add an array as a property to a form
and can't remember what to do to initialise it as an array. Help!
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/C3B3D6958796490DABEC21DA29785144@gslredacer
** 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.
Sent via BlackBerry by AT&T
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
** 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.
define class mynewform as mybaseform implements iMypass2array
[HIDDEN] [PROTECTED] aNarray[42]
..... <g>
AndyD 8-)#
>
> -----Original Message-----
> I'm having a brain stall! I want to add an array as a property to a form
> and can't remember what to do to initialise it as an array. Help!
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/50D05B2F.8050006@hawthorncottage.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.
You can use arrays as a form property instead of each method. Makes it
available as thisform.array to all methods. Also Formname.array from other
forms and progs.
Al
-----Original Message-----
Forgive me, what are typical uses of such an array?
------Original Message------
From: Allen
Sender: ProFox
To: profox@leafe.com
ReplyTo: ProFox Email List
Subject: Re: Add an array as a form property
Sent: Dec 18, 2012 5:44 AM
myarray[1]
Al
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/DF7123DFA04946AD8273F77058AE90FD@gslredacer
** 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.
It's just a very clean and orderly way to keep your memory variables
from stepping on each other...keeping reference to the form helps define
each array's scope and purpose.
Mike
-------- Original Message --------
Subject: Re: Add an array as a form property
From: Allen <profox@gatwicksoftware.com>
To: profoxtech@leafe.com
Date: 12/18/2012 6:03 AM
> You can use arrays as a form property instead of each method. Makes it
> available as thisform.array to all methods. Also Formname.array from
> other forms and progs.
> Al
>
> -----Original Message-----
> Forgive me, what are typical uses of such an array?
> ------Original Message------
> From: Allen
> Sender: ProFox
> To: profox@leafe.com
> ReplyTo: ProFox Email List
> Subject: Re: Add an array as a form property
> Sent: Dec 18, 2012 5:44 AM
>
> myarray[1]
> Al
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/50D05C0A.60207@ggisoft.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.
thisform.oCol= CREATEOBJECT([Collection])
thisform.oCol.Add(CREATEOBJECT([Empty]))
ADDPROPERTY(thisform.oCol.Item(1),"cTable(1)")
E.
>________________________________
> From: Mike Copeland <mike@ggisoft.com>
>To: profox@leafe.com
>Sent: Tuesday, December 18, 2012 10:05 AM
>Subject: Re: Add an array as a form property
>
>It's just a very clean and orderly way to keep your memory variables from stepping on each other...keeping reference to the form helps define each array's scope and purpose.
>
>Mike
>
>-------- Original Message --------
>Subject: Re: Add an array as a form property
>From: Allen <profox@gatwicksoftware.com>
>To: profoxtech@leafe.com
>Date: 12/18/2012 6:03 AM
>> You can use arrays as a form property instead of each method. Makes it available as thisform.array to all methods. Also Formname.array from other forms and progs.
>> Al
>>
>> -----Original Message-----
>> Forgive me, what are typical uses of such an array?
>> ------Original Message------
>> From: Allen
>> Sender: ProFox
>> To: profox@leafe.com
>> ReplyTo: ProFox Email List
>> Subject: Re: Add an array as a form property
>> Sent: Dec 18, 2012 5:44 AM
>>
>> myarray[1]
>> Al
>>
>>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/1355839585.46211.YahooMailNeo@web140603.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.
Thanks to all who replied - I knew it was simple but just couldn't remember
what to do. I'm using the array to populate a combobox from a table.
John
John Weller
01380 723235
07976 393631
> -----Original Message-----
> From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of
> Mike Copeland
> Sent: 18 December 2012 11:43
> To: profoxtech@leafe.com
> Subject: Re: Add an array as a form property
>
> In code or using the IDE?
>
> Using code, just "dimension this.array(1,2)"
> Using the IDE form designer, open the form and while it is selected,
choose
> the menu option "Form" and then "New Property".
> Finally, in the "Name" box, enter "array(1,2)" or whatever name and
> dimensions you want.
>
> Mike
>
> -------- Original Message --------
> Subject: Add an array as a form property
> From: John Weller <john@johnweller.co.uk>
> To: profoxtech@leafe.com
> Date: 12/18/2012 5:34 AM
> > I'm having a brain stall! I want to add an array as a property to a
> > form and can't remember what to do to initialise it as an array. Help!
> >
> > TIA
> >
> > John Weller
> > 01380 723235
> > 07976 393631
> >
> >
> >
> >
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/002001cddd29$cce0e1e0$66a2a5a0$@johnweller.co.uk
** 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.