* code in the .Init of the container or form
FOR m.x=1 TO 10
m.chkname = "chkTL"+TRANSFORM(m.x)
this.AddObject(m.chkname,"checkbox")
WITH this.&chkname
* set properties here
.BackStyle = 0
.fontsize = 8
.Value = 1
.Visible = .t.
ENDWITH
ENDFOR
Fred
On Tue, Mar 27, 2012 at 11:53 AM, Michael Savage <[email protected]> wrote:
> What I am trying to do is in a for loop create a bunch of objects
> sort of like this
>
> for x=1 to 4
> obj='obj'+transform[x]
> how do i create each object?
> form.addobject(obj,'class')
> with .obj
> set properties here
> endwith
> endfor
>
> The container for these objects are a form... I want to populate a form
> on a loop, placing them in code.
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
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/cajcbkspuxyrnbv2uujclmasn+_opybsy_bjsydxbi1_ruju...@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.