andrewsw's Profile User Rating: *****

Reputation: 4030 Guru
Group:
Mentors
Active Posts:
14,612 (18.06 per day)
Joined:
12-December 12
Profile Views:
115,716
Last Active:
User is offline Yesterday, 06:12 PM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Windows
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
3075
Expert In:
VB.Net/VB6
Icon   andrewsw Giggity, Giggity, Goo!

Posts I've Made

  1. In Topic: In need of some help/advice on a java project

    Posted 28 Feb 2015

    Look what happens to totalProduct:
    int totalProduct = 0;
    

    You initialize it with a value of 0
    } // end of while loop
        totalProduct = quantity;
    

    Nothing at all happens to totalProduct within the loop, then it is set to whatever the most recent quantity-value is.

    You need to accumulate a value for totalProduct within the loop, I'll guess as:
    totalProduct += totalAmount
    

    if it should represent the over-all total. But this total is already available as totalAmount, so I'm not sure that you actually need totalProduct(?).
  2. In Topic: Select & Copy Specified Text in RichTextbox

    Posted 28 Feb 2015

    What is the problem with your code? What does it do? Are there errors?

    But it won't achieve anything as it stands, as you are replacing "X" by "X": the value you are searching for is the same as the value you are replacing it with.
  3. In Topic: Simple javascript calculator

    Posted 28 Feb 2015

    		if(getOperator() == "*") {
    			numResult = Number(numA) * Number(numB);
    		}else if(getOperator == "/") {
    			numResult = Number(numA) / Number(numB);
    		}else if (getOperator == "-") {
    

    You need to call getOperator once, using getOperator(), and store the result in a variable:
            var operator = getOperator();
            if(operator == "*") {
                numResult = Number(numA) * Number(numB);
            }else if(operator == "/") {
                numResult = Number(numA) / Number(numB);
            }else if (operator == "-") {
                numResult = Number(numA) - Number(numB);
            }else {
                numResult = Number(numA) + Number(numB);
            }
    
  4. In Topic: Wrong output

    Posted 28 Feb 2015

    You'll need to remember language keywords (break, case, if,..) but there are only a limited number of them, typically around 80.

    You'll remember more and more the more that you type code. Most editors have intellisense, that provide drop-down lists of appropriate methods, etc..
  5. In Topic: [SOLVED] CSS / columns

    Posted 28 Feb 2015

    View Postastonecipher, on 28 February 2015 - 09:05 PM, said:

    I have nothing against a column layout, it is all in how it is used. And most web sites do have a need for columns.

    Most web sites use columns, but snaking columns are quite a specific requirement ;)

My Information

Member Title:
I'm not here to twist your niblets
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Interests:
Fixing you
Programming Languages:
VB.NET, C#, Java, SQL, PHP, JavaScript, jQuery, HTML, CSS, Python, VBA, VB6, Regex

Contact Information

E-mail:
Private

Comments

  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    farad Icon

    15 Nov 2014 - 16:34
    One of the best...
  2. Photo

    abdalraheem Icon

    31 Dec 2013 - 04:59
    Thanks
  3. Photo

    Michael26 Icon

    14 Nov 2013 - 04:21
    Boom, 2000 rep points :)
  4. Photo

    laytonsdad Icon

    21 Aug 2013 - 14:03
    Getting close to 1500 rep, you are a robot.
  5. Photo

    Flukeshot Icon

    14 Jul 2013 - 16:09
    1337 reputation points, truely elite!
  6. Photo

    Michael26 Icon

    09 Jun 2013 - 14:11
    Wow andrew, you're on fire this month
    82 reputation points, nice :)
  7. Photo

    Michael26 Icon

    27 May 2013 - 16:14
    Great for you andrew, keep up the good work :)
  8. Photo

    jon.kiparsky Icon

    15 May 2013 - 13:13
    Jinx, buy me a coke!
  9. Photo

    laytonsdad Icon

    29 Mar 2013 - 14:15
    You are awesome.
  10. Photo

    kai_itz me Icon

    19 Mar 2013 - 23:10
    superb keep going....
  11. Photo

    _HAWK_ Icon

    04 Mar 2013 - 23:18
    Diggin on your Avatar man!
  12. Photo

    raghav.naganathan Icon

    26 Feb 2013 - 03:05
    Congrats on the 500 Mr.Enlightened :)
  13. Photo

    lar3ry Icon

    11 Feb 2013 - 05:50
    Very helpful answer on converting a string to an HtmlDocument! That one gets immediate use for me.
  14. Photo

    raghav.naganathan Icon

    11 Feb 2013 - 04:34
    Congrats on the 400 :) Excellent answer indeed!!! :)
  15. Photo

    raghav.naganathan Icon

    04 Feb 2013 - 01:27
    Well, you seem to be progressing leaps and bounds for getting to 300 in such a short span of time...congrats!!!:)
  • (2 Pages)
  • +
  • 1
  • 2