Odd things happening...
Kenneth Brody
kenbrody at bestweb.net
Wed Mar 2 09:16:29 PST 2005
Quoting Jeff Harrison (Wed, 2 Mar 2005 08:44:18 -0800 (PST)):
[...]
> 2) As I understand it non-global dummy fields will
> only hold their value for the duration of the
> processing table in which they are set. If the
> variable is assigned in input processing then as soon
> as input processing is over then the value is lost -
> even if the field was declared in the automatic table.
[...]
Not quite. When the record is read/re-read and automatic processing
is run, is when non-global variables are cleared.
You can easily verify this with two simple processing tables:
automatic:
mesgbox "Automatic processing. aa = '" & aa & "'"
aa(10,*) = "aa is set"
mesgbox "Automatic processing after assign. aa = '" & aa & "'"
input:
end
@entsel
bb(5,.0,g) = bb + "1"
show "entsel processing. aa = '"' & aa & "' bb = '" & bb & "'"
end
Briin up record 1, and you will see the two automatic processing
messages, once with aa blank, and then filled in. You will then
see the entsel message with aa still filled in, and bb with a
counter. Switch screens, and you will see the entsel message
again, with aa still filled in, and the counter incrementing.
Go to record 2, and auto will now run again, clearing aa.
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list