Solved

VB6 Convert textbox negative amount in positive

Posted on 2006-07-14
3
401 Views
Last Modified: 2008-02-01
Sir, I have two textbox on my form one for user entering second one for getting information from first one textbox and save into database

If the user enter data in minus (-100) then first one textbox also get, and show negative amount (-100) as per my system (scenario) first textbox is right but I want when the second textbox get information from first textbox it automatically convert from negative to positive amount. Please help how to do this.
Rgds.
Mehram

0
Comment
Question by:Mehram
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:Mehram
ID: 17106319
Revised
--------
Sir, I have two textbox on my form one for user entering second one for getting information from first one textbox and
save into database

If the user enter data in minus (-100) then second one textbox also get, and show negative amount (-100) as per my system (scenario) first textbox is right but I want when the second textbox get information from first textbox it automatically convert from negative to positive amount. Please help how to do this.
Rgds.
Mehram


0
 
LVL 44

Accepted Solution

by:
bruintje earned 500 total points
ID: 17106327
Hi Mehram,
----------

you could use the ABS function like

if IsNumeric(Text1.Text) then Text2.Text = Abs(Val(Text1.Text))

----------
bruintje
share what you know, learn what you don't
0
 

Author Comment

by:Mehram
ID: 17106379
Tks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Eclipse Java import and method not resolved 4 132
Hide file extensions in Notepad++ tabs 2 82
Mutiple Folder view (5 Folder view) 3 81
Oracle programming for starter 14 75
A short article about problems I had with the new location API and permissions in Marshmallow
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question