Perhaps I misunderstood what you meant by "optimize".

If MyArray() is an array of strings, perhaps you want to set the
BevelButton captions and your original code doesn't even compile.

Try changing
  w.BevelButton1 = MyArray(62)
to
  w.BevelButton1.Caption = MyArray(62)

On the other hand you may also be looking for a shortcut to write less code
by doing your code in a loop.
If so, I can't think of a way to help you unless it is practical to make
your BevelButtons into a control array, which I doubt.

--
Steve Garman
Using REALbasic 2006r2 Professional on Windows XP Pro


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

Reply via email to