• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

RE: Help Please on File I/O

Zoltan_Gyimesi

Legendary Poster
RE: Help Please on File I/O

Hi Paul,

1.) Create an ER variable based on the same data item than the key
field.
e.g. evt_AddressNumber_AN8 based on the AN8 data item.
2.) Fill this variable with the key value in the FetchNext (map this
variable in the FetchNext statement):
Fxxxxyy.FetchNext
evt_AddressNumber_AN8 <= TK AddressNumber
3.) Use this variable in your IF statements. e.g.
If evt_AddressNumber_AN8 is equal to "abc" then do something.

Hope, could help.

Zoltán
P.S.: Please, revise your "Jde Developers (E-mail)" entry. Replace the
"jdeowdevml@jdelist.com" with "jdeowdev@jdelist.com" (remove the "ml"
characters from it). The second is the right address. (Eric, am I
right?)



From: Watton, Paul [mailto:p.watton@ibstock.co.uk]
Sent: Tuesday, May 29, 2001 17:06
To: Jde Developers (E-mail)
Subject: Help Please on File I/O


Hi,

I'm running one word B733.

Within event logic I am doing a Select I/O on a file, followed by a
FETCH
NEXT.

I would like to do something based on the key of the record. That is ,
if
key = 'abc' THEN do something.
If key = "def' then do something else.

But how do I reference the key . I do not know what it is , and I can't
assign it to a variable.

Regards,

Paul Watton,
Senior A/P





B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
Re: Help Please on File I/O

<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi,

I'm running one word B733.

Within event logic I am doing a Select I/O on a file, followed by a FETCH
NEXT.

I would like to do something based on the key of the record. That is , if
key = 'abc' THEN do something.
If key = "def' then do something else.

But how do I reference the key . I do not know what it is , and I can't
assign it to a variable.

Regards,

Paul Watton,
Senior A/P
 
Top