Search:

Type: Posts; User: Yumby

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    329

    Re: Formatting A Number

    Thanks TJ. I tried variations of your code and this....

    MessageBox.Show(New TimeSpan(Convert.ToInt64(2.5 * TimeSpan.TicksPerMinute)).ToString) This code got me 00:02:30

    But this code....
    ...
  2. Replies
    5
    Views
    329

    Formatting A Number

    I want to format a number to a time value. If my number is 2.5, this equals 2 and a 1/2 minutes, so the formatted number would be 02:30:00 (this includes milliseconds.)

    I thought x = format(x,...
  3. Replies
    5
    Views
    690

    Re: Javascript Alerts

    Thanks again for the code akhileshbc, it's exactly what I needed (if I can I'll rep you some points.)

    It'd still be good to know why I'm getting a blank messagebox though, so if anyone wants to...
  4. Replies
    5
    Views
    690

    Re: Javascript Alerts

    Thanks for the code but unfortunately it didn't solve my problem. Without the if statement I'm still getting a blank messagebox (after I type the 1st character.) Then, when I type the 2nd character,...
  5. Replies
    5
    Views
    690

    Javascript Alerts

    My objective is to put some information from one field into another field as the user types the characters. But I'm stuck at step one. At the moment I'm just trying to get the information from the...
  6. Replies
    2
    Views
    318

    Re: Remove quotation marks

    Ah yes of course.... I did the line input, got rid of those quotation characters and now I'm looking at my new csv file with the correct characters/words. And the incorrect csv file is still intact....
  7. Replies
    2
    Views
    318

    [RESOLVED] Remove quotation marks

    I'm opening a csv file and I'm trying to check for quotation marks within the string so that I can remove them.

    For example in the following "Trial "A" 123" I want to get it so that it's "Trial A...
  8. Replies
    12
    Views
    442

    Re: Replace double spaces

    Thanks Inferrd. Yes I'm using a TextFieldParser. I've been looking in the wrong areas for an answer and getting a big nothing. Your info/links look like they're on the money. So I'll check them out...
  9. Replies
    12
    Views
    442

    Re: Replace double spaces

    I have now.
    Yes this appears to be the problem. I didn't know the read routine trimmed it. I've haven't come across any information or even a warning about this on the net. So I'll keep looking and...
  10. Replies
    12
    Views
    442

    Re: Replace double spaces

    Here's my current file/row....

    "word1", "wo rd2", "word3 ", " word4"

    And I tried this.....

    If datval.Contains(" ") = True Then
    MsgBox("2 spaces in " & wordat(x))

    But it only...
  11. Replies
    12
    Views
    442

    Re: Replace double spaces

    Okay thanks for the help. I'm getting there (slowly). Long story short, how do I identify double spaces before and after a word? I've searched the net but no luck. Something like.....

    If...
  12. Replies
    12
    Views
    442

    Re: Replace double spaces

    I'm just using a test file for now....

    "word1", "word2", "word3 ", "word4"

    I just did a quick test. When I use...

    "word1", "wo rd2", "word3 ", "word4"

    It identifies "wo rd2" but it...
  13. Replies
    12
    Views
    442

    Replace double spaces

    Hi there, I'm trying to identify and fix double spaces in a string (that comes from a csv file.) My code originally came from kleinma in this thread, but after tweeking it, it's not working. On the...
  14. Replies
    2
    Views
    303

    Re: Storing data in arrays

    Thanks for that.


    Dim wordat(9)
    Dim thefil As String
    Dim therow As String()
    Dim datval As String
    thefil = My.Application.Info.DirectoryPath &...
  15. Replies
    2
    Views
    303

    [RESOLVED] Storing data in arrays

    Hi all. I'm trying to get words from a csv file and then store them in my program. Like this....

    Open the file
    Read the first word
    Store the word in wordat(1)
    Read the second word
    Store that...
  16. Replies
    6
    Views
    325

    Re: Get month from date

    I just found out I don't have Split.... You know I think it's time I moved over to VB.Net once and for all. Okay thanks for your input everyone. Who knows, maybe we'll continue the conversation over...
  17. Replies
    6
    Views
    325

    Re: Get month from date

    Yeah sorry, I should explain. The textbox I was using was just for my testing. The US date I want to change is in a csv file.
    si_the_geek I actually did read your article, but I got confused, so I...
  18. Replies
    6
    Views
    325

    Get month from date

    I'm trying to get the month from a date which is in the US format. So in the date 12/01/99 the month would be 12 (not 1). But I can't work it out. What am I doing wrong? Thank you.


    ElseIf...
  19. Thread: Format the date

    by Yumby
    Replies
    2
    Views
    546

    Format the date

    Hi all. I'm a javascript newbie and I'm stuck, so I've got some questions.

    The first one is, I know you can store the date like this....
    var mydate = new Date(2000, 11, 31);But on the web page...
  20. Re: [Excel 2007] How do I program this simple function?

    Thanks opus. I'll give it a shot when I can and I'll let you know how I go.
  21. [Excel 2007] How do I program this simple function?

    I'm using a function to put a price in a cell depending on how many days have passed. So 1 day = $10, 2 days = $20, 3 days = $30 and I do it like this...

    A1 (start date) = 01/01/2011
    B1 (end...
  22. Replies
    6
    Views
    541

    Re: Calendar control active day

    Got it. The problem was that I was storing the previously active day not the previously active date. So instead of using this....


    calendarnumber = format(mycalendar.value, "d")I simply should...
  23. Replies
    6
    Views
    541

    Re: Calendar control active day

    After taking a break from this problem, I've decided to give it another go. So, does anyone out there have any suggestions? Thanks.
  24. Replies
    6
    Views
    541

    Re: Calendar control active day

    seenu_1st, I tried your code and it helped, thanks.

    Doogle, an incorrect date is a date that isn't within a particular range. In my program the range is from the first day of the current month up...
  25. Replies
    6
    Views
    541

    [RESOLVED] Calendar control active day

    Hi.... I'm using a calendar control and, if I click on an incorrect date, I want to put the focus back onto the date that was active before I clicked on the incorrect date. And I thought this would...
  26. Replies
    4
    Views
    388

    Re: [RESOLVED] DateAdd Without Seconds

    Ok thanks for that anhn.
  27. Replies
    4
    Views
    388

    Re: DateAdd Without Seconds

    That works perfectly. Nice work Doogle.
  28. Replies
    4
    Views
    388

    [RESOLVED] DateAdd Without Seconds

    Hi. I'm trying to compare 2 dates to see if they match up (e.g. 1/05/2011 and 1/05/2011) but I'm doing something wrong. So my question is, how do I get rid of the seconds in the code below?


    y =...
  29. Replies
    9
    Views
    448

    Re: Listbox Run Time Error 13

    Sorry for the late reply. Okay understood. Don't use commas and so on and don't go more than 32,767 entries. Problem solved. Thanks for the help guys.
  30. Replies
    9
    Views
    448

    Re: Listbox Run Time Error 13

    Thanks for the replies guys. Thanks to your help I seem to be getting closer to solving this problem. But it's going to take me a while. The only other information I can add is.....

    When the...
  31. Replies
    9
    Views
    448

    Re: Listbox Run Time Error 13

    I took out all the commas but the error still kept appearing. The error occurred at this line....


    x = (secondvalue(1)) * (thirdvalue(1) / 100)

    In the above code.....

    x = Empty...
  32. Replies
    9
    Views
    448

    Re: Listbox Run Time Error 13

    In the General Declarations section I have...


    Dim secondvalue(100)
    Dim thirdvalue(100)

    To fill the listboxes I do...


    For x = 1 To 10
  33. Replies
    9
    Views
    448

    [RESOLVED] Listbox Run Time Error 13

    I have two listboxes. The 1st listbox has the numbers 1 to 10 in it. The 2nd listbox has the numbers 1.00 to 10.00 (increasing by 0.01) in it. And when I calculate these numbers everything is fine....
  34. Replies
    6
    Views
    374

    VS 2005 Re: Simple Array Question

    Yeah sorry, that was a poorly worded question on my part. Well ok, I'll do it that way then. Problem solved. Cheers.
  35. Replies
    6
    Views
    374

    VS 2005 Re: Simple Array Question

    That's true. So my question is, how does it work in vb.net? When I create a textbox and then another textbox I get "TextBox1" and "TextBox2." Is there a way I can reference those numbers that are...
  36. Replies
    6
    Views
    374

    VS 2005 Re: Simple Array Question

    Yep that works. Thanks a lot! And another question, is this the correct way of doing it in vb.net? I read something about arrays not being offered, or we don't need to use arrays, in vb.net....
  37. Replies
    6
    Views
    374

    VS 2005 [RESOLVED] Simple Array Question

    Okay, I've looked but I can't work out arrays for textboxes and labels. So, using 2 textboxes, how do I do the following in VB.Net?

    For x = 1 to 2
    if x = 1 then
    txtbox(x).text = "One"
    else...
  38. Replies
    2
    Views
    165

    Re: increasing monthview's days

    Thanks RhinoBull that works well. I know what you mean about clicking on the control but I went with this way because I reckon there'll be less chance of error or mistakes when I consider the...
  39. Replies
    2
    Views
    165

    [RESOLVED] increasing monthview's days

    I have the current date displayed in a label. That current date is supplied by the monthview control when the program starts. Now the user of the program will want to look at previous and future...
  40. Replies
    33
    Views
    1,019

    Poll: Re: A scratchpad and a pen

    I wouldn't say that it's unwholesome, it's just a word that can be used as a euphemism. Anyway, I just thought I'd give you a heads up, that's all.
Results 1 to 40 of 116
Page 1 of 3 1 2 3