🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Length of a string var(xx)

#8396
From: adam
Date: Thu, 22 Mar 2001 00:16
23 lines
1288 bytes
x=(string.length);


string is your 30 chr string
len would be the returning var
.length is the code

ie

string="adam";
x=(string.length);

x would be "4"


On Sat, 10 Mar 2001 10:18:43 +0100, <icsd.jt@wanadoo.fr> wrote:

>Hello
>I have a string defined as char(30)
>Wich is the best method for get back the length
>of this string ?
>Thank for help, Jacques
>
Technical Details
Message-ID: <3abb4375.14111311@news.btinternet.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!newsreader.visi.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!mendelevium.btinternet.com!not-for-mail
References: <3ab04be8$2_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5e338d02ca66bf16,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-21 16:46:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!newsreader.visi.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!mendelevium.btinternet.com!not-for-mail
From: adam@cable.com (adam)
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Length of a string  var(xx)
Date: Thu, 22 Mar 2001 00:16:27 GMT
Organization: BT Internet
Lines: 24
Message-ID: <3abb4375.14111311@news.btinternet.com>
References: <3ab04be8$2_2@dnews>
NNTP-Posting-Host: host213-122-233-200.btinternet.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.5/32.451