Results 1 to 16 of 16

Thread: [RESOLVED] I need a simple program

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    8

    Resolved [RESOLVED] I need a simple program

    Hi guys,
    I know this is a simple program but I really don't have the time to learn ...
    If someone can make it for me and I'll edit it to suit my need I appreciate it ...
    for examble I enter 5 then choose first option it would show the answer 10 ...
    if I choose last option and put two numbers the answer will be Number*(A*B) or Number*(A/B) depending on what I choose on the right ...
    Thanks in advance, I appreciate it ...
    Attached Images Attached Images  

  2. #2

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    8

    Re: I need a simple program

    I'm using Visual Basic 6 if that matters ...

  3. #3
    Addicted Member
    Join Date
    Nov 2010
    Location
    TamilNadu, India
    Posts
    249

    Re: I need a simple program

    hi wolf please post your question in VB 6 Forums ........
    http://www.vbforums.com/forumdisplay.php?f=1

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: I need a simple program

    You are in the wrong part of the forum, but the project is SO simple that it looks like homework, which we certainly won't do.
    My usual boring signature: Nothing

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    8

    Re: I need a simple program

    I see that now and I apologize for that ... please delete the thread ...
    By the way, it's not homework ... I never used Visual Basic and I need to calculate a lot of numbers which is hard to do manually ...
    Last edited by w.wolf; Sep 24th, 2011 at 01:47 PM.

  6. #6
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: I need a simple program

    This part of the forum doesn't work that way. You may want to visit the Project Requests portion instead

    There are also other sites where you can hire someone to do it for you
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  7. #7
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: I need a simple program

    In that case, I still might not use VB. Consider using Excel. The problem you have described is simple enough that you could build the equation into Excel. You might need to have two or three columns, but it would be possible, and it is FAR easier to enter numbers into Excel than to use an app like that.

    The first column would be the number you enter. The next column would be the first multiplier, and the third column would be the second multiplier. The third column would be 1, by default. Therefore, for the first option, you would enter the number in column 1, the multiplier in column 2 (either 2, 3, or 4 based on your example), and you would normally leave column 3 alone. In the fourth case of your example, you would enter the A value in column 2, and the B value in column 3.

    That leaves only the mult/div option. A fourth column and an If condition in the equation could handle that. It would multiply if the fourth column was 0, and divide if the fourth column was 1, or something like that.
    My usual boring signature: Nothing

  8. #8

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    8

    Re: I need a simple program

    Thank you very much for your reply, Excel never occurred to me, and thanks for the detailed answer ...
    I still need a stand-alone program but Excel should do for now ...

  9. #9
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: I need a simple program

    Quote Originally Posted by LaVolpe View Post
    This part of the forum doesn't work that way. You may want to visit the Project Requests portion instead

    There are also other sites where you can hire someone to do it for you
    +1. Plus, OP has other problems already. What is A and what is B? What is the numerator and the denominator if dividing, or what is the multiplier and the multiplicand if multiplying? Based upon what I see, the number being entered could apply to any of these. Is 2 an automatic value that is hidden somewhere?
    Doctor Ed

  10. #10

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    8

    Re: I need a simple program

    I apologize, this is the second time I post in the wrong part of the forum, pleas delete the thread ...
    As for your question regarding the program ... A and B are numbers the user input if he chose the last option, for example if he entered 1 in the first box and choose last option and put 2 and 3 in the boxes the answer should appear 1*(2*3)=6 or 1*(2/3)=0.667 depending on what he chose ...
    The program is meant to calculate ratios and I made it in Console put if I can have it Visual Basic it would be better ...
    Last edited by w.wolf; Sep 25th, 2011 at 05:01 AM.

  11. #11
    Addicted Member
    Join Date
    Dec 2008
    Posts
    129

    Re: I need a simple program

    Here is your code. Next time don't be an a** and post on every single forum.

    This seems like homework to me, so please read and understand the code for your own good.

    External Link: http://www.mediafire.com/?026k7yj9p2w6931
    Attached Files Attached Files
    Last edited by veebee123; Sep 25th, 2011 at 05:41 PM.

  12. #12

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    8

    Re: I need a simple program

    Thank you very much and sorry for the trouble ...
    The a** part really wasn't intended, don't you just hate newbies ...

  13. #13

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    8

    Re: I need a simple program

    Thank you very much and sorry for the trouble ...

  14. #14
    Addicted Member
    Join Date
    Dec 2008
    Posts
    129

    Re: [RESOLVED] I need a simple program

    The reason for that was because this seemed like homework and you weren't taking the time to make it urself. That's all.

  15. #15

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    8

    Re: [RESOLVED] I need a simple program

    It really isn't, now that I'm reading my post again it does seem like I'm a lazy a** ... I guess you can't read voice tone after all ...
    If I'm having a class for this I wouldn't need help for such a code, I just put simple numbers for simplification, I'll edit it and add more features, just needed the basic code. Thanks again ...

  16. #16
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: [RESOLVED] I need a simple program

    duplicate threads merged, and moved to the "Project Requests" forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width