understanding how define affects field initialized from temporary
brian_matthewsbrian matthews
brian_matthews_bmw@hotmail.com
Tue, 14 Dec 2004 00:13:53 +0000
it works ok here so I can't see why it should'nt work for you, so a few
things,
1.
It could be a bug
2.
is the temp value seen correctly if you call a designer proc like that below
at different times in the screen ?
designer proc cval
begin
if entrymode
then info = "E " + ascii(t_emp_no) now resp
else info = "not E " + ascii(t_emp_no) now resp
End
3.
Do you see any change if you create an initial proc as below, and use temp
item tlocal to initialize the record column,
temp tlocal zu size 9 reset at startup
initial proc
begin
let tlocal = t_emp_no
end
I am guessing that the value of the passed item may be getting lost during
initialization.
Bri,
>From: Lorry Litman <LLitman@exchange.hsc.mb.ca>
>To: "PowerHouse listserver (E-mail)" <powerh-l@lists.sowder.com>
>Subject: RE: understanding how define affects field initialized from
>temporary
>Date: Mon, 13 Dec 2004 14:16:05 -0600
>
>Hi,
>
>Thank-you all for your reply.
>Let me try and clarify a few things.
>If I call the screen in find mode (or enter F in the action field) and then
>enter A in the action field and I check in an input procedure "IF
>ENTRYMODE"
>the answer is true.
>On update the record is written to the table, it's just that emp_no has a
>value of 0 instead of t_emp_no that it was initialized from.
>If I change the item initial statement
>from
> item emp_no of empfile initial t_emp_no if entrymode
>to
> item emp_no of empfile initial t_emp_no
>the record gets written to the table with the correct emp_no value.
>
>What I don't understand and am trying to get a better understanding of is
>what might be going on in the background with the define statement.
>It almost seems like there is some sort of "get file" which maybe changes
>some buffer to do with the initialization of the emp_no field. I tried
>checking the manuals that I have and couldn't find any information.
>
>Thanx
> Lorry
>
>-----Original Message-----
>
>This e-mail and/or any documents in this transmission is intended for the
>address(s) only and may contain legally privileged or confidential
>information. Any unauthorized use, disclosure, distribution, copying or
>dissemination is strictly prohibited. If you receive this transmission in
>error, please notify the sender immediately and return the original.
><< message3.txt >>
><< message5.txt >>
><< message7.txt >>
><< message9.txt >>
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger