Results 1 to 8 of 8

Thread: VB Cannot return UDT From Class. y?

Threaded View

  1. #1

    Thread Starter
    Fanatic Member coolcurrent4u's Avatar
    Join Date
    Apr 2008
    Location
    *****
    Posts
    993

    Question VB Cannot return UDT From Class. y?

    Hello guys am having trouble returning udt from a class
    see what i did below

    i put this in a module

    Code:
    '// UDT TICKETS //
    Public Type udtTicket
        Ticket_id As String
        Ticket_pass As String
        sCost As Integer
        Time As String
        Validity As Integer
        FromTime As String
        ToTime  As String
        Created As Date
        User As String
    End Type
    i put this in this code in class

    Code:
    '###################################
    '# Retrive a ticket #
    '###################################
    Public Function GetTicket(id As Integer) As udtTicket
        GetTicket = sAllTicket(id)
    End Function
    guys pls help me out
    Attached Images Attached Images  
    Programming is all about good logic. Spend more time here


    (Generate pronounceable password) (Generate random number c#) (Filter array with another array)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width