Qbasicnews.com
define argument types in subs - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: define argument types in subs (/thread-3186.html)

Pages: 1 2 3 4 5 6


define argument types in subs - TheBigBasicQ - 02-13-2004

Is it different in those archives?


define argument types in subs - Neo - 02-13-2004

More or less. Some QB45 archives contain some of the older QB files like the Help File from QB30 (?). I first had it, I couldn't get any info about ABSOLUTE and INTERRUPT. Smile Here and there also the examples and other files are different.


define argument types in subs - TheBigBasicQ - 02-13-2004

did u see the latest release of qb45? It has complete archive of M$'s examples and stuff =P.


define argument types in subs - Neo - 02-13-2004

I saw it yes Smile It's available at QBNZ, so I must have seen it Wink


define argument types in subs - TheBigBasicQ - 02-13-2004

did you dl and try it? Its cool. I have a full version of qb7.1. Its cooler than qb45 =P.


define argument types in subs - Neo - 02-13-2004

Naah, QB71 didn't look good enough for me. I prefer 80x25 resolution (and no I can't change the 80x60 resolution of QB71), so I was really at once disgusted by the layout. Anyway, QB45 is also much better in libraries, which are what I like Wink


define argument types in subs - Phydaux - 02-13-2004

Quote:For me QB doesnt sneekily put a DEFSNG A-Z but a DEFINT A-Z.

I wonder why :o
If you've got a DEFINT statememnt in your main module, qb puts a simmilar statement in each sub/function (created after the inclusion on DEFINT)

e.g. If you write 2 subs, qb doesn't add any DEF... statement at the top of them. If you then add a DEFINT A-D statement in your main module, then qb adds a DEFINT A-D in each sub/function created then on. But it doesn't add it to the 2 subs created first.

e.g. if you've got something like:
DEFINT A-F
DEFLNG G-Q
DEFSTR X-Z
in your main module qb adds each DEF... statement to your subs/functions as they are created.


define argument types in subs - relsoft - 02-14-2004

Quote:For me QB doesnt sneekily put a DEFSNG A-Z but a DEFINT A-Z.

I wonder why :o

Because you put

DEFINT A-Z

in your main module. ;*)


define argument types in subs - TheBigBasicQ - 02-15-2004

No, I havent put a DEFINT in my main module. It just appears out of the blue whenever I make a new SUB =P.


define argument types in subs - Phydaux - 02-15-2004

Quote:No, I havent put a DEFINT in my main module. It just appears out of the blue whenever I make a new SUB =P.
It could be in an included file Tongue