Click here to Skip to main content
15,914,795 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Add filenames to list box Pin
johnjsm20-Dec-04 22:09
johnjsm20-Dec-04 22:09 
GeneralRe: Add filenames to list box Pin
Nicholas Cardi21-Dec-04 4:14
Nicholas Cardi21-Dec-04 4:14 
GeneralRe: Add filenames to list box Pin
johnjsm21-Dec-04 4:56
johnjsm21-Dec-04 4:56 
GeneralRe: Add filenames to list box Pin
johnjsm22-Dec-04 0:25
johnjsm22-Dec-04 0:25 
GeneralRe: Add filenames to list box Pin
johnjsm22-Dec-04 0:24
johnjsm22-Dec-04 0:24 
GeneralRe: Add filenames to list box Pin
Nicholas Cardi22-Dec-04 5:04
Nicholas Cardi22-Dec-04 5:04 
GeneralRe: Add filenames to list box Pin
johnjsm22-Dec-04 5:35
johnjsm22-Dec-04 5:35 
GeneralRe: Add filenames to list box Pin
Nicholas Cardi22-Dec-04 5:51
Nicholas Cardi22-Dec-04 5:51 
Add a command button.
Name it cmdSplit called split

Add 3 text boxes.
Name the first one txtFileName
Name the second one txtFile
Name the third one txtExtension

Private Sub cmdSplit_Click()


SplitFileNameOnDot (txtFileName.Text)


End Sub

Private Function SplitFileNameOnDot(sFileName As String)
Dim sChar As String
Dim sTemp As String
Dim sName As String
Dim sExtension As String
Dim bGotExtension As Boolean
Dim I As Long

For I = Len(sFileName) To 1 Step -1
sChar = Mid(sFileName, I, 1)

If bGotExtension = False Then
sExtension = sChar & sExtension
Else
sName = sChar & sName
End If

If sChar = "." Then
bGotExtension = True
End If
Next I

txtExtension.Text = sExtension
txtFile.Text = sName

End Function

Forever Developing
GeneralRe: Add filenames to list box Pin
johnjsm22-Dec-04 6:18
johnjsm22-Dec-04 6:18 
GeneralUsing drag and Drop picture to a label or something else for a scrabble game Im developing Pin
sourcezilla20-Dec-04 0:51
sourcezilla20-Dec-04 0:51 
GeneralRe: Using drag and Drop picture to a label or something else for a scrabble game Im developing Pin
Tom John20-Dec-04 2:28
Tom John20-Dec-04 2:28 
GeneralResizing the Windows Form through code once it has been maximized Pin
Tweetyshwet19-Dec-04 23:12
Tweetyshwet19-Dec-04 23:12 
GeneralRe: Resizing the Windows Form through code once it has been maximized Pin
Tom John20-Dec-04 0:42
Tom John20-Dec-04 0:42 
GeneralRunning Bytes of array from memory Pin
matrixcine19-Dec-04 22:50
matrixcine19-Dec-04 22:50 
GeneralRe: Running Bytes of array from memory Pin
Dave Kreskowiak20-Dec-04 1:12
mveDave Kreskowiak20-Dec-04 1:12 
GeneralRe: Running Bytes of array from memory Pin
Anonymous20-Dec-04 2:17
Anonymous20-Dec-04 2:17 
GeneralRe: Running Bytes of array from memory Pin
Dave Kreskowiak20-Dec-04 3:31
mveDave Kreskowiak20-Dec-04 3:31 
Generalivr Pin
Geo Varghese19-Dec-04 22:21
Geo Varghese19-Dec-04 22:21 
GeneralRe: ivr Pin
Colin Angus Mackay20-Dec-04 1:58
Colin Angus Mackay20-Dec-04 1:58 
GeneralRE VB6 NETWORK SCRIPT Pin
sltan19-Dec-04 22:10
sltan19-Dec-04 22:10 
GeneralRe: RE VB6 NETWORK SCRIPT Pin
Nicholas Cardi20-Dec-04 6:05
Nicholas Cardi20-Dec-04 6:05 
GeneralBring a line or rectange to front Pin
Ehmed Owais19-Dec-04 21:35
Ehmed Owais19-Dec-04 21:35 
GeneralMove the Tab from one Field to Another Pin
loolita2719-Dec-04 21:29
loolita2719-Dec-04 21:29 
GeneralRe: Move the Tab from one Field to Another Pin
Tom John20-Dec-04 0:48
Tom John20-Dec-04 0:48 
GeneralRe: Move the Tab from one Field to Another Pin
loolita2720-Dec-04 20:56
loolita2720-Dec-04 20:56 

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.