comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: compare a string variable with a string literal
Date: 1998/10/10
Date: 1998-10-10T00:00:00+00:00	[thread overview]
Message-ID: <m3hfxcv4hx.fsf@mheaney.ni.net> (raw)
In-Reply-To: fTPT1.117$ur3.1421326@news.rdc1.tx.home.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

"H�x�d��m�" <NOSPAMhex16@usa.net> writes:

> How do you compare a string variable with a string literal??  It's not
> working.

Please a small code fragment.  We can't help you if you don't post code.

You compare string objects the same way you comare any other object -
using the equality operator "=":

procedure Test (S : in out String) is
begin
   if S = "matt" then ...

What's the problem?




  reply	other threads:[~1998-10-10  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-10  0:00 compare a string variable with a string literal H�x�d��m�
1998-10-10  0:00 ` Matthew Heaney [this message]
1998-10-11  0:00 ` Dale Stanbrough
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox