🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #516

Re: Equivalent of Pos Delphi function in C#.

#516
From: Barry Mossman
Date: Mon, 08 Nov 2004 14:12
10 lines
1397 bytes
"Trebor" <trebor1@hotmail.com> wrote in message 
news:418f5bea@newsgroups.borland.com...
> I'm trying to find a position of  a substring within a string.
> I need something like Pos delphi function.

hi Trebor,

try string's IndexOf, or Regex.Match if you want a bit more than Pos.

Barry Mossman 
Technical Details
Message-ID: <418f7ee2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <418f5bea@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,1fcf1ef8cd3438f
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Barry Mossman" <BMossmanNOSPAM@gmail.com>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <418f5bea@newsgroups.borland.com>
Subject: Re: Equivalent of Pos Delphi function in C#.
Date: Tue, 9 Nov 2004 00:12:12 +1000
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 144.138.100.130
Message-ID: <418f7ee2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099923170 144.138.100.130 (8 Nov 2004 06:12:50 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail