Qbasicnews.com
October 19, 2021, 08:53:44 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Modolarising large programs  (Read 2268 times)
A.Sadjadian
New Member

Posts: 18


« on: August 02, 2004, 08:54:54 AM »

Salaam
Back in Feb.2003 I asked how to modolarise large programs to be able to compile them and I received a few replies. My problem was solved (temporarily) some other way and I still have the problem.
I have divided my program into 2 moduls but now the SUBs in the second module do not receive the variables from the first module.

I have read Modorizeit article but I do not know how to CONVERT DIM SHARED  statements to COMMON SHARED as the dim part ( say  1 to Cool can no be in a common shared line.
Logged
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #1 on: August 02, 2004, 09:36:18 AM »

use COMMON SHARED first, then DIM after that:

Code:
COMMON SHARED array()
DIM SHARED array(100)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!