Click here to Skip to main content
15,887,386 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to add clock timer to listview column in vb6? Pin
nlarson1112-May-07 1:45
nlarson1112-May-07 1:45 
GeneralRe: How to add clock timer to listview column in vb6? Pin
method00712-May-07 1:49
method00712-May-07 1:49 
QuestionMilliseconds to Minutes Pin
Stigmurder10-May-07 6:19
Stigmurder10-May-07 6:19 
AnswerRe: Milliseconds to Minutes Pin
Dave Kreskowiak10-May-07 6:33
mveDave Kreskowiak10-May-07 6:33 
GeneralRe: Milliseconds to Minutes Pin
Stigmurder10-May-07 7:19
Stigmurder10-May-07 7:19 
JokeRe: Milliseconds to Minutes Pin
CPallini10-May-07 9:03
mveCPallini10-May-07 9:03 
GeneralRe: Milliseconds to Minutes Pin
Dave Kreskowiak10-May-07 10:42
mveDave Kreskowiak10-May-07 10:42 
QuestionVB6 Int() Function Pin
Marcus J. Smith10-May-07 5:05
professionalMarcus J. Smith10-May-07 5:05 
According to http://www.int.gu.edu.au/courses/3008int/m03/FYI/Command_Syntax.htm#Heading97[^]

"Int Function
Int(number)

Returns the integer portion of the number specified by the number argument. If number is negative, then Int returns the first negative integer less than or equal to number."

So please explain this behavior.

This is the current line of code.
strValue = CStr(Int(CSng(Mid(strInput, 50, 7)) + 0.5)) which gives me -9.0 when the value is -8.12.
Logically -8.62 + 0.5 = -8.12.

If I change this to VB.NET code.
strValue = (Convert.ToInt32(Convert.ToSingle(strInput.Substring(50, 7)) + 0.5)).ToString
Then I get -8.12.

What is up with that and if I indeed need it to be -9 how do I get there?


CleaKO

"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

AnswerRe: VB6 Int() Function Pin
Dave Kreskowiak10-May-07 5:17
mveDave Kreskowiak10-May-07 5:17 
GeneralRe: VB6 Int() Function [modified] Pin
Marcus J. Smith10-May-07 5:26
professionalMarcus J. Smith10-May-07 5:26 
GeneralRe: VB6 Int() Function Pin
Dave Kreskowiak10-May-07 6:28
mveDave Kreskowiak10-May-07 6:28 
GeneralRe: VB6 Int() Function Pin
Marcus J. Smith10-May-07 6:38
professionalMarcus J. Smith10-May-07 6:38 
AnswerRe: VB6 Int() Function Pin
Guffa10-May-07 8:18
Guffa10-May-07 8:18 
GeneralRe: VB6 Int() Function Pin
Marcus J. Smith10-May-07 8:28
professionalMarcus J. Smith10-May-07 8:28 
QuestionCaesar Cipher Crack Pin
Irshadt10-May-07 3:27
Irshadt10-May-07 3:27 
AnswerRe: Caesar Cipher Crack Pin
Colin Angus Mackay10-May-07 3:29
Colin Angus Mackay10-May-07 3:29 
QuestionCaesar Cipher Crack Pin
Irshadt10-May-07 3:24
Irshadt10-May-07 3:24 
AnswerRe: Caesar Cipher Crack Pin
Colin Angus Mackay10-May-07 3:30
Colin Angus Mackay10-May-07 3:30 
GeneralRe: Caesar Cipher Crack Pin
Christian Graus10-May-07 10:29
protectorChristian Graus10-May-07 10:29 
QuestionRe: Regular Expression Pin
ant1xxx10-May-07 1:55
ant1xxx10-May-07 1:55 
AnswerRe: Regular Expression Pin
Christian Graus10-May-07 2:14
protectorChristian Graus10-May-07 2:14 
QuestionPassing custom object to web service Pin
BobsAfro10-May-07 1:15
BobsAfro10-May-07 1:15 
AnswerRe: Passing custom object to web service Pin
nlarson1110-May-07 4:05
nlarson1110-May-07 4:05 
GeneralRe: Passing custom object to web service Pin
BobsAfro10-May-07 5:42
BobsAfro10-May-07 5:42 
GeneralRe: Passing custom object to web service Pin
nlarson1110-May-07 5:48
nlarson1110-May-07 5:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.