Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
An international-settings aware version of the Vis...
Author:
Duncan Jones
E-mail:
Click to e-mail author
Submitted:
4/4/2000
Version:
VB3
Compatibility:
VB3, VB4, VB5, VB6
Category:
ActiveX
Views:
8244
An international-settings aware version of the Visual basic "Val" function.
Declarations:
none
Code:
'\\ --[InternationalVal]-------------------------------------------------- '\\ The Val function is not internationally aware, but provides more '\\ functionality than the internationally aware "CDbl" so this '\\ is a replacement for both '\\ ---------------------------------------------------------------------- Public Function InternationalVal(ByVal sIn As String) As Double If IsNumeric(Trim$(sIn)) Then InternationalVal = CDbl(Trim$(sIn)) Else InternationalVal = Val(Trim$(sIn)) End If End Function
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement