Skip to Content
author's profile photo Former Member
Former Member

CONVERT CHAR TO CURR

Hello,

I have to convert from a variable char (255) to other thar is curr (15). Is it possible?, how i cast it?, any ideas?.

Thanks for your help!!.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 11, 2005 at 09:50 PM

    You have to do the following.

    shift v_char255 left deleting leading spaces.
    translate v_char255 using ', '.
    condense v_char255 no-gaps.
    v_curr = v_char255.
    

    You need to be careful about occupied length of your v_char255 and I am assuming that you only have numbers, ',' and '.' in this field.

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2005 at 09:52 PM

    Hi

    You should give us more details: which kind of data have you in your variable? How is data format?

    Max

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.