Page 1 of 1

Oconv and iconv

Posted: Tue Oct 31, 2006 12:33 am
by santosh_reddy
Hi all

Can anyone please help me out in understanding and using the oconv and iconv functions.

Thanks in advance

santosh

Posted: Tue Oct 31, 2006 1:18 am
by ShaneMuir
Welcome Aboard! :)

Oconv converts to an output format, Iconv to an internal storage format.

Given that there are so many different conversions that can be acheived with Oconv and Iconv the easiest way to learn about them is to read the documentation or press help.

Posted: Tue Oct 31, 2006 3:32 am
by kumar_s
Check you online manuals available in you client. You can find this documented under Basic Programing in Server Job Developers guide.

Posted: Tue Oct 31, 2006 7:42 am
by ray.wurlod
Open Help from Designer.
Type in the topic BASIC Tasks.
Choose Data Formatting from the topic list.
Choose Oconv or Iconv from there.
Read and absorb.

Posted: Tue Oct 31, 2006 7:51 am
by DSbox61
this is one example how you can use it:
Oconv(Iconv(PriceIn.eventenddate, "DMDY"), "D-YMD[4,2,2]")

iconv converts a date format to decimal type and oconv tkes that as input and delivers it in a date format.

Posted: Tue Oct 31, 2006 8:22 am
by gateleys
Another example that gives the date output in the format YYMM if the input date is in the format YYYY-MM-DD

Code: Select all

Oconv(Oconv(Iconv(Arg1, "D-YMD"), "DYM[2,2]"), "MCN")
gateleys

Posted: Tue Oct 31, 2006 11:59 am
by ak77
Hi everybody -

I have a simple doubt. I recently learned that its not required to specify the format when u use ICONV alone to get the internal number for comparison

Code: Select all

Iconv(link1.variable, 'D')
Is this always true?

Thanks
AK77