Greetings All, and first off let me say I appreciate your help and suggestions.
Problem: DB Pro Trial, Simple 2 Source file Program.
Error Message during Compile: The Function 'HelloWorld' duplicated in the program inside testinclude.dba.
Source code #1:
-------------------------------------
#include "testinclude.dba"
CLS
HELLOWORLD()
End
Source Code #2:
-------------------------------------
Function HelloWorld()
Print "Hello World"
wait key
endfunction
Possibly Helpful Note: When I FIRST entered the program, it worked. I added: GLOBAL A$ above the Call to HelloWorld in source file #1, because I was going to test variable scope. I recieved the error and subsequently deleted the GLOBAL A$ line. The error remained. This peculiar behavior prompted me to post this question.
---Non-Related:
Below is not Question Related but may be of interest. The rules said don't make multiple threads if not necessary etc.
I bought DB Pro like 4 years ago I think, and I have not used it in eons. I saw some new things recently from TGC, and thought I'd dig it up - couldn't find my software cd's - so I downloaded the trial. I'm trying to reaquaint myself - and this is proving difficult because the first thing I always do is start an API and/or tool box to help when I'm knee deep in an application later. Building functions and understanding variable scope so I implement thing correctly is key to working with the system versus fighting it.
Note: I am a professional programmer, but do games for fun. My point is that I am not a newbie choking on a string without quotes or something like that, or a Variable named HelloWorld as well as a function (Even though some languages don't mind) though I am not immune to such errs, that is why I'm asking you for a second pair of eyes to potentially spot something silly I'm doing or confirm to me the code looks correct.
Also, I'm looking VERY CLOSELY at the new DarkGTK. It looks nice. I am perplexed why they do not bundle the .net and C++ versions together, but that is neither here nor there... WHAT IS HERE ANd THERE is the improved speed. I'm thinking possibly of purchasing and, if allowed, making FreePascal units that allow using library from it versus C++. (FreePascal Kicks - but finiding equivalents for existing C++ header files is difficult sometimes).
Any ways thanx in advance for helping with my problem.
Know way to many languages - Master of none