How about: TEST = CHANGE('AF1,CK1,CK2,GS1,H,J,LHC,MP,MP3,NU1,NU2,TK1,TK2',',',@FM)

----- Original Message ----- From: "Keith Johnson (DSLWN)" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, November 26, 2007 1:50 PM
Subject: [U2] Good Practice?


Neil suggested using LOCATE rather than INDEX in my example.

I'm not sure I agree that would be any less complex as far as the code
is concerned.  INDEX and LOCATE are both 'complex' compared with the IF
statement, and since LOCATE needs its SETTING variable, it's arguably
the more complex statement.  There are three different forms of LOCATE,
so that can cause problems. Lastly, the variable TEST has to be set up
with attribute marks either by multiple lines or by the very long line
below; which, I have to say, I don't find very readable at all.

TEST =
'AF1':@AM:'CK1':@AM:'CK2':@AM:'GS1':@AM:'H':@AM:'JM':@AM:'LHC':@AM:'MP':
@AM:'MP3':@AM:'NU1':@AM:'NU2':@AM:'TK1':@AM:'TK2'

<SNIP> -------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to