IonicWind Software

Creative Basic => General Questions => Topic started by: TexasPete on February 26, 2010, 10:49:19 AM

Title: Syntax error
Post by: TexasPete on February 26, 2010, 10:49:19 AM
I am getting over bypass heart surgery. I keep getting a little syntax error in the following subroutine. Does anybody see the error.


sub MouseOverObject
If (MouseX >= HB(1,ZZ) ) | (MouseX <= HB(3,ZZ))
If (MouseY >= HB(2,ZZ)-HB(10,ZZ)) | (MouseY <= HB(4,ZZ))
'-------------MAKE THE SELECTION----------
overcontrol = 1:SELECTED=ZZ:TEST$=TYPE$(1,SELECTED)
'-------------MAKE THE SELECTION------------
EndIf
EndIf
return



Thanks Texas Pete
Title: Re: Syntax error
Post by: LarryMc on February 26, 2010, 11:18:02 AM
What's the specific error message you get?

You don't give us very much to work with.
I could be tacky and list about 30 things that could be wrong! ;)
My GUESS is that HB is not a function but a 2-dim array.
() means function [] means array.

That's the best i can do without additional info.

LarryMc
Title: Re: Syntax error
Post by: aurelCB on February 26, 2010, 11:56:18 AM
Yes Pete you replace () with [] for array 
Title: Re: Syntax error
Post by: TexasPete on February 26, 2010, 04:32:13 PM
Thanks fellas you got it . It was the [] for array . I had already made that change thru out the rest of the program.
I think all those pain killers have fogged my brain. I am getting better every day. Bypass is tough. They did save my
heart and I did not have a heart attack. Thanks
Texas Pete
Title: Re: Syntax error
Post by: LarryMc on February 26, 2010, 04:52:20 PM
Been there/done that Pete.  Had my triple bypasses in 93.  Had a stent put in in 96 and another this past Dec.

Trust me things will get better.

LarryMc