Why is Public MemVAR unavailable during procedure call?
My program calls a procedure with a parameter split, which is just a
memory variable containing and email address with or WITHOUT the word
"Email" (which gives me a clue which web site it came from).
Do Email with split
**********
The actual procedure called (Email) is below and the problem : is at
the very bottom of the code where the procedure crashes because it
says the Public MemVariable split does not exist.
**********
PROCEDURE Email
parameters pmail
pmail=strtran(lower(strtran(strtran(strtran(pmail,"mailto",""),"
",""),":","")),"email","")
Do Case
Case empty(remail)
repl remail with pmail
Case pmail $remail
do bOhh
Wait
Wait Window pmail+" ALREADY in remail" timeout 3
Case alltrim(remail) $pmail
repl remail with pmail
Case len(pmail+" "+trim(remail2nd))<=Fsize('remail2nd')
repl remail2nd with pmail+" "+trim(remail2nd)
Case len(pmail+" "+trim(remail))<=Fsize('remail')
repl remail with pmail+" "+trim(remail)
Otherwise
do bUhOh
_cliptext=pmail
wait
wait window " pmail =>_cliptext to BIG CTRL+V to paste " + _cliptext
EndCase
********************************HERE IS THE PROBLEM***************
If "EMAIL" $upper(split) && crashes says there is no memvar split
Do RSX with "W"
Else
Do RSX
Endif
This is weird, the memvar split is PUBLIC, I can go to the command
prompt and type in
? Split
and I can see its contents.
What gives?
John "J.J." Jackson