|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
string formattinghey all,
how do i take a string like "123456789" and format it like this: "123-45-6789" thanks, rodchar "rodchar" <rodc***@discussions.microsoft.com> wrote in message Should be something like Format$("123456789", "###-##-####")news:A37AF431-714B-4941-8325-9993EDA72F9D@microsoft.com... > how do i take a string like "123456789" > and format it like this: "123-45-6789" Note that if this is a SSN it is a string, not a number. <Steve_Bl***@EagleCCI.com> wrote in message
news:1144975659.077768.73090@i40g2000cwc.googlegroups.com... That works in VB6 but they've dumped it in VB .Net. It's an SOB to find the > > Try Format("123456789","@@@-@@-@@@@") replacement. "rodchar" <rodc***@discussions.microsoft.com> wrote in message Dim S As String = "123456789"news:A37AF431-714B-4941-8325-9993EDA72F9D@microsoft.com... > hey all, > how do i take a string like "123456789" > and format it like this: "123-45-6789" If Len(S) = 9 Then S = Mid(S, 1, 3) & "-" & Mid(S, 4, 2) & "-" & Mid(S, 6, 4) thanks everyone.
Show quoteHide quote "rodchar" wrote: > hey all, > how do i take a string like "123456789" > and format it like this: "123-45-6789" > > thanks, > rodchar
.NET 1.1 app runs on .NET 2.0?
Accessing a camrea & char in XML document Crystal "PrintToPrinter" will not print to Zebra Label Printer... HELP! Duplicate controls on tab pages Warning Text Files Access "Cross-thread operation not valid" without threading!! ComboBox in Bound DataGrid (VB 2003) vb.net Automation Issues - COM Interop IO.File.AppendText error |
|||||||||||||||||||||||