Hi,
My requirement is to convert a number into COMP field.I am using routine ConvertToDataTypePicComp to convert into COMP field.Can any one help me to do this. I used below format to convert
ConvertToDataTypePicComp(038,2). but i am getting an error unable to convert
'%1' into number.
COMP field handling
Moderators: chulett, rschirm, roy
Sure it is, it's included in the sdk along with a number of other similar conversions.Mike wrote:Nobody here can help you unless you post the code of your site-specific custom routine: ConvertToDataTypePicComp. That's not a routine that ships with the product.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
All I have here is V8 where that routine does not exist, but do recall that the original SDK cobol conversion routines went in both directions (I happen to have quite intimate knowledge of that code).
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Well, maybe it's my memory that's faulty then.Mike wrote:Maybe my memory is faulty... I thought the whole set in the sdk was for converting from COMP. I don't remember a set for converting to COMP.
I know there are conversion routines out there, let me check... ack, you are correct. From is the supplied direction, to routines must be home brewed. Mea Culpa.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers