Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Convert Date to Integer Pin
Christian Graus22-Mar-09 21:53
protectorChristian Graus22-Mar-09 21:53 
Questiondatabase connection dotnet with access Pin
hari Rayala22-Mar-09 8:32
hari Rayala22-Mar-09 8:32 
AnswerRe: database connection dotnet with access Pin
DaveAuld22-Mar-09 8:39
professionalDaveAuld22-Mar-09 8:39 
AnswerRe: database connection dotnet with access Pin
dan!sh 22-Mar-09 9:19
professional dan!sh 22-Mar-09 9:19 
QuestionProblem related to sorting of Listview Pin
nazimghori22-Mar-09 8:15
nazimghori22-Mar-09 8:15 
AnswerRe: Problem related to sorting of Listview Pin
DaveAuld22-Mar-09 8:48
professionalDaveAuld22-Mar-09 8:48 
QuestionReading Time Pin
Gary M22-Mar-09 3:47
Gary M22-Mar-09 3:47 
AnswerRe: Reading Time Pin
George B Gilbert22-Mar-09 5:30
George B Gilbert22-Mar-09 5:30 
The key is the Split method.

Dim timeParts() as string
timeparts = TickData(i).dTime.Str.Split(":")
TickData(i).dTime.H = Ctype(timeParts(0), Single)
TickData(i).dTime.M = Ctype(timeParts(1), Single)
TickData(i).dTime.S = Ctype(timeParts(2), Single)


Unless there's a reason for using Single in the Structure for the time elements, you might want to save some bytes, and eliminate any possible rounding issues by using Integer or even Short.
GeneralRe: Reading Time Pin
Gary M22-Mar-09 6:46
Gary M22-Mar-09 6:46 
GeneralRe: Reading Time Pin
Gary M22-Mar-09 6:58
Gary M22-Mar-09 6:58 
GeneralRe: Reading Time Pin
George B Gilbert22-Mar-09 7:43
George B Gilbert22-Mar-09 7:43 
GeneralRe: Reading Time Pin
Gary M22-Mar-09 11:43
Gary M22-Mar-09 11:43 
GeneralRe: Reading Time Pin
George B Gilbert22-Mar-09 12:17
George B Gilbert22-Mar-09 12:17 
GeneralRe: Reading Time Pin
Gary M23-Mar-09 11:55
Gary M23-Mar-09 11:55 
GeneralRe: Reading Time Pin
George B Gilbert23-Mar-09 16:28
George B Gilbert23-Mar-09 16:28 
AnswerRe: Reading Time Pin
0x3c022-Mar-09 7:01
0x3c022-Mar-09 7:01 
GeneralRe: Reading Time Pin
Gary M22-Mar-09 11:45
Gary M22-Mar-09 11:45 
QuestionHow to save file to particular location in VB Pin
manni_n22-Mar-09 3:16
manni_n22-Mar-09 3:16 
AnswerRe: How to save file to particular location in VB Pin
DaveAuld22-Mar-09 21:09
professionalDaveAuld22-Mar-09 21:09 
QuestionProblem while executing client-server program Pin
Gagan.2021-Mar-09 18:35
Gagan.2021-Mar-09 18:35 
AnswerRe: Problem while executing client-server program Pin
DaveAuld21-Mar-09 21:28
professionalDaveAuld21-Mar-09 21:28 
QuestionProblem with catching exceptions Pin
Badmafia21-Mar-09 14:57
Badmafia21-Mar-09 14:57 
AnswerRe: Problem with catching exceptions Pin
nlarson1121-Mar-09 15:45
nlarson1121-Mar-09 15:45 
AnswerRe: Problem with catching exceptions Pin
George B Gilbert21-Mar-09 16:45
George B Gilbert21-Mar-09 16:45 
QuestionHow could you select an item in listview from a different tabpage? Pin
JUNEYT21-Mar-09 13:48
JUNEYT21-Mar-09 13: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.