Announcement

Collapse
No announcement yet.

Likely Conflict

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Likely Conflict

    Hello everyone:
    I am having trouble compiling my program because it keeps giving me errors on SUB's and FUNCTION's that I have been using up until the moment the compiler started giving me these errors. In other words I have been using these SAME SUB's and FUNCTION's for two weeks or more in the program with no such errors. I don't know what can cause this, does anyone have any idea or has anyone had this happen before. Any help would be appreciated.

  • #2
    Hi Leroy!

    Do you have a small sample of code that won't compile, that we can try? What error messages are you getting?

    I've never seen an abrupt failure such as you describe except when I've made a mistake of some kind.

    More info needed.

    Comment


    • #3
      A problem such as that USUALLY is due to a missing close block (END IF, etc.) so the function the missing block is in just spills over to all your other functions.
      <b>George W. Bleck</b>
      <img src='http://www.blecktech.com/myemail.gif'>

      Comment


      • #4
        Sometimes using the wrong compiler can give odd errors - like using PBCC.exe with source code for PBWIN.exe..
        Rgds, Dave

        Comment


        • #5
          Originally posted by George Bleck View Post
          A problem such as that USUALLY is due to a missing close block (END IF, etc.) so the function the missing block is in just spills over to all your other functions.
          That is my favorite trick alright

          My rule is to write the END statement when i write the opening statement - but i do not always obey my own rules!
          [I]I made a coding error once - but fortunately I fixed it before anyone noticed[/I]
          Kerry Farmer

          Comment


          • #6
            Using #COMPILER takes care of the specific case mentioned by Dave.

            Errors don't always present at the point of the actual mistake.

            Source code that demonstrates the error always helps (prevent pure guess work by those trying to help you).

            Cheers,
            Dale

            Comment


            • #7
              It would help if you tell us exactly what error messages you are receiving.

              Comment


              • #8
                Originally posted by George Bleck View Post
                A problem such as that USUALLY is due to a missing close block (END IF, etc.) so the function the missing block is in just spills over to all your other functions.
                Yep, that's a common problem

                Careful indentation helps to prevent/diagnose the problem.

                Comment


                • #9
                  Thanks Everyone:
                  I found my problem. I was using EZGUI 5.0 to design the dialogs/forms and in order to allow the compiler to know what to keep in EZGUI you have to do the following.

                  '<<SAVE>>
                  GLOBAL variables
                  DECLARE SUB
                  DECLARE FUNCTION

                  SUB Dosomething()
                  SUB DosomethingElse()

                  FUNCTION aFunction()
                  '<<END>>

                  Well my problem was somehow all this got copied again into the program and all SUBS/FUNCTIONS were duplicated, so that was the CONFLICT.

                  THANKS EVERYONE

                  Comment


                  • #10
                    Being repetitive … but -

                    With sample source code that has the problem, and the error codes someone would have spotted the problem right away!

                    Cheers,
                    Dale

                    Comment


                    • #11
                      Dale:
                      If I had tried to make a small sample of code I might not have duplicated the lines of code. I hate to send such a large amount of code for someone to spend too much time pouring over it for me. I still don't know how this part of the program got copied twice. Anyway thanks for ALL THE HELP from everyone this forum has the most helpful people anyone could ever hope for.

                      Comment

                      Working...
                      X