Store value of xdofx:Instr() in a variable
Hi,
In a BI Publisher .rtf template I can print the position of chr(10) in a string with:
<?xdofx:Instr( String_With_CRLF, CHR(10), 1)?>
Now I need that value in substr() or in a variable that can be uses in substr() but that seems to be impossible?
<?xdofx:Instr( String_With_CRLF, CHR(10), 1)?> -> Returns a value
<?xdoxslt:set_variable($_XDOCTX, 'crlf_pos', 1+(xdofx:Instr(String_With_CRLF, CHR(10), 1))?> -> Returns nothing
<?xdofx:set_variable($_XDOCTX, 'crlf_pos', 1+(xdofx:Instr(String_With_CRLF, CHR(10), 1))?> -> Returns nothing
<?xdofx:set_variable($_XDOCTX, 'crlf_pos', 1+(Instr(String_With_CRLF, CHR(10), 1))?> -> Returns nothing
0