Search results for query: *

  1. peterthottam

    Question How to use IndexOf & Substring to separate and sum string of comma separate numbers?

    Thanks. Got it. Solved (but still need to clean up the code). Much appreciated, Ian. Cheers to you also! - Pete
  2. peterthottam

    Question How to use IndexOf & Substring to separate and sum string of comma separate numbers?

    Points 1 and 2 addressed. I believe. Thank you. I have revised code below and can get a 'penultimate' total. My problem is the length of the s string near the end of the loop going negative. More specifically, the last number in the string does not have a comma after it. How am I you going...
  3. peterthottam

    Question How to use IndexOf & Substring to separate and sum string of comma separate numbers?

    Ok. I'm going to continue to work on. Its my own code. The leftover conditions are from past logic walkthroughs (I will clean up). What I have currently is below. Your above points re the comma breakdown are legit but for the life of me, I can't figure out how to clean this up properly. I...
  4. peterthottam

    Question How to use IndexOf & Substring to separate and sum string of comma separate numbers?

    Thx. I have been debugging using Visual Studio 2010. I've cleaned up the code but am still having loop and total aggregation problems (string to integer). Not sure what I'm doing wrong. Here is my current code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
  5. peterthottam

    Question How to use IndexOf & Substring to separate and sum string of comma separate numbers?

    How to use IndexOf & Substring to separate and sum string of comma separate numbers? I've been trying to get this to work but am having problems with the loops and counters. Basically -- NOT using arrays or split functions -- I need to write a function that takes one string made of numbers...
  6. peterthottam

    Question MessageBox / InputBox question involving Do While Loops

    Question: How to code using MesssageBox and w/ do-while loops? I want o be able to obtain (via InputBox function) from the user and print a pyramid of numbers where 1 is at the top and each row then builds successively by adding one to the previous one, i.e. so row 2 would have 12, and row three...
Back
Top