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>
|