I have done the first bit removed the new from the dim line but not sure about the other bit or where it goes . this is what i have so far. and if i run that it says there was a syntax error.

  if ScreenCount > 1 then
    Dim w = Window3
    w.Left = Screen( 1 ).availableleft
    w.Top = Screen( 1 ).availabletop
    w.width = screen( 1 ).availablewidth
    w.height = screen(1).availableheight
  end if

Kind Regards
Lee


On 3 Jan 2006, at 23:43, Lee Unsworth wrote:

cheers i try that
Lee



On 3 Jan 2006, at 23:36, Joseph J. Strout wrote:

At 10:12 PM +0000 1/3/06, Lee Unsworth wrote:

its comes up with a dialog box saying that there is a syntax error on the line dim w as new window3
is having realbasic 5.5.2 anything to do with it

Yes, that's not valid syntax in that old version of REALbasic. I don't recall whether that's because it's in an if-block, or because of using "New" on the "Dim" line (or both).

But this illustrates a good point about asking questions: if you're getting an error message, always say specifically what and where it is. That will save everyone a lot of time. In this case, for example, it has nothing to do with multiple monitors, and is simply the fact that "Dim foo as New bar" in an if-block was invalid syntax in old versions of RB.

To fix the code for 5.5.2, put the "Dim" statement (without New) up at the top of the code, and within the if statement, change it to just "w = new Window3".

Best,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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>


_______________________________________________
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>


_______________________________________________
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