Skip to Content
avatar image
Former Member

strlen( ) function issue

hi

i use strlen function to get string length.

but some time the strlen can't work when the string contain unicode char.

so when i write field+0(len) can't show all information.

how to get right length?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 22, 2007 at 01:13 AM

    Hi,

    Function STRLEN only works with character-type fields and returns the length in characters. The new function XSTRLEN finds the length of byte strings.

    aRs

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 12:59 AM

    Use STRING data type in STRLEN and also check your program attributes with "Unicode checks active" is checked.

    Add comment
    10|10000 characters needed characters exceeded