If Seg falls after a Segment the $location will be incorrect. I think should be 
something like…

$New_Text:=replace string($Source;"Segment";”S$gment")
$Location:=Position("Seg";$New_Text)


> On Oct 27, 2017, at 9:27 AM, Chip Scheide via 4D_Tech <[email protected]> 
> wrote:
> 
> $New_Text:=replace string($Source;"Segment";"")
> $Location:=Position("Seg";$New_Text)

John Baughman
Kailua, Hawaii
(808) 262-0328
[email protected]





**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to