TIP: Click on subject to list as thread! ANSI
echo: foxpro
to: MICHAEL DOUGHERTY
from: RENALD LOIGNON
date: 1997-03-17 11:58:00
subject: Scoping Issues

 MD> The screen control (@ GET) calls a procedure, which conditionally
 MD> calls another procedure to do the specific work in each case.  When
 MD> the working procedure tries to reference the global variable, the
 MD> procedure works the first time it is entered- but the second time the
 MD> procedure is called, the program halts because the variable (my public
 MD> constant) cannot be found.  Debug shows no value just after control
 MD> passes to the procedure (the second time)
How are those 18 variables named?
Do you use PRIVATE anywhere in your snippets or other procedures? If so, what 
syntax do you use, "PRIVATE ALL LIKE ", "PRIVATE ALL EXCEPT 
", or "PRIVATE ALL"?
 MD> Is there a scoping restriction that makes variables available
 MD> only to immediate child procedures, but not grandchildren?
No.
--- GoldED 2.50+
---------------
* Origin: Point of View (1:167/133.100)

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