Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Realistic 2


ghost's Avatar
0 0

I am having trouble with realistic number 2. I am doing it in Visual Basic as it is what I'm "half decent" programming at. I have my code worked out but I'm not sure what is wrong i went through the whole month of September from backup_2004-09-01_0100 through to backup_2004-09-31_2300 (just to be sure!) And i didn't come out with anything.

Is this code correct?

If hours.Text = "2400" Then
days.Text = days.Text + 1
hours.Text = "0100"
End If

If hours.Text = "100" Then
days.Text = days.Text + 1
hours.Text = "0100"

ElseIf hours.Text = "200" Then
hours.Text = "0200"
ElseIf hours.Text = "300" Then
hours.Text = "0300"
ElseIf hours.Text = "400" Then
hours.Text = "0400"
ElseIf hours.Text = "500" Then
hours.Text = "0500"
ElseIf hours.Text = "600" Then
hours.Text = "0600"
ElseIf hours.Text = "700" Then
hours.Text = "0700"
ElseIf hours.Text = "800" Then
hours.Text = "0800"
ElseIf hours.Text = "900" Then
hours.Text = "0900"

End If```

Thanks in advance

- BSF


edit: this is not my whole code obviously

ghost's Avatar
0 0

well i'm tryin to find it thru javascript. but if u read some articles the log isn't restricted to only september. :D hope this helped


ghost's Avatar
0 0

zumo wrote: well i'm tryin to find it thru javascript. but if u read some articles the log isn't restricted to only september. :D hope this helpedUm… yes it is.


ghost's Avatar
0 0

any idea what is wrong with my code?


ghost's Avatar
0 0

lol yea it is restricted to september. someone threw me off saying start at january. but yea i don't know visual basic. but i did figure it out in javascript if u know a lil about that.


ghost's Avatar
0 0

very confusing :angry:


ghost's Avatar
0 0

Yea the format should be more like backup_2004-09-01_1000.sql so the hour is 1000-2300 NOT 0100-2300. Hope it helps. If not pm me.