Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 1675
Number of posts: 4764

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Duplicate Definition Posted by Randy Webb on 18 Feb 2000 at 12:59 AM
I have entered a program in my computer off of the net and when I hit F5 it says "Duplicate Definition". After searching for a while, I cannot locate the problem. It has also done this on a program I am writing now. After searching all of my QBasic materials I find nothing. Can anyone help?<br>
<br>



Edit Report
Re: Duplicate Definition Posted by zeppo on 21 Feb 2000 at 10:10 AM
Hello<br>
<br>
Most likely you have two variables with<br>
the same name but which are declared as<br>
different data types..<br>
like:<br>
<br>
DIM x AS INTEGER<br>
DIM x AS SINGLE<br>
<br>
wont work because you have already declared<br>
x AS an INTEGER<br>
<br>
Or perhaps you are trying to create<br>
a SUB, FUNCTION that already is a QB command<br>



Report
Re: Duplicate Definition Posted by dcromley on 28 Nov 2009 at 10:25 AM
Referring to a SUB as a value gives this error.
E.g.
IF asdf THEN STOP
SUB asdf
END SUB
(9 years late)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.