Johnny T
Member
Hi
I'm trying to use the RTrim (trims newlines etc from strings), UCase (converts a string to uppercase) and Mid (accesses part of a string) functions in Citect software.
For some reason, these functions aren't working. I've read the help files and can't see what I'm doing wrong. Its as though the compiler doesn't recognise them.
Here's the relevant section of my code:
By the way, "CODE_SEARCH" is a string defined in the variable tag list.
Anyone any ideas?
Cheers
JT
I'm trying to use the RTrim (trims newlines etc from strings), UCase (converts a string to uppercase) and Mid (accesses part of a string) functions in Citect software.
For some reason, these functions aren't working. I've read the help files and can't see what I'm doing wrong. Its as though the compiler doesn't recognise them.
Here's the relevant section of my code:
STRING Code_Split1;
STRING Code_Split2;
STRING Code_Split3;
STRING Code_Split4;
CODE_SEARCH = RTrim(CODE_SEARCH);
CODE_SEARCH = UCase(CODE_SEARCH);
Code_Split1 = Mid(CODE_SEARCH, 1, 2);
Code_Split2 = Mid(CODE_SEARCH, 3, 2);
Code_Split3 = Mid(CODE_SEARCH, 5, 2);
Code_Split4 = Mid(CODE_SEARCH, 7, 2);
By the way, "CODE_SEARCH" is a string defined in the variable tag list.
Anyone any ideas?
Cheers
JT