[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nsbasic-palm
Subject:    Re: [nsbasic-palm] Re: Project won't compile
From:       "Albert J. Franklin" <ajfrank () twcny ! rr ! com>
Date:       2003-07-31 23:47:36
Message-ID: 001601c357be$1e845e60$6601a8c0 () ruby
[Download RAW message or body]

Jeff,

I had a similar problem once, due to the conflict of left with the string
function of the same name.  Change your rectangle's left to something like
lft, and see if the problem goes away.

Al
----- Original Message ----- 
From: "George Henne" <gh@nsbasic.com>
To: "nsbasic-palm" <nsbasic-palm@yahoogroups.com>
Sent: Thursday, July 31, 2003 5:44 AM
Subject: Re: [nsbasic-palm] Re: Project won't compile


> It's flagging the wrong line. Subroutines can only return simple
> variables and not structures.
>
> George Henne
> NS BASIC Corporation
> http://www.nsbasic.com
>
> >To follow up to my initial post, I've done some completely trial and
> >error troubleshooting, and I've isolated the problem to the following
> >code:
> >
> >Sub Project_Startup()
> >    Type Rectangle
> >       top as Integer
> >       left as Integer
> >       width as Integer
> >       height as Integer
> >    End Type
> >
> >End Sub
> >
> >Function makeRect( iTop as Integer, iLeft as Integer, iWidth as
> >Integer, iHeight as Integer) as Rectangle
> >   Dim newRect as Rectangle
> >
> >   newRect.top = iTop
> >   newRect.left = iLeft
> >   newRect.width = iWidth
> >   newRect.height = iHeight
> >
> >Return newRect
> >
> >The compiler still simply highlights "Startup()" from the first line,
> >and I therefore am still clueless as to what the complaint is
> >
> >Hope this helps isolate it
> >
> >Jeff
> >
> >--- In nsbasic-palm@yahoogroups.com, "Jeff Morris" <morrisjj@c...>
> >wrote:
> >> I need a little help here.
> >>
> >> I've written a small test project and when I try to compile it, I
> >get
> >> the standard "Error...Syntax error.'." message.
> >>
> >> Usually when this happens the IDE takes you to where the error is
> >in
> >> your code.  In this case it takes me into my (empty) Startup code.
> >>
> >> The startup code is
> >>
> >>    Sub Project_Startup()
> >>    End Sub
> >>
> >> The editor has the "Startup()" hightlighted
> >>
> >> Needless to say, I have no clue what the compiler is complaining
> >> about.
> >>
> >> I'm pretty new to NSBasic, so I'm hoping someone out there has seen
> >> this pattern before and can point me in the right direction
> >>
> >> I'm not quite sure how to attach the file to this post or I would
> >> attach the .prj file.
> >>
> >> If someone thinks they can help, let me know and I'll e-mail you
> >> the .prj directly.
> >>
> >> Thanks in advance,
> >>
> >> Jeff
> >
> >
> >Community email addresses:
> > Post message: nsbasic-palm@yahoogroups.com
> > Subscribe:  nsbasic-palm-subscribe@yahoogroups.com
> > Unsubscribe:  nsbasic-palm-unsubscribe@yahoogroups.com
> > List owner:  nsbasic-palm-owner@yahoogroups.com
> >
> >Shortcut URL to this page:
> > http://groups.yahoo.com/group/nsbasic-palm
> >
> >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
>
>
>
> Community email addresses:
>  Post message: nsbasic-palm@yahoogroups.com
>  Subscribe:  nsbasic-palm-subscribe@yahoogroups.com
>  Unsubscribe:  nsbasic-palm-unsubscribe@yahoogroups.com
>  List owner:  nsbasic-palm-owner@yahoogroups.com
>
> Shortcut URL to this page:
>  http://groups.yahoo.com/group/nsbasic-palm
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>



Community email addresses:
 Post message: nsbasic-palm@yahoogroups.com 
 Subscribe:  nsbasic-palm-subscribe@yahoogroups.com 
 Unsubscribe:  nsbasic-palm-unsubscribe@yahoogroups.com  
 List owner:  nsbasic-palm-owner@yahoogroups.com 

Shortcut URL to this page:
 http://groups.yahoo.com/group/nsbasic-palm  

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic