Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. hawaiian1975

    Checking a range of values

    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 >>...
  2. hawaiian1975

    Output in Dollar Format

    Works great now, thank you
  3. hawaiian1975

    Output in Dollar Format

    My program is somewhat complete, except I am having trouble formatting the output to show dollar amount with 2 decimal places. #include <iostream.h> #include <stdlib.h> #include <stdio.h> void main() { // variable declarations double JPY_Rate = 107.9300 * 1.00; double...
  4. hawaiian1975

    Output in Dollar Format

    Well, I got that, however the output is $43.435 I want the output to be $43.43
  5. hawaiian1975

    Output in Dollar Format

    Ok, I made a currency conversion program, however how do I make it so that the output is in dollar format? Any help would be greatly appreciated.
  6. hawaiian1975

    Currency Forumula

    Found what I was looking for.
  7. hawaiian1975

    Currency Forumula

    Nice website, but it doesn't tell me a thing on how to convert.
  8. hawaiian1975

    Currency Forumula

    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.
  9. hawaiian1975

    Counting words in an Array

    How do I count the number of words in an array?
  10. hawaiian1975

    Adding Data to an Excel Spreadsheet

    Hey LPlates thanx for the link. I just have a question on the code: Option Explicit Dim objExcel As Object ' Excel application Dim objBook As Object ' Excel workbook Dim objSheet As Object ' Excel Worksheet Private Sub cmdCalculate_Click() Set objExcel =...
  11. hawaiian1975

    Validating data in a Text Box

    I think both LPlates and BlackKnights solutions were very helpful. I give both of you guys a thumbs up. Thanx
  12. hawaiian1975

    Adding Data to an Excel Spreadsheet

    Thanx, i'll try that..
  13. hawaiian1975

    Adding Data to an Excel Spreadsheet

    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.
  14. hawaiian1975

    Clearing data in a variable and text box

    Nice LPlates, totally awesome... Thanx a bunch.
  15. hawaiian1975

    Clearing data in a variable and text box

    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...
  16. hawaiian1975

    Validating data in a Text Box

    thanx LPates, the code looks alot cleaner.
  17. hawaiian1975

    Showing another form once data is validated

    I tried it, and I'm still having problems with it...
  18. hawaiian1975

    Showing another form once data is validated

    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...
  19. hawaiian1975

    Validating data in a Text Box

    That was awesome BlackKnight, but I get the following error when I click the validate button after I get to the fourth text box: Run-time error '5': Invalid procedure call or argument Here is the rest of my code: Option Explicit Private Sub chkWheel5_6_Click() Const conBtns = vbOK +...
  20. hawaiian1975

    Validating data in a Text Box

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

Part and Inventory Search

Back
Top