On 4/23/07, Sven E Olsson <[EMAIL PROTECTED]> wrote: > I am testing to use two windows (because it is not possible to set > the EditField.ScrollbarHorizontal in the fly). > > > I just begin, so this is only the first problem.. > > I can't create a global array using code, I wanted to do something > like this, instead it looks like that i need properties and code for > every window. > > if prefs.WordWrap = true then > dim Global OpnW() as TextWNoscroll > else > dim Global OpnW() as TextWHscroll > end if
Is that some new kind of syntax for RB 200x? I've never declared a global variable that way in RB. If I understand what you're looking for, you should be able to get the same effect by declaring a property that's an array of your window in a module, and making sure to set its scope as Global. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
