Duplicate Definition Errorby grafton129 (no login)
I'm in the process of creating a GUI interface for a game I'm making for my little brother. Since the start, I've been plagued with the "Duplicate Definition" error for some of my subroutines.
For no appearant reason, once in a while I will get a "duplicate definition" error whenever I call a certain subroutine or even when declaring subroutines at the beginning of the program. It's always a random sub call, and there are no actual problems with the subroutine or the declare lines. It just gets hung up.
In the past, I've had to cut out entire subroutines and paste them back in for it to work, leaving the code exactly as I found it. For some reason, the error stops. Sometimes, deleting the "DEFINT A-Z" statement that QB automatically puts into my subroutines does the trick. But now, none of these quick fixes seem to be working. I'm using QB 4.5. Is this a common problem, or might I have a corrupted QB executable? I can provide code, but it's lengthy.
|Response Title||Author and Date|
|This often results from an orphan variable...||on Apr 24|
|MAYBE ...||OPRESION on Apr 24|
|* Much thanks, fellows! I incorrectly called a function like a subroutine >.>||grafton129 on Apr 25|