ChrisRChamberlain
Programmer
Hi all,
Making considerable use of CHRTRAN() in an application and was musing on which might be quicker - to check for the existence of a character(s) in a text field and if found, run CHRTRAN() or simply run CHRTRAN() regardless.
From a coding point of view it's one line versus three, and the result's the same whether you do it correctly, ie test for existence, or not.
The obvious way to find out is to run some tests - alternatively someone may already have been down this particular road before and have the answer.
![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)
Making considerable use of CHRTRAN() in an application and was musing on which might be quicker - to check for the existence of a character(s) in a text field and if found, run CHRTRAN() or simply run CHRTRAN() regardless.
From a coding point of view it's one line versus three, and the result's the same whether you do it correctly, ie test for existence, or not.
The obvious way to find out is to run some tests - alternatively someone may already have been down this particular road before and have the answer.
FAQ184-2483 - answering getting answered.
Chris ![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)