Importing problem

Philip Tulett philip.tulett at pdq-networks.com
Thu Oct 7 11:19:40 UTC 2021


Hi All,

split() could have been used here.

Syntax
split(string[,delimiters=',',stripwhitespace=kfalse])

Description
Splits string at the character(s) in delimiters and returns a list of the
resulting substrings. Strips leading and trailing whitespace from each
substring if stripWhitespace is kTrue.


Kind regards
Philip

-----Original Message-----
From: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> On Behalf Of
Kelly Burgess
Sent: 07 October 2021 11:53
To: OmnisList <omnisdev-en at lists.omnis-dev.com>
Subject: Re: Importing problem

> And I love strtok() !!

Same here, and rpos() too . . .

   Calculate directoryPath as mid(path,1,rpos(sys(9),path))

   Calculate fileName as mid(path,rpos(sys(9),path)+1)

Kelly

_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com Start a new
message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list