TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: DAVE NAVARRO
date: 1995-05-16 17:00:00
subject: Creating SHARED type arra

'Example:  Creating a SHARED 'TYPE' array.
TYPE TestData
  Row AS BYTE
  Col AS BYTE
END TYPE
'Create array and fill first element
HiMom
'Access array and display first element values
HiDad
SUB HiMom ()
  DIM MyData(20) AS SHARED TestData
  MyData(1).Row = 1
  MyData(1).Col = 2
END SUB
SUB HiDad ()
  ' declare the array as SHARED and DIMmed outside the SUB
  DIM MyData(MIN,1) AS SHARED TestData
  PRINT MyData(1).Row
  PRINT MyData(1).Col
END SUB
---
 * QMPro 1.53 * Crime DOES pay!  Ask any priest or politition!
--- WILDMAIL!/WC v4.12 
---------------
* Origin: Toast House * (314) 994-0312 * (1:100/560.0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.