On 26 déc. 05, at 12:38, Bernard Sunderland wrote:
I have an MDI app (running in WindowsXP) which offers a range of
differently designed windows as a domestic accounting system. Each
window represents a different kind of account. As it stands, the user
may enter info to any or all of these windows and they are all stored
in one file.
I would like to make it possible for clones of any of these windows to
be created in order to record more than one of a particular kind of
account. I thought it might not be possible since unlike other
controls, the initial window can not be given a "0" index. But I found
that if I declare in the App properties "wX(0) as window" and "wXcount
as integer" (actually, a different one of each of these for each kind
of window offered hence the X) then I can add a Menu item FileNew as:
wX(wcount)=New WindowX
wXcount=wXcount+1
and get an array of windows.
My question is simply, is this a sensible way to do it?
If you write:
dim w As WindowX
w=new WindowX
wX.append w
then you don't have to have the wXCount property (use UBound(wX) to get
how many windows are in wX (0 is the first one, so UBound(wX)+1 is the
real count of windows in wX)).
_______________________________________________
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>
|