On 24-Apr-07, at 8:37 AM, Sven E Olsson wrote: > > Just a note you can't even do this inside a function > > > if prefs.Wordwrap = true then > dim w as TextWndNoscroll > w = new TextWndNoScroll > else > dim w as TextWndHscroll > w = new TextWndHscroll > end if > > w.title = "index.html" > w.document = f > w.EditFiled1.text = "hello" > ------------------------ > > You have to write the code twice, because the dim statement is inside > a block.
Do TextWndNoscroll and TextWndHscroll share a common root class ? if so you could declare the global to be that common root class once and then use it as needed _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
