UDF code needed for splitting data string
I am trying to create a UDF for following functionality:
( Need to copy only 5 characters of an incoming data string(A) starting from a particular character(B) )
Input 1 ( Text/integer String) = A
Input 2 ( Split Start Place) = B
Output ( Split value string) = C
Incoming string(A) = '00112233445566778899'
Split start value(B) = '3'
Output (C) = '11223'.
Appreciate if you could let me know the code for it.