🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19068

substring?

#19068
From: Mike Harris
Date: Thu, 12 Mar 1998 00:00
9 lines
824 bytes
I have a string in textField1 = "ABC-123,DEF". I would like the result
to be 3 strings: mystring1 = "ABC", mystring2 = "123", and mystring =
"DEF".  I am having problems with using substring and indexOf (to find
the positions of "-" and ",").  What would be the proper syntax?  Am I
using the correct functions?

THANKS!
Mike
Technical Details
Message-ID: <35076C2C.77C6@harrismedia.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6960f1f07e315512,start
X-Google-Attributes: gidf74b3,public
From: Mike Harris <mharris@harrismedia.com>
Subject: substring?
Date: 1998/03/12
Message-ID: <35076C2C.77C6@harrismedia.com>
X-Deja-AN: 333221050
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Reply-To: mharris@harrismedia.com
Content-Type: text/plain; charset=us-ascii
Organization: Harris Media
Newsgroups: borland.public.jbuilder.java.language