|
Jim, While it has some interesting possibilities, be aware that this works as a COMPILE time feature, so if you wre to distribute the object, it should work fine. BUT, if you are distributing the source to another system and that was recompiled and that option didn't exist or, even worse, if it contains a different mask you'd be in for a surprise! -mark Original Message: ----------------- You could set up your own Edit Description's with CRTEDTD (I believe that 5, 6, 7, 8, 9 are allowed) then just use that code in place of the normal code or an editword. Gives you some flexiblity but is limited to 5 codes. HTH, -- Jim LowAry >>> Rick.Chevalier@xxxxxxxxxxxxxxx 04/22/03 08:33AM >>> Rob, You are right. If the field changes the edit word must be changed. Of course, this isn't an issue with edit codes. I don't have them all memorized but I don't remember an edit code that allows leading zeros though. The question was how to create an edit word that allows for a leading zero in the first position. This is accomplished with an edit word one byte longer than the field. If the field changes the edit word must also change. If the edit word size isn't changed you might receive a compile error on the edit word size not matching the field size but I'm not sure. I haven't used edit words for output in a long time. Rick -----Original Message----- The problem with that Rick, is how do you change the edit word without editing the source if the field you are editing changes in length? I don't think you can just recompile the program. Maybe you can store an edit word into a variable, and you can define that variable like this other variable plus one character. But that makes figuring the commas and stuff start to get a little tricky. Rob Berendt ... -----Original Message----- Along this line of inquiry I've found a problem I don't know how to resolve. It has to do with the leading zeros. One places the 0 in the edit word in the column to the left of where the leading zeros are to start as I understand it. How does one get a leading zero in the very first column, as there is no position to the left of it. %EditW allows for an edit word 1 byte longer than the field length. Specify the edit word as 1 longer than your field length and place the 0 in the leftmost positon. -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.