Click here to Skip to main content
15,891,316 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: reading each line and creating a file with that line Pin
Dave Kreskowiak18-Sep-09 1:46
mveDave Kreskowiak18-Sep-09 1:46 
Questionproblem in using c dll in vb Pin
naveen_bij17-Sep-09 18:42
naveen_bij17-Sep-09 18:42 
AnswerRe: problem in using c dll in vb Pin
Christian Graus17-Sep-09 19:07
protectorChristian Graus17-Sep-09 19:07 
AnswerRe: problem in using c dll in vb Pin
Luc Pattyn18-Sep-09 2:51
sitebuilderLuc Pattyn18-Sep-09 2:51 
QuestionVariation on string manipulation Pin
BluesEnd17-Sep-09 14:22
BluesEnd17-Sep-09 14:22 
AnswerRe: Variation on string manipulation Pin
Luc Pattyn17-Sep-09 14:44
sitebuilderLuc Pattyn17-Sep-09 14:44 
AnswerRe: Variation on string manipulation Pin
Steven J Jowett18-Sep-09 2:56
Steven J Jowett18-Sep-09 2:56 
AnswerRe: Variation on string manipulation Pin
Hurricane300018-Sep-09 7:00
Hurricane300018-Sep-09 7:00 
I think is this the code you need:

Dim FullString As String = "String of 23 characters"
Dim HalfStringLen As Integer = Fix(FullString.Length / 2)
Dim FirstPart As String = FullString
Dim SecondPart As String = ""
Do
    If FullString(HalfStringLen) = " " Then
        FirstPart = Microsoft.VisualBasic.Left(FullString, HalfStringLen)
        SecondPart = LTrim(Microsoft.VisualBasic.Right(FullString, FullString.Length - HalfStringLen))
    Exit Do
    End If
    HalfStringLen = HalfStringLen + 1
Loop Until HalfStringLen = FullString.Length
At end of loop, FirstPart and SecondPart will contain FullString spitted.
Note that If the full string have not espaces, FirstPart will contain the entire FullString.

Ignazio
AnswerRe: Variation on string manipulation Pin
BluesEnd19-Sep-09 14:13
BluesEnd19-Sep-09 14:13 
GeneralRe: Variation on string manipulation Pin
Dave Kreskowiak19-Sep-09 14:26
mveDave Kreskowiak19-Sep-09 14:26 
QuestionRead file name from USB flash drive & based on file name copy few files on USB flash drive - all through an application Pin
Sagar Mishra17-Sep-09 13:45
Sagar Mishra17-Sep-09 13:45 
AnswerRe: Read file name from USB flash drive & based on file name copy few files on USB flash drive - all through an application Pin
Christian Graus17-Sep-09 14:01
protectorChristian Graus17-Sep-09 14:01 
AnswerRe: Read file name from USB flash drive & based on file name copy few files on USB flash drive - all through an application Pin
Luc Pattyn17-Sep-09 14:55
sitebuilderLuc Pattyn17-Sep-09 14:55 
GeneralRe: Read file name from USB flash drive & based on file name copy few files on USB flash drive - all through an application Pin
Sagar Mishra17-Sep-09 15:34
Sagar Mishra17-Sep-09 15:34 
GeneralRe: Read file name from USB flash drive & based on file name copy few files on USB flash drive - all through an application Pin
Luc Pattyn17-Sep-09 15:45
sitebuilderLuc Pattyn17-Sep-09 15:45 
AnswerRe: Read file name from USB flash drive & based on file name copy few files on USB flash drive - all through an application Pin
darkelv17-Sep-09 16:29
darkelv17-Sep-09 16:29 
AnswerRe: Read file name from USB flash drive & based on file name copy few files on USB flash drive - all through an application Pin
Dave Kreskowiak18-Sep-09 1:42
mveDave Kreskowiak18-Sep-09 1:42 
GeneralRe: Read file name from USB flash drive & based on file name copy few files on USB flash drive - all through an application Pin
Luc Pattyn18-Sep-09 2:52
sitebuilderLuc Pattyn18-Sep-09 2:52 
QuestionAnonymous browser Pin
raggabox17-Sep-09 6:24
raggabox17-Sep-09 6:24 
AnswerRe: Anonymous browser Pin
Dave Kreskowiak17-Sep-09 6:43
mveDave Kreskowiak17-Sep-09 6:43 
GeneralRe: Anonymous browser Pin
raggabox17-Sep-09 6:59
raggabox17-Sep-09 6:59 
GeneralRe: Anonymous browser Pin
Dave Kreskowiak17-Sep-09 7:23
mveDave Kreskowiak17-Sep-09 7:23 
GeneralRe: Anonymous browser Pin
raggabox17-Sep-09 7:30
raggabox17-Sep-09 7:30 
GeneralRe: Anonymous browser Pin
DJ Matthews17-Sep-09 7:37
DJ Matthews17-Sep-09 7:37 
GeneralRe: Anonymous browser Pin
raggabox17-Sep-09 9:12
raggabox17-Sep-09 9:12 

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.