Click here to Skip to main content
16,010,394 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: mdi child maximization Pin
caymanislands2-Apr-07 13:22
caymanislands2-Apr-07 13:22 
AnswerRe: resource Pin
Christian Graus28-Mar-07 13:40
protectorChristian Graus28-Mar-07 13:40 
Questionrun dts package on different domain Pin
leezardd28-Mar-07 4:06
leezardd28-Mar-07 4:06 
Question.mdb Pin
NANCO28-Mar-07 3:56
NANCO28-Mar-07 3:56 
AnswerRe: .mdb Pin
leckey28-Mar-07 8:46
leckey28-Mar-07 8:46 
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 
The old function:
Format(InputDateString, "00/00/00")
would take in something like 032807 and return 03/28/07.

I cannot seem to reproduce this with:
InputDate = String.Format("MM/dd/yy", InputDateString)
or
OutputDateString= InputDateString.ToString("MM/dd/yy")
Am I even close to figuring this out? I am trying to avoid the VB6 functions as much as possible.

As for the Mid() = that would be like saying:
Mid(InputRecord, 99, 5) = ReplacementString
Is there a replacement for this other than
InputRecord = InputRecord.Substring(0, 99) & ReplacementString & InputRecord.Substring(99, InputRecord - 99)



-- modified at 8:55 Wednesday 28th March, 2007

Referring to the Formatting piece, if I first convert the string to a numeric value then use:
ConvertedValue.ToString("00/00/00")
Then it works great how come I cant seem to get it to do anything from the original string?


CleaKO

"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

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 
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 

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.