Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: List box selection Pin
Christian Graus19-Aug-07 23:56
protectorChristian Graus19-Aug-07 23:56 
GeneralRe: List box selection Pin
sa_runner20-Aug-07 6:46
sa_runner20-Aug-07 6:46 
AnswerRe: List box selection Pin
The ANZAC20-Aug-07 0:08
The ANZAC20-Aug-07 0:08 
GeneralRe: List box selection Pin
sa_runner20-Aug-07 6:45
sa_runner20-Aug-07 6:45 
AnswerRe: List box selection Pin
satheesh.a20-Aug-07 0:14
satheesh.a20-Aug-07 0:14 
QuestionStatus Bar Text Pin
ejaz_pk19-Aug-07 11:58
ejaz_pk19-Aug-07 11:58 
AnswerRe: Status Bar Text Pin
Dave Kreskowiak19-Aug-07 12:27
mveDave Kreskowiak19-Aug-07 12:27 
Questionhow to call function that return object Pin
Arif Liminto19-Aug-07 6:12
professionalArif Liminto19-Aug-07 6:12 
hi iam new vb learner, i got a problem how to call function that return object it always said object variable not set but i think i already call it as object, is that in my code how to call object something wrong ?


--------------------------------------------
Public Function accessinfo() As Object

Dim myFSO, f As Object
Dim filename As String


On Error GoTo errhandler
filename = fillist.Path + "\" + fillist.filename
Set myFSO = CreateObject("Scripting.FileSystemObject")
Set f = myFSO.GetFile(filename)
txt_datecreated.Text = f.DateCreated
txt_dateaccess.Text = f.DateLastAccessed
txt_datemodified.Text = f.DateLastModified

txt_size.Text = (Format((f.Size / 1024) / 1, "##")) + " kilobyte "

Exit Function

accessinfo = f

errhandler:
MsgBox "No File selected !. Please select the file ", vbCritical, Warning

End Function


-------------------------------------------------------

and then i want to call function accessinfo in getinfo

Private Sub cmd_getinfo_Click()

Dim fso As Object
Set fso = accessinfo
MsgBox (fso.DateCreated)

End Sub


AnswerRe: how to call function that return object Pin
Naji El Kotob19-Aug-07 10:42
Naji El Kotob19-Aug-07 10:42 
AnswerRe: how to call function that return object Pin
Dominick Marciano20-Aug-07 8:06
professionalDominick Marciano20-Aug-07 8:06 
AnswerRe: how to call function that return object Pin
TomGarth20-Aug-07 11:07
TomGarth20-Aug-07 11:07 
Question2 combobox from same data source & same data table in VB.Net2005 Pin
nilam1119-Aug-07 3:08
nilam1119-Aug-07 3:08 
AnswerRe: 2 combobox from same data source & same data table in VB.Net2005 [modified] Pin
richardw4819-Aug-07 3:58
richardw4819-Aug-07 3:58 
GeneralRe: 2 combobox from same data source & same data table in VB.Net2005 Pin
nilam1126-Aug-07 2:02
nilam1126-Aug-07 2:02 
AnswerRe: 2 combobox from same data source & same data table in VB.Net2005 Pin
Naji El Kotob19-Aug-07 10:36
Naji El Kotob19-Aug-07 10:36 
GeneralRe: 2 combobox from same data source & same data table in VB.Net2005 Pin
nilam1126-Aug-07 1:58
nilam1126-Aug-07 1:58 
GeneralRe: 2 combobox from same data source & same data table in VB.Net2005 Pin
Naji El Kotob26-Aug-07 7:08
Naji El Kotob26-Aug-07 7:08 
QuestionVB.Net and MS Access problem Pin
pkrvb18-Aug-07 12:19
pkrvb18-Aug-07 12:19 
AnswerRe: VB.Net and MS Access problem Pin
green2go18-Aug-07 12:52
green2go18-Aug-07 12:52 
GeneralRe: VB.Net and MS Access problem Pin
pkrvb18-Aug-07 13:34
pkrvb18-Aug-07 13:34 
AnswerRe: VB.Net and MS Access problem Pin
TomGarth20-Aug-07 11:11
TomGarth20-Aug-07 11:11 
GeneralRe: VB.Net and MS Access problem Pin
pkrvb21-Aug-07 6:02
pkrvb21-Aug-07 6:02 
QuestionHow to load wmf image Pin
Spejlo18-Aug-07 8:02
Spejlo18-Aug-07 8:02 
AnswerRe: How to load wmf image Pin
Luc Pattyn18-Aug-07 9:34
sitebuilderLuc Pattyn18-Aug-07 9:34 
GeneralRe: How to load wmf image Pin
Spejlo18-Aug-07 10:07
Spejlo18-Aug-07 10:07 

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.