gettingstarted
[Top] [All Lists]

Re: Newbie trouble

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Newbie trouble
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Fri, 25 Feb 2005 13:33:12 -0600
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <421E17EF dot 3030901 at kotisprop dot com> <56B7F7E8-868F-11D9-A98F-00039378202C at realsoftware dot com> <01d139f61cbe26511d21b046c5bdd98d at mobleybros dot com> <421E28E5 dot 9090509 at kotisprop dot com> <9950813c5bba4c309291fa34630960ea at shaw dot ca> <a06002004be452a20081f at [10 dot 0 dot 1 dot 3]>
At 8:19 PM +0100 2/25/05, Dan Berghult wrote:

I have a window containing 20 Canvas objects which I want to access in a loop.

Give them all the same name in the window editor, making them into a control array. The name should be something descriptive of what they are for; but for the sake of example, I'll call them WidgetCanv. Then the code would be:

  for j = 1 to 20
     WidgetCanv(j).Backdrop = vPicture
  next

Best,
- Joe

--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>