April 23, 2024, 05:40:57 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Syntax error

Started by TexasPete, February 26, 2010, 10:49:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TexasPete

February 26, 2010, 10:49:19 AM Last Edit: February 26, 2010, 10:54:35 AM by TexasPete
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

LarryMc

February 26, 2010, 11:18:02 AM #1 Last Edit: February 26, 2010, 11:26:28 AM by Larry McCaughn
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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

aurelCB

Yes Pete you replace () with [] for array 

TexasPete

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

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library