Click here to Skip to main content
15,921,941 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralACCESS / VB / OPENFILEDIALOG Pin
JimWDurbin12-Mar-03 18:58
JimWDurbin12-Mar-03 18:58 
GeneralRe: ACCESS / VB / OPENFILEDIALOG Pin
Hesham Amin12-Mar-03 21:11
Hesham Amin12-Mar-03 21:11 
GeneralRe: ACCESS / VB / OPENFILEDIALOG Pin
JimWDurbin13-Mar-03 17:56
JimWDurbin13-Mar-03 17:56 
GeneralRe: ACCESS / VB / OPENFILEDIALOG Pin
Hesham Amin14-Mar-03 1:11
Hesham Amin14-Mar-03 1:11 
GeneralString Object Referrence Pin
Nick Seng11-Mar-03 17:54
Nick Seng11-Mar-03 17:54 
GeneralRe: String Object Referrence Pin
Hesham Amin12-Mar-03 2:41
Hesham Amin12-Mar-03 2:41 
GeneralRe: String Object Referrence Pin
Jim Stewart12-Mar-03 13:01
Jim Stewart12-Mar-03 13:01 
GeneralRe: String Object Referrence Pin
Anonymous12-Mar-03 14:08
Anonymous12-Mar-03 14:08 
I know what your thinking with Clone on a string. Your getting a pointer that another string variable can be set with so two variables can point to the same memory location. You right, that's how it works! BUT! What you don't know is that in the .NET framework, STRINGS ARE IMMUTABLE. That means that once a string is created, you CANNOT modify it at all!

How is this possible? You can do Search and Replace and change the value of, in your example, 'b'! Your right, you can! What you don't see is that when you change the value of 'b', your actually creating another string in memory and changing the 'b' pointer to look at the new string. 'a' is still looking at the old one and will NOT follow 'b' around. The same is true for replacing a character in the string. You are actually creating a new string (note that 'String <string>.Replace(char,char)' actually returns a String!) and dumping the old one!

The code you wrote is correct, the functionality you want is impossible in .NET, unless you want to go thru the hassle of writing your own String Class.

GeneralRe: String Object Referrence Pin
Nick Seng12-Mar-03 14:43
Nick Seng12-Mar-03 14:43 
GeneralVB Macro to add files to project Pin
charuvenkat11-Mar-03 17:38
charuvenkat11-Mar-03 17:38 
GeneralWindows Service for Printing HTML Pin
Daryl.R11-Mar-03 3:40
Daryl.R11-Mar-03 3:40 
GeneralSearching for files DateModified value Pin
glaidler11-Mar-03 2:28
glaidler11-Mar-03 2:28 
GeneralRe: Searching for files DateModified value Pin
chris foote13-Mar-03 9:17
chris foote13-Mar-03 9:17 
GeneralRe: Searching for files DateModified value Pin
glaidler13-Mar-03 22:31
glaidler13-Mar-03 22:31 
GeneralRe: Searching for files DateModified value Pin
Richard Deeming13-Mar-03 23:43
mveRichard Deeming13-Mar-03 23:43 
GeneralVBCRLF Pin
suresh_sathya11-Mar-03 0:25
suresh_sathya11-Mar-03 0:25 
GeneralRe: VBCRLF Pin
Hesham Amin11-Mar-03 0:34
Hesham Amin11-Mar-03 0:34 
GeneralRe: VBCRLF Pin
Nick Seng11-Mar-03 17:49
Nick Seng11-Mar-03 17:49 
GeneralVISUAL BASIC SUCKS!!!!!! AT LEST THAT'S WHAT THE REST OF THE WORLD THINKS... Pin
eggie510-Mar-03 13:24
eggie510-Mar-03 13:24 
GeneralRe: VISUAL BASIC SUCKS!!!!!! AT LEST THAT'S WHAT THE REST OF THE WORLD THINKS... Pin
dog_spawn10-Mar-03 13:43
dog_spawn10-Mar-03 13:43 
GeneralRe: VISUAL BASIC SUCKS!!!!!! AT LEST THAT'S WHAT THE REST OF THE WORLD THINKS... Pin
eggie510-Mar-03 16:15
eggie510-Mar-03 16:15 
GeneralRe: VISUAL BASIC SUCKS!!!!!! AT LEST THAT'S WHAT THE REST OF THE WORLD THINKS... Pin
dog_spawn11-Mar-03 3:43
dog_spawn11-Mar-03 3:43 
GeneralRe: VISUAL BASIC SUCKS!!!!!! AT LEST THAT'S WHAT THE REST OF THE WORLD THINKS... Pin
Christian Graus10-Mar-03 15:11
protectorChristian Graus10-Mar-03 15:11 
QuestionHow can I determine the type of a single object whose collection is given? Pin
Vidvan10-Mar-03 5:48
Vidvan10-Mar-03 5:48 
AnswerRe: How can I determine the type of a single object whose collection is given? Pin
Jim Stewart12-Mar-03 13:14
Jim Stewart12-Mar-03 13:14 

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.