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

Visual Basic

 
GeneralRe: Equivalent to the SQL code is? Pin
Steven J Jowett2-Nov-09 8:19
Steven J Jowett2-Nov-09 8:19 
GeneralRe: Equivalent to the SQL code is? Pin
Henry Minute2-Nov-09 5:04
Henry Minute2-Nov-09 5:04 
GeneralRe: Equivalent to the SQL code is? Pin
Milad.Biroonvand2-Nov-09 21:26
Milad.Biroonvand2-Nov-09 21:26 
GeneralRe: Equivalent to the SQL code is? Pin
Milad.Biroonvand6-Nov-09 19:01
Milad.Biroonvand6-Nov-09 19:01 
QuestionI have to concate two strings by operator "/" Pin
KIDYA2-Nov-09 1:30
KIDYA2-Nov-09 1:30 
AnswerRe: I have to concate two strings by operator "/" Pin
Padmaraj Sivaraj2-Nov-09 2:11
Padmaraj Sivaraj2-Nov-09 2:11 
AnswerRe: I have to concate two strings by operator "/" Pin
Henry Minute2-Nov-09 2:14
Henry Minute2-Nov-09 2:14 
AnswerRe: I have to concate two strings by operator "/" Pin
DaveAuld2-Nov-09 2:16
professionalDaveAuld2-Nov-09 2:16 
There are different ways;

The simplest is;
Dim x As String = "Fred"
        Dim y As String = "Smith"
        Dim z As String
        z = x + "/" + y

or
Dim x As String = "Fred"
Dim y As String = "Smith"
Dim z As String
z = x & "/" & y


If you look up the string class in the documentation, there are others ways to do this also; including, concat, join.

You can also use a stringbuilder like;
Dim newString As New System.Text.StringBuilder
newString.Append(x)
newString.Append("/")
newString.Append(y)

Debug.WriteLine(newString)


Dave
Who am I?:
Web|Facebook|Twitter|LinkedIn|Bebo

AnswerRe: I have to concate two strings by operator "/" Pin
Luc Pattyn2-Nov-09 2:31
sitebuilderLuc Pattyn2-Nov-09 2:31 
QuestionNatural order sorting in vb Pin
herulee2-Nov-09 0:22
herulee2-Nov-09 0:22 
AnswerRe: Natural order sorting in vb Pin
helelark1232-Nov-09 1:02
helelark1232-Nov-09 1:02 
AnswerRe: Natural order sorting in vb Pin
Luc Pattyn2-Nov-09 1:17
sitebuilderLuc Pattyn2-Nov-09 1:17 
GeneralRe: Natural order sorting in vb Pin
herulee2-Nov-09 2:04
herulee2-Nov-09 2:04 
GeneralRe: Natural order sorting in vb Pin
Luc Pattyn2-Nov-09 2:10
sitebuilderLuc Pattyn2-Nov-09 2:10 
GeneralRe: Natural order sorting in vb Pin
herulee2-Nov-09 2:23
herulee2-Nov-09 2:23 
QuestionMemory Footprint Pin
EvanSaunders1-Nov-09 23:45
EvanSaunders1-Nov-09 23:45 
AnswerRe: Memory Footprint Pin
DaveAuld1-Nov-09 23:56
professionalDaveAuld1-Nov-09 23:56 
Questioncopy and paste textbox in form 1 to textbox in form2 Pin
offroaderdan1-Nov-09 23:16
offroaderdan1-Nov-09 23:16 
AnswerRe: copy and paste textbox in form 1 to textbox in form2 Pin
DaveAuld1-Nov-09 23:29
professionalDaveAuld1-Nov-09 23:29 
AnswerRe: copy and paste textbox in form 1 to textbox in form2 Pin
DaveAuld1-Nov-09 23:54
professionalDaveAuld1-Nov-09 23:54 
GeneralRe: copy and paste textbox in form 1 to textbox in form2 Pin
offroaderdan2-Nov-09 0:27
offroaderdan2-Nov-09 0:27 
GeneralRe: copy and paste textbox in form 1 to textbox in form2 Pin
DaveAuld2-Nov-09 0:41
professionalDaveAuld2-Nov-09 0:41 
Questiondata export listview into pdf file in vb.net Pin
silex_abhi1-Nov-09 23:16
silex_abhi1-Nov-09 23:16 
AnswerRe: data export listview into pdf file in vb.net Pin
Henry Minute2-Nov-09 1:25
Henry Minute2-Nov-09 1:25 
QuestionCombobox SelectedIndexChanged event Pin
helelark1231-Nov-09 22:52
helelark1231-Nov-09 22:52 

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.