gettingstarted
[Top] [All Lists]

Re: numeric input question

To: aaron1207 at access4less dot net, Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: numeric input question
From: Gavin Dimmock <gdimmock at idpublicationsvic dot com dot au>
Date: Wed, 30 Jun 2004 12:01:41 +1000
Cc:
Delivered-to: gettingstarted at lists dot realsoftware dot com
List-help: <mailto:gettingstarted-request@lists.realsoftware.com?subject=help>
List-id: Getting Started <gettingstarted.lists.realsoftware.com>
List-post: <mailto:gettingstarted@lists.realsoftware.com>
References: <40e20edb dot 253 dot 32e6 dot 1547764652 at access4less dot net>

Hi Aaron,

Edit field data is text. Even though you are entering numeric data, RB formats it as text. You need to convert the values to integer before you can do your calculation, and back to string to display the result

Or simply do this

EditField3.Text = cdbl(EditField1.text) + cdbl(EditField2.text)

Hope this helps.



Gavin Dimmock
Project Manager

Image Digital Publications (Vic) Pty Ltd
160 Whitehorse Road, Blackburn,
Victoria 3130 Australia

Tel: 03 9877 7172   Fax: 03 9877 7438

http://www.idpublicationsvic.com.au


This message and its attachments may contain legally privileged or
confidential information. It is intended solely for the named addressee.
If you are not the addressee indicated in this message (or responsible
for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently
delete this message and its attachments and kindly notify the sender by
reply e-mail.

Any content of this message and its attachments which does not relate to
the
official business of Image Digital Publications or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made
that the e-mail or attachment(s) are free from computer virus or other
defect.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>