Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Good Double

Posted on April 11, 2013October 26, 2015 By David Kittell
Function GoodDouble(s)
	On Error Resume Next
	If len(s) > 0 then
		s = CDbl(s)
		GoodDouble = s
	Else
		GoodDouble = 0
	End If
	If Err Then GoodDouble = 0
End Function
Function String Value
GoodDouble 55 55
GoodDouble 55.55 55.55
GoodDouble 55.45 55.45
GoodDouble SomeText 0
Originally Posted on April 11, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

ASP Code VB

Post navigation

Previous post
Next post

Related Posts

SQL – Log Parser Studio

Posted on December 4, 2015December 4, 2015

Log Parser Studio is a great free tool from Microsoft TechNet Gallery that allows you to run SQL statements against Log files. This tool is available as a Zip file, once extracted open “LPS.exe”. Two examples are below but there is also a category (Code – SQL – Log Parser…

Read More

C# Get URL Details From Browser

Posted on March 15, 2014October 26, 2015

string sURL = ""; sURL += "Host: " + HttpContext.Current.Request.Url.Host + Environment.NewLine; sURL += "Host: " + HttpContext.Current.Request.Url.Authority + Environment.NewLine; sURL += "Path: " + HttpContext.Current.Request.Url.AbsolutePath + Environment.NewLine; sURL += "Application Path: " + HttpContext.Current.Request.ApplicationPath + Environment.NewLine; sURL += "URL: " + HttpContext.Current.Request.Url.AbsoluteUri + Environment.NewLine; sURL += "Path With Query:…

Read More

Azure PowerShell – Get Static IP of Azure VMs

Posted on July 11, 2016

Get-AzureVM | Select-Object -Property Name, @{Name=’StaticIP’;Expression={(Get-AzureStaticVNetIP -VM $_ ).IPAddress}} All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes