|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can Format function force upper/lower case?In vb6 you could say s = Format(s, "!") to force text to upper case in
the format function. I've searched the vb.net help system and can't find any help on formatting text. There's plenty of help formatting numbers, dates, and times, though. Does the vb.net format function have a way to convert text to upper or lower case? Thanks. b**@datasync.com wrote:
> In vb6 you could say s = Format(s, "!") to force text to upper case in You mean ">", but yes.> the format > function. > I've searched the vb.net help system and can't find any help I had a little look, seems these string formatting features were either> on formatting text. There's plenty of help formatting numbers, dates, > and times, though. > > Does the vb.net format function have a way to convert text to upper or > lower case? dropped from Format or the docs are particularly well hidden. Two options: - Use the old function, as found in Microsoft.VisualBasic.Compatibility (the use of which is generally advised against, though it makes for the quickest conversion) - Change the code to use String.ToUpper (eg just s = s.ToUpper replaces your snippet) -- Larry Lard Replies to group please b**@datasync.com wrote:
> In vb6 you could say s = Format(s, "!") to force text to upper case in Strings are objects, they have their own methods for that> the format > function. I've searched the vb.net help system and can't find any help > on formatting text. There's plenty of help formatting numbers, dates, > and times, though. > > Does the vb.net format function have a way to convert text to upper or > lower case? > > Thanks. > string.ToLower() and it's counterpart string.ToUpper() -- Rinze van Huizen C-Services Holland b.v If you are formatting a textbox, use the following:
txtFirstName.CharacterCasing = CharacterCasing.Upper hth bill v <b**@datasync.com> wrote in message Show quoteHide quote news:1150461284.704818.248080@u72g2000cwu.googlegroups.com... > In vb6 you could say s = Format(s, "!") to force text to upper case in > the format > function. I've searched the vb.net help system and can't find any help > on formatting text. There's plenty of help formatting numbers, dates, > and times, though. > > Does the vb.net format function have a way to convert text to upper or > lower case? > > Thanks. >
Label Autosize Property... Possible bug??
Does vb.net winform supports checkbox groups? urgent! dataset updation in wrong row Writing a byte to a specific location in a file I don't get this --> Make Thread-Safe Calls to Windows Forms Controls Exception.ToString() VB and VB.NET Adding text to a jpeg file Wizard for UserControl VB 2005 OOP Videos |
|||||||||||||||||||||||