--- In blassic@yahoogroups.com, "cybermonkey342" <mmangold@...> wrote:
> I just wanted to know if it is possible to get values with the SHELL command?
For example if I am using SHELL ("zenity") can the returned value be stored?
The return code of the last command executed is stored on sysvar 24. Try this
(in a system with a sh-like shell):
result = sysvarptr + 24
shell "return 1"
print peek(result)
shell "return 42"
print peek(result)
See http://blassic.org/sysvar.html for information on system variables.
> BTW: Nice to see there are still updates for Blassic so this lovely BASIC
dialect isn't dead for now ...
Is always nice to see there are people interested in old Basic dialects, and in
Blassic in particular :)