🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1627

Re: Use of AnsiString Functions

#1627
From: Daryl
Date: Wed, 09 Jun 2004 21:06
23 lines
1482 bytes
Scott

> I am having trouble using the following AnsiString function in a program.
> The program needs to take input from an input box (by default the type is
> AnsiString), and then somehow convert this to an integer.

Try

>> Extract from help>>
This example uses two edit boxes and a button on a form. When the user
clicks the button, the code converts the values in the edit boxes to
numbers, adds them, and displays a message indicating the sum:

void __fastcall TForm1::Button1Click(TObject *Sender)

{
  int i1, i2;
  i1 = StrToInt(Edit1->Text);
  i2 = StrToInt(Edit2->Text);
  ShowMessage(IntToStr(i1 + i2));
>>>>>

Daryl
Technical Details
Message-ID: <40c77c91@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40c77309$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,e7d2b3b3ff7cb04b
X-Google-Attributes: gid10698b,public
From: "Daryl" <developeracc@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40c77309$1@newsgroups.borland.com>
Subject: Re: Use of AnsiString Functions
Date: Thu, 10 Jun 2004 07:06:50 +1000
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 203.103.62.22
Message-ID: <40c77c91@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086815377 203.103.62.22 (9 Jun 2004 14:09:37 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail