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

Visual Basic

 
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 
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 
Here is how I started

Structure TickTime
        Dim H As Single
        Dim M As Single
        Dim S As Single
        Dim Str As String
    End Structure

    Structure TickD
        Dim CPrice As Double
        Dim dTime As TickTime
        Dim Vol As Double
    End Structure


Public TickData() As TickD 'price data array

Then I loaded the data into TickData in a LoadData sub

Sub LoadData()

ReDim TickData(50)

end sub


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim i As Integer

        Dim timeParts() As String
        For i = 1 To UBound(TickData)
            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)
        Next
end sub


But I still get that same error from the above Bold Text!
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 
AnswerRe: How could you select an item in listview from a different tabpage? Pin
George B Gilbert21-Mar-09 17:41
George B Gilbert21-Mar-09 17:41 
GeneralRe: How could you select an item in listview from a different tabpage? Pin
JUNEYT22-Mar-09 0:51
JUNEYT22-Mar-09 0:51 
GeneralRe: How could you select an item in listview from a different tabpage? Pin
George B Gilbert22-Mar-09 5:22
George B Gilbert22-Mar-09 5:22 
QuestionWriting an Excel table to a DataTable / The values from Excel-cells with "date"-format are not assumed Pin
TheSolid21-Mar-09 3:19
TheSolid21-Mar-09 3:19 

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.