Differences between Netlinx/Axcess using Remove_String
Dries Kaspers
Posts: 142
I noticed that there are some differences between Netlinx and Axcess regarding the correct use of REMOVE_STRING. Consider the following line(s);
strExample[] = "' Test' ,13,10"
REMOVE_STRING (strExample,"13" ,1)
In Netlinx the result is that strExample is set to "10" , in Axcess the line compiles but doesn't remove anything, if you are in debug mode in terminal the (Accent3) master reports an error.
when using REMOVE_STRING in Axcess you HAVE to use a result string in the code, like this;
strTemp = REMOVE_STRING (strExample,"13",1)
just thought i'd mention it, i couldn't find anything documented regarding this behaviour. Or maybe i've been programming too much
strExample[] = "' Test' ,13,10"
REMOVE_STRING (strExample,"13" ,1)
In Netlinx the result is that strExample is set to "10" , in Axcess the line compiles but doesn't remove anything, if you are in debug mode in terminal the (Accent3) master reports an error.
when using REMOVE_STRING in Axcess you HAVE to use a result string in the code, like this;
strTemp = REMOVE_STRING (strExample,"13",1)
just thought i'd mention it, i couldn't find anything documented regarding this behaviour. Or maybe i've been programming too much
0
Comments
One of the few things that makes going and working in C-tron's S+ language annoying after doing a Netlinx system- they have the same requirement as Axcess.
- Chip