Compile error oddiity 
Author Message
 Compile error oddiity

Hello all,

I  wonder if anybody had  the same problem
sometime or can suggest  a solution

I get this error:
     Compile error
    Wrong number of arguments or invalid property
assignment

And the cursor highlights the last half of the
line
    Picture1.Line (x1,y1)-(x2,y2)

Quote:
>>> x1,y1,x2,y2 are just dummies <<<

The only  way to remove the compile error is this:

1    REM out line  Picture1.Line............
2    Recompile               <<< Program does not
have to be  run>>>
3    Remove the REM from the line above
4    Recompile...... And all is OK with the
program

Any suggestions...... anyone.......

George



Sun, 18 Nov 2001 03:00:00 GMT  
 Compile error oddiity
I get this sort of error sometimes too. I will put in a stop statement
or break out of execution to examine variables and when I restart
it I get this same error.

I fix it by exiting VB and getting back in.

This is with VB5 SP3.



Quote:
>Hello all,

>I  wonder if anybody had  the same problem
>sometime or can suggest  a solution

>I get this error:
>     Compile error
>    Wrong number of arguments or invalid property
>assignment

>And the cursor highlights the last half of the
>line
>    Picture1.Line (x1,y1)-(x2,y2)
>>>> x1,y1,x2,y2 are just dummies <<<

>The only  way to remove the compile error is this:

>1    REM out line  Picture1.Line............
>2    Recompile               <<< Program does not
>have to be  run>>>
>3    Remove the REM from the line above
>4    Recompile...... And all is OK with the
>program

>Any suggestions...... anyone.......

>George



Sun, 18 Nov 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Compile error: Automation error, Error 32811: Unexpected error

2. Crystal error: error ocurred reading records: error in compiling sql expression

3. Compile error: Automation error

4. Compile Error : Automation Error

5. Error message: Compile error in hidden module

6. Compile Error - Permission Denied (Error 70)

7. VB6 - Compile error: error in loading dll

8. Compile Error

9. Compile error on Right() function???

10. MS VB Compile Error

11. Compile Error

12. COMPILE ERROR - AT SPLITED MDB

 

 
Powered by phpBB® Forum Software