mid function

Jim Creak jim at jacsoft.co.nz
Mon Apr 18 21:49:13 UTC 2022


Using the string ls_longString … try

mid(ls_longString,len(ls_longString)-4,4)

Thanks
Jim

JACSoft Programming Ltd. <http://www.jacsoft.co.nz/main.shtml>
> On 19/04/2022, at 4:41 am, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hi all,
> The mid function returns a substring of a specified length starting a specific position from a larger string.Is there a way to use a function to start from the end of string then count backwards?I am thinking of strings with suffixes with different lengths and I want to $sendallref all strings ending with say "list".Something like mid($sendallref.lColsName,0,-4))Rgds, Martin.
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list