I am working on a currency program, however when someone inserts a letter, my program goes crazy. Here is the code where I do error checking, however I can never get it to work right.
if(choice < '6'){
// Get amount to be converted
cout << "Enter amount to convert: ";
cin >>...
I'm writting a program to convert currency from US dollar to whatever and vice versa. Can someone please tell me the math forumla to convert? I am not sure whether I have to divide or multiply.
Okay, I have a form that has a save button. When I click that save button, I want to populate an Excel spreadsheet with the data. The data is in text boxes. I did a search through the MSDN library and did an Internet search also, but I can't find anything that really helps.
Ok, there are several sections for this problem. First I am using a module for my global variables because I need the data stored on one form to integrate into another form.
This is what I have for my global variables:
Option Explicit
Public wheel1 As String, wheel2 As String, wheel3 As...
I am trying to show pass data to another form once the data is validated. My problem is that when I click the next form selection, it will validate the data and still move on to the next form. For example, I type in 23A6, it will validate the data as invalid and still move on to the next form...
I am trying to validate data in a text box. Basically the data in the text box will be nothing but numbers. Letters and anything else will be invalid data. Here is the code that I have so far:
Private Sub mnuDataValidate_Click()
Const conBtns As Integer = vbOK + vbExclamation +...
I am working on a project for my job. What I want to do is be able to save data in my textboxes to a file and then be able to scroll backwards or fowards to view the data. How do I do that. I was able to do something similar in Delphi, but I am using VB 6 to create the project.
I'm trying to read in a database type of file and change the names in a field to uppercase.
For example:
tjohnson | alpha1 | 1234 | bin | Tyrone Johnson | usr |
kdickson | 211986 | 4567 | bin | Ken Dickson | home |
I want to change the fifth field into all uppercase.
Is there a short and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.