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....
...
Type: Posts; User: Yumby
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....
...
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,...
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...
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,...
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...
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....
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...
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...
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...
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...
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...
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...
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...
Thanks for that.
Dim wordat(9)
Dim thefil As String
Dim therow As String()
Dim datval As String
thefil = My.Application.Info.DirectoryPath &...
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...
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...
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...
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...
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...
Thanks opus. I'll give it a shot when I can and I'll let you know how I go.
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...
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...
After taking a break from this problem, I've decided to give it another go. So, does anyone out there have any suggestions? Thanks.
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...
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...
Ok thanks for that anhn.
That works perfectly. Nice work Doogle.
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 =...
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.
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...
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...
In the General Declarations section I have...
Dim secondvalue(100)
Dim thirdvalue(100)
To fill the listboxes I do...
For x = 1 To 10
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....
Yeah sorry, that was a poorly worded question on my part. Well ok, I'll do it that way then. Problem solved. Cheers.
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...
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....
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...
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...
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...
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.