Click here to Skip to main content
15,888,177 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: ODBC Pin
Jay Royall27-Jan-09 22:37
Jay Royall27-Jan-09 22:37 
AnswerRe: ODBC Pin
Wendelius27-Jan-09 22:43
mentorWendelius27-Jan-09 22:43 
GeneralRe: ODBC Pin
Stephen Lintott28-Jan-09 1:31
Stephen Lintott28-Jan-09 1:31 
GeneralRe: ODBC Pin
Wendelius28-Jan-09 1:46
mentorWendelius28-Jan-09 1:46 
GeneralRe: ODBC Pin
Stephen Lintott28-Jan-09 2:56
Stephen Lintott28-Jan-09 2:56 
GeneralRe: ODBC Pin
Wendelius29-Jan-09 9:33
mentorWendelius29-Jan-09 9:33 
GeneralRe: ODBC Pin
Ben Fair28-Jan-09 2:50
Ben Fair28-Jan-09 2:50 
QuestionFindFile file type question Pin
monsieur_jj27-Jan-09 19:26
monsieur_jj27-Jan-09 19:26 
Hi all,

I am new to vb and I am trying to get the file type of every file found during findfile here is my code:

iSearchHandle = FindFirstFile(SrcDir, pFindFileBuff)
    If iSearchHandle <> INVALID_HANDLE_VALUE Then

        strFile = TrimNull(pFindFileBuff.cFileName)
        Do While strFile <> ""
            Do While FindNextFile(iSearchHandle, pFindFileBuff)
            strFile = TrimNull(pFindFileBuff.cFileName)
            If strFile <> "." And strFile <> ".." Then
            strFile = strDir + "\" + strFile
            'strLen = Len(strFile)
            
            fileType = Right$(strFile, 4)


I tried using Right$ to get the file type for example "TonyRobertson.ppsx", ,"version2.5.0.doc", "IMIT031211_TonyRobertson.ppt" and "MARBLES.G4"

by using that I get ppsx, .doc, .ppt and S.G4, is there another way to get the right format?

Thanks,
Jj
AnswerRe: FindFile file type question Pin
Ashutosh Phoujdar27-Jan-09 20:13
Ashutosh Phoujdar27-Jan-09 20:13 
Questionhow to create line graph using C# Pin
karthick sampangi27-Jan-09 18:59
karthick sampangi27-Jan-09 18:59 
AnswerRe: how to create line graph using C# Pin
N a v a n e e t h27-Jan-09 19:02
N a v a n e e t h27-Jan-09 19:02 
AnswerRe: how to create line graph using C# Pin
Ashutosh Phoujdar27-Jan-09 20:07
Ashutosh Phoujdar27-Jan-09 20:07 
AnswerRe: how to create line graph using C# Pin
dan!sh 27-Jan-09 23:57
professional dan!sh 27-Jan-09 23:57 
QuestionAnybody help me in CR Pin
BalasubramanianK27-Jan-09 18:23
BalasubramanianK27-Jan-09 18:23 
AnswerRe: Anybody help me in CR Pin
Jon_Boy28-Jan-09 5:35
Jon_Boy28-Jan-09 5:35 
Questionreading a text file from the resource file Pin
moonshaddow27-Jan-09 15:16
moonshaddow27-Jan-09 15:16 
AnswerRe: reading a text file from the resource file Pin
Ashutosh Phoujdar27-Jan-09 21:23
Ashutosh Phoujdar27-Jan-09 21:23 
GeneralRe: reading a text file from the resource file Pin
moonshaddow28-Jan-09 12:13
moonshaddow28-Jan-09 12:13 
QuestionLooking up Cell data with Mutiple Excel Workbooks running. Pin
frankiebaby227-Jan-09 13:19
frankiebaby227-Jan-09 13:19 
AnswerRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
Dave Kreskowiak28-Jan-09 3:06
mveDave Kreskowiak28-Jan-09 3:06 
GeneralRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
frankiebaby228-Jan-09 6:04
frankiebaby228-Jan-09 6:04 
GeneralRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
frankiebaby228-Jan-09 6:05
frankiebaby228-Jan-09 6:05 
GeneralRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
Dave Kreskowiak28-Jan-09 16:22
mveDave Kreskowiak28-Jan-09 16:22 
QuestionVBA Access design (sql) view Pin
FMpol27-Jan-09 10:41
FMpol27-Jan-09 10:41 
AnswerRe: VBA Access design (sql) view Pin
Dave Kreskowiak28-Jan-09 2:55
mveDave Kreskowiak28-Jan-09 2:55 

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.