error in test contion
Dr. Hawkins
dochawk at gmail.com
Fri Oct 25 17:19:11 EDT 2013
I store the program version, calculated from the filename, as a custom
property of the main stack. So when the filename changes, the following
code comes into play when opening:
put exists (the prgVrsn of stack "mcp") , (the prgVrsn of stack "mcp" <>
progVersion)
if not exists (the prgVrsn of stack "mcp") OR (the prgVrsn of stack "mcp"
<> progVersion) then
set the prgVrsn of stack "mcp" to progVersion
The put executes, with false, false r some such.
But then the test causes the message,
Type if-then: error in statement
Object mcp
Line if not exists (the prgVrsn of stack "mcp") OR (the prgVrsn of stack
"mcp" <> progVersion) then
Hint openMcp
--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
More information about the use-livecode
mailing list