TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: TIM HUTZLER
date: 1996-06-10 07:27:00
subject: Can`t see array in subs

Hi
I'm declaring a TYPE array, which I define a string.
TYPE Crec
    ...
    StAdx as STRING * 20
    ...
END TYPE
Then I dimention it as follows...
DIM rec AS SHARED Crec
In the body I can reference it okay, but when I reference it in a sub from
within a sub - I get a 481 error.
SUB mysub (x%)
    ...
....Pfield "Street Name: ", rec.StName, 20
Error points here---------------------^
The argument count is correct,...
SUB Pfield (x$, y$, l%)
...so I am assuming that rec.StName forgot what type it is, or something.
Is it the first parameter being a literal, I just thought of that.
Any advise or suggestions would be appreciated.
tnx
 
___ Blue Wave/QWK v2.12
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)

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™.