From: Saga on 4 Mar 2010 14:03 Title correction. Saga
From: Saga on 4 Mar 2010 16:19 >> Doesn't VB 2008 have an inherent function/method for testing a >> >>string to see if it is numeric or not? Thanks! Saga > > IsNumeric. Though, I personally prefere to use the Double.TryParse. > > -- > Tom Shelton Thanks for your input. Although IsNumeric would be the logical choice I have read that it is recommended that the developer stay away from the VisualBasic namespace functionality as this was made available only to be backwards compatible with VB6. Regards, Saga
From: Chris Dunaway on 4 Mar 2010 16:57 On Mar 4, 3:19 pm, "Saga" <antiS...(a)nowhere.com> wrote: > >> Doesn't VB 2008 have an inherent function/method for testing a >> > >>string to see if it is numeric or not? Thanks! Saga > > > IsNumeric. Though, I personally prefere to use the Double.TryParse. > > > -- > > Tom Shelton > > Thanks for your input. Although IsNumeric would be the logical choice > I have read that it is recommended that the developer stay away from the > VisualBasic namespace functionality as this was made available only > to be backwards compatible with VB6. Regards, Saga Only the "VisualBasic.Compatibility" namespace should be avoided. The VisualBasic namespace is meant to be used. Chris
From: Tom Shelton on 4 Mar 2010 17:39 On 2010-03-04, Saga <antiSpam(a)nowhere.com> wrote: >>> Doesn't VB 2008 have an inherent function/method for testing a >> >>>string to see if it is numeric or not? Thanks! Saga >> >> IsNumeric. Though, I personally prefere to use the Double.TryParse. >> >> -- >> Tom Shelton > > Thanks for your input. Although IsNumeric would be the logical choice > I have read that it is recommended that the developer stay away from the > VisualBasic namespace functionality as this was made available only > to be backwards compatible with VB6. Regards, Saga > > You are confusing VisualBasic with VisualBasic.Compatability. VisualBasic is the core VB language functions and are meant to be used - VisualBasic.Compatability is there for easier conversion of legacy code and should be avoided. -- Tom Shelton
From: Saga on 5 Mar 2010 11:21 > You are confusing VisualBasic with VisualBasic.Compatability. VisualBasic > is > the core VB language functions and are meant to be used - > VisualBasic.Compatability is there for easier conversion of legacy code > and > should be avoided. > Yes, I am confusing them. Thanks both for the clarafication! Saga > -- > Tom Shelton
|
Next
|
Last
Pages: 1 2 Prev: How do I determine is string is number? Next: SendKeys and Keyboard Hook |