{
  "slug": "pickbasic-flashbasic/oconv-function",
  "title": "oconv() function",
  "url": "https://d3codex.com/pickbasic-flashbasic/oconv-function/",
  "category": {
    "slug": "pickbasic-flashbasic",
    "label": "PickBASIC / FlashBASIC"
  },
  "breadcrumb": [
    {
      "label": "BASIC",
      "slug": "pickbasic-flashbasic/basic"
    },
    {
      "label": "BASIC functions",
      "slug": "pickbasic-flashbasic/basic-functions"
    }
  ],
  "summary": "The oconv() function converts a value from its internal format to its external equivalent, according to the processing code being applied.",
  "synonyms": [],
  "sections": [
    {
      "title": "Syntax",
      "markdown": "```\noconv(str.exp, conv.exp)\n```"
    },
    {
      "title": "Parameter(s)",
      "markdown": "| str.exp | String to convert from its internal format to its external equivalent. |\n| --- | --- |\n| conv.exp | Processing code used in the conversion. |"
    },
    {
      "title": "Example(s)",
      "markdown": "This example converts `check.amount` to external format, using the `\"mr2\"` conversion.\n\n```\ncheck.amount = 1250\nprint oconv(check.amount,\"mr2\") ;* 12.50\n```\nThis example converts `check.date` to external\nformat, using the `\"d\"` conversion.\n\n```\ncheck.date = 12477\nprint oconv(check.date,\"d\") ;* 27 FEB 2002\n```"
    }
  ],
  "seeAlso": [
    {
      "label": "Conversion expression",
      "slug": "pickbasic-flashbasic/conversion-expression",
      "url": "https://d3codex.com/pickbasic-flashbasic/conversion-expression/"
    },
    {
      "label": "d (date) processing code",
      "slug": "processingcodes/d-date-processing-code",
      "url": "https://d3codex.com/processingcodes/d-date-processing-code/"
    },
    {
      "label": "date command",
      "slug": "tcl/date-command",
      "url": "https://d3codex.com/tcl/date-command/"
    },
    {
      "label": "BASIC functions",
      "slug": "pickbasic-flashbasic/basic-functions",
      "url": "https://d3codex.com/pickbasic-flashbasic/basic-functions/"
    },
    {
      "label": "iconv() function",
      "slug": "pickbasic-flashbasic/iconv-function",
      "url": "https://d3codex.com/pickbasic-flashbasic/iconv-function/"
    },
    {
      "label": "m (mask) processing code",
      "slug": "processingcodes/m-mask-processing-code",
      "url": "https://d3codex.com/processingcodes/m-mask-processing-code/"
    },
    {
      "label": "Masking",
      "slug": "pickbasic-flashbasic/masking",
      "url": "https://d3codex.com/pickbasic-flashbasic/masking/"
    },
    {
      "label": "mc (mask character) processing code",
      "slug": "processingcodes/mc-mask-character-processing-code",
      "url": "https://d3codex.com/processingcodes/mc-mask-character-processing-code/"
    },
    {
      "label": "mp (mask packed decimal) processing code",
      "slug": "processingcodes/mp-mask-packed-decimal-processing-code",
      "url": "https://d3codex.com/processingcodes/mp-mask-packed-decimal-processing-code/"
    },
    {
      "label": "set-date-std command",
      "slug": "tcl/set-date-std-command",
      "url": "https://d3codex.com/tcl/set-date-std-command/"
    },
    {
      "label": "Statements and functions",
      "slug": "pickbasic-flashbasic/statements-and-functions",
      "url": "https://d3codex.com/pickbasic-flashbasic/statements-and-functions/"
    },
    {
      "label": "t (text extraction) processing code",
      "slug": "processingcodes/t-text-extraction-processing-code",
      "url": "https://d3codex.com/processingcodes/t-text-extraction-processing-code/"
    },
    {
      "label": "t (translate) processing code",
      "slug": "processingcodes/t-translate-processing-code",
      "url": "https://d3codex.com/processingcodes/t-translate-processing-code/"
    },
    {
      "label": "time() function",
      "slug": "pickbasic-flashbasic/time-function",
      "url": "https://d3codex.com/pickbasic-flashbasic/time-function/"
    },
    {
      "label": "User exits",
      "slug": "definitions/user-exits",
      "url": "https://d3codex.com/definitions/user-exits/"
    }
  ],
  "related": [],
  "children": [],
  "markdown": "# oconv() function\n\nThe oconv() function converts a value\nfrom its internal format to its external equivalent, according to\nthe processing code being applied.\n\n## Syntax\n\n```\noconv(str.exp, conv.exp)\n```\n\n## Parameter(s)\n\n| str.exp | String to convert from its internal format to its external equivalent. |\n| --- | --- |\n| conv.exp | Processing code used in the conversion. |\n\n## Example(s)\n\nThis example converts `check.amount` to external format, using the `\"mr2\"` conversion.\n\n```\ncheck.amount = 1250\nprint oconv(check.amount,\"mr2\") ;* 12.50\n```\nThis example converts `check.date` to external\nformat, using the `\"d\"` conversion.\n\n```\ncheck.date = 12477\nprint oconv(check.date,\"d\") ;* 27 FEB 2002\n```\n\n## See also\n\n- [Conversion expression](https://d3codex.com/pickbasic-flashbasic/conversion-expression/)\n- [d (date) processing code](https://d3codex.com/processingcodes/d-date-processing-code/)\n- [date command](https://d3codex.com/tcl/date-command/)\n- [BASIC functions](https://d3codex.com/pickbasic-flashbasic/basic-functions/)\n- [iconv() function](https://d3codex.com/pickbasic-flashbasic/iconv-function/)\n- [m (mask) processing code](https://d3codex.com/processingcodes/m-mask-processing-code/)\n- [Masking](https://d3codex.com/pickbasic-flashbasic/masking/)\n- [mc (mask character) processing code](https://d3codex.com/processingcodes/mc-mask-character-processing-code/)\n- [mp (mask packed decimal) processing code](https://d3codex.com/processingcodes/mp-mask-packed-decimal-processing-code/)\n- [set-date-std command](https://d3codex.com/tcl/set-date-std-command/)\n- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)\n- [t (text extraction) processing code](https://d3codex.com/processingcodes/t-text-extraction-processing-code/)\n- [t (translate) processing code](https://d3codex.com/processingcodes/t-translate-processing-code/)\n- [time() function](https://d3codex.com/pickbasic-flashbasic/time-function/)\n- [User exits](https://d3codex.com/definitions/user-exits/)\n\n---\nSource: https://d3codex.com/pickbasic-flashbasic/oconv-function/ - part of the D3Codex reference.\n",
  "apiVersion": "c6d68b0"
}