[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

BeeJ

3/27/2012 4:12:00 AM

What is wrong with some graphics commands?
Is there a proper work-around?

1) use the arrow to run and it errors.
2) use Ctrl-F5 and it errors.
3) use File\Make and it compiles.

Sometimes I have to close the IDE and reopen.
Sometimes even that does not work.

After I compile it runs.

Error message says bad parameters but all he parameters are just fine.
It is not even trying to execute the line.

On Error Resume Next
fColorPicker.Circle (g_tSelectedPosRect.x, g_tSelectedPosRect.y), 5
'Erases Previous Circle


10 Answers

mm

3/27/2012 6:49:00 AM

0

"BeeJ" <nospam@spamnot.com> escribió en el mensaje
news:jkren9$c30$1@dont-email.me...
> What is wrong with some graphics commands?
> Is there a proper work-around?
>
> 1) use the arrow to run and it errors.
> 2) use Ctrl-F5 and it errors.
> 3) use File\Make and it compiles.
>
> Sometimes I have to close the IDE and reopen.
> Sometimes even that does not work.
>
> After I compile it runs.
>
> Error message says bad parameters but all he parameters are just fine.
> It is not even trying to execute the line.
>
> On Error Resume Next
> fColorPicker.Circle (g_tSelectedPosRect.x, g_tSelectedPosRect.y), 5
> 'Erases Previous Circle

I had a similar problem sometimes (with .Line)


Andrew Elder

3/27/2012 8:30:00 AM

0

On 27/03/2012 3:12 PM, BeeJ wrote:
> What is wrong with some graphics commands?
> Is there a proper work-around?
>
> 1) use the arrow to run and it errors.
> 2) use Ctrl-F5 and it errors.
> 3) use File\Make and it compiles.
>
> Sometimes I have to close the IDE and reopen.
> Sometimes even that does not work.
>
> After I compile it runs.
>
> Error message says bad parameters but all he parameters are just fine.
> It is not even trying to execute the line.
>
> On Error Resume Next
> fColorPicker.Circle (g_tSelectedPosRect.x, g_tSelectedPosRect.y), 5
> 'Erases Previous Circle
>
>

I have seen this symptom occasionally...after editing the .Line
statement VB throws an error (Syntax Error, I think, it was a while
ago), that may not even be the line I just edited.

I fixed it by re-starting the IDE, and it works fine until I edit a line
with a .Line in it.

Seems the parser gets confused, but an IDE restart never fails to fix
the problem.

Andrew

unknown

3/27/2012 9:44:00 AM

0

"Andrew" <aelder@melbpc.org.au> wrote in message
news:jkrtpb$s94$1@dont-email.me...
> On 27/03/2012 3:12 PM, BeeJ wrote:
>> What is wrong with some graphics commands?
>> Is there a proper work-around?
>>
>> 1) use the arrow to run and it errors.
>> 2) use Ctrl-F5 and it errors.
>> 3) use File\Make and it compiles.
>>
>> Sometimes I have to close the IDE and reopen.
>> Sometimes even that does not work.
>>
>> After I compile it runs.
>>
>> Error message says bad parameters but all he parameters are just fine.
>> It is not even trying to execute the line.
>>
>> On Error Resume Next
>> fColorPicker.Circle (g_tSelectedPosRect.x, g_tSelectedPosRect.y), 5
>> 'Erases Previous Circle
>>
>>
>
> I have seen this symptom occasionally...after editing the .Line statement
> VB throws an error (Syntax Error, I think, it was a while ago), that may
> not even be the line I just edited.
>
> I fixed it by re-starting the IDE, and it works fine until I edit a line
> with a .Line in it.
>
> Seems the parser gets confused, but an IDE restart never fails to fix the
> problem.

Are you guys using "Auto syntax check"? That's unprofessional <g>.


Andrew Elder

3/27/2012 10:30:00 AM

0

On 27/03/2012 8:43 PM, Farnsworth wrote:
> "Andrew"<aelder@melbpc.org.au> wrote in message
> news:jkrtpb$s94$1@dont-email.me...
>> On 27/03/2012 3:12 PM, BeeJ wrote:
>>> What is wrong with some graphics commands?
>>> Is there a proper work-around?
>>>
>>> 1) use the arrow to run and it errors.
>>> 2) use Ctrl-F5 and it errors.
>>> 3) use File\Make and it compiles.
>>>
>>> Sometimes I have to close the IDE and reopen.
>>> Sometimes even that does not work.
>>>
>>> After I compile it runs.
>>>
>>> Error message says bad parameters but all he parameters are just fine.
>>> It is not even trying to execute the line.
>>>
>>> On Error Resume Next
>>> fColorPicker.Circle (g_tSelectedPosRect.x, g_tSelectedPosRect.y), 5
>>> 'Erases Previous Circle
>>>
>>>
>>
>> I have seen this symptom occasionally...after editing the .Line statement
>> VB throws an error (Syntax Error, I think, it was a while ago), that may
>> not even be the line I just edited.
>>
>> I fixed it by re-starting the IDE, and it works fine until I edit a line
>> with a .Line in it.
>>
>> Seems the parser gets confused, but an IDE restart never fails to fix the
>> problem.
>
> Are you guys using "Auto syntax check"? That's unprofessional<g>.
>
>
No, "Auto Syntax Check" is off!

BeeJ

3/27/2012 2:16:00 PM

0

Come to think of it I had the same problem with line.

Is there an API call for Line and Circle?

I think at one point I created a Sub Line that I called that had only an On
Error GoTo and the Line command in it and that seemed to help.

mm

3/27/2012 3:55:00 PM

0

"BeeJ" <nospam@spamnot.com> escribió en el mensaje
news:jksi3f$hc4$1@speranza.aioe.org...
> Come to think of it I had the same problem with line.
>
> Is there an API call for Line and Circle?

LineTo http://allapi.mentalis.org/apilist/Li...

http://msdn.microsoft.com/en-us/library/dd145028%28v=vs....

> I think at one point I created a Sub Line that I called that had only an
> On Error GoTo and the Line command in it and that seemed to help.

The type of error that I got, was the one that doesn't allow the program to
run at all (like when there is a declaration missing and you have Option
Explicit set), not the type that can be intercepted with On Error...


Mike Williams

3/27/2012 4:47:00 PM

0

"BeeJ" <nospam@spamnot.com> wrote in message
news:jksi3f$hc4$1@speranza.aioe.org...
> Come to think of it I had the same problem with line.
> Is there an API call for Line and Circle?

Use the Ellipse function for circles and the Arc funtion for when you want a
partial circle. For lines you can use the LineTo function. Also have a look
at PolyLine and PolyPolyLine.

Mike


unknown

3/27/2012 8:57:00 PM

0

"BeeJ" <nospam@spamnot.com> wrote in message
news:jksi3f$hc4$1@speranza.aioe.org...
> Come to think of it I had the same problem with line.

Have you checked for missing references?


BeeJ

3/27/2012 11:14:00 PM

0

Yes, same here but when I put the Line command in a sub wrapper it never had
the problem again.

BeeJ

3/27/2012 11:17:00 PM

0


DNA
I all runs just fine both in the IDE and compiled except that for some
reason once in a while it hangs for me as it does for Eduardo.
I could never figure out why it would hang since it all would run Ctrl-F5
many times and then after more edits it would just hang.
Restarting the IDE was the only cure until I tried putting the Line in a
sub.
Now the same for Circle.