Click here to Skip to main content
15,925,444 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: .mdb Pin
NANCO28-Mar-07 19:14
NANCO28-Mar-07 19:14 
AnswerRe: .mdb Pin
Vasudevan Deepak Kumar29-Mar-07 6:25
Vasudevan Deepak Kumar29-Mar-07 6:25 
QuestionWhat is the .NET equivalent of Format() and Mid() = ??? [modified] Pin
Marcus J. Smith28-Mar-07 2:29
professionalMarcus J. Smith28-Mar-07 2:29 
AnswerRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
RichardBerry28-Mar-07 3:56
RichardBerry28-Mar-07 3:56 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Marcus J. Smith28-Mar-07 4:07
professionalMarcus J. Smith28-Mar-07 4:07 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Dave Kreskowiak28-Mar-07 4:18
mveDave Kreskowiak28-Mar-07 4:18 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Marcus J. Smith28-Mar-07 5:07
professionalMarcus J. Smith28-Mar-07 5:07 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Dave Kreskowiak28-Mar-07 5:19
mveDave Kreskowiak28-Mar-07 5:19 
Odd. It's not documented to do that. Testing in VBA reveals that it will only replace the exact number of characters specified in the original span. Using a different length string will only get cut off.

The closest equivilent in the .NET Framework is String.Replace(). Strings are immutable so any changes you make are not reflected in the original string, but in a copy of the string.
Dim s As String = "This is a test..."
s = s.Replace("is", "was")

The original string "This is a test..." is dropped while the Replace method returns a new string with the changes made.


Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Marcus J. Smith28-Mar-07 5:22
professionalMarcus J. Smith28-Mar-07 5:22 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Dave Doknjas28-Mar-07 13:25
Dave Doknjas28-Mar-07 13:25 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Dave Kreskowiak28-Mar-07 15:10
mveDave Kreskowiak28-Mar-07 15:10 
General.NET equivalent Mid() = ??? - Not Answered... Pin
RichardBerry28-Mar-07 4:29
RichardBerry28-Mar-07 4:29 
GeneralRe: .NET equivalent Mid() = ??? - Not Answered... Pin
Marcus J. Smith28-Mar-07 4:50
professionalMarcus J. Smith28-Mar-07 4:50 
GeneralRe: .NET equivalent Mid() = ??? - Not Answered... Pin
Dave Kreskowiak28-Mar-07 5:21
mveDave Kreskowiak28-Mar-07 5:21 
QuestionWord document Pin
scorp_scorp28-Mar-07 1:55
scorp_scorp28-Mar-07 1:55 
AnswerRe: Word document Pin
freefika28-Mar-07 2:44
freefika28-Mar-07 2:44 
GeneralRe: Word document [modified] Pin
scorp_scorp28-Mar-07 2:52
scorp_scorp28-Mar-07 2:52 
GeneralRe: Word document Pin
RichardBerry28-Mar-07 4:08
RichardBerry28-Mar-07 4:08 
GeneralRe: Word document Pin
freefika28-Mar-07 5:42
freefika28-Mar-07 5:42 
Questionprint preview in vb.net 2005 Window Application Pin
amaneet28-Mar-07 1:31
amaneet28-Mar-07 1:31 
AnswerRe: print preview in vb.net 2005 Window Application Pin
Vasudevan Deepak Kumar29-Mar-07 6:27
Vasudevan Deepak Kumar29-Mar-07 6:27 
Questionglobal.asax in .net......................... Pin
Member 387988128-Mar-07 1:06
Member 387988128-Mar-07 1:06 
AnswerRe: global.asax in .net......................... Pin
Jaiprakash M Bankolli28-Mar-07 1:20
Jaiprakash M Bankolli28-Mar-07 1:20 
GeneralRe: global.asax in .net......................... Pin
Member 387988128-Mar-07 1:28
Member 387988128-Mar-07 1:28 
GeneralRe: global.asax in .net......................... Pin
Jaiprakash M Bankolli28-Mar-07 1:43
Jaiprakash M Bankolli28-Mar-07 1:43 

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.