Thanx to you guys - Good Suggestions.
Walaber - I was messing with that approach as well because its the only way to organize in DBPro. I've used a lot of BASIC's from QBASIC right Through Microsoft's Professional BAsic 1.1 (Dos - After QBASIC before Virtual Basic) right up through VB6 and other dialects as well. DarkBasic seems more like its own scripting language with strange variable scope rules.
What you are trying to do by putting various types together reminds me of object oriented design and "classes" programming in object oriented languages.
Like in C++ and FreePascal .. You can do things like:
class t3DPoint
x as integer
y as integer
z as integer
endclass
class clsmybadguy as t3DPoint
Speed as float
endclass
MyClass = New clsmybadguy
Now you can do MyClass.x = 10 (As well as) MyClass.Speed (Without having to do MyType.threed.x) (which gets wordy...like you said - even when you try to stay "clean" the code gets muddy)
I'm finding myself getting frustrated with the loose type checking and dynamic variable declaration. EXAMPLE: How many times have you had a bug because your program was doing math on X# but a typo of "x" compiles with no problem and your program doesn't run as expected.
I wish you could make darkbasic not allow "dynamic" variables ... and only those you declare via global, dim, (declare? declare may not be even a db command)
Anyone else have a veiw or suggestion?
-=/Jaze/=-