Format Color for HTML
This function, which converts a color value into a string suitable for HTML, formats an RGB color value, palette index, or system color constant. You accomplish this by breaking out
This function, which converts a color value into a string suitable for HTML, formats an RGB color value, palette index, or system color constant. You accomplish this by breaking out
Here’s the code the usage of arraycopy: public class testarrcopy{ public static void main(String arg[]) { //Array of any object can be user defined object String source[] ={“one”,”two”,”thr”,”four”,”five”,”six”,”sev”,”eight”,”nine”,”ten”}; //Array of
When you’re working in several time zones, you need to save date values in a common format?the most obvious one being GMT. The following stored procedures store datetime in GMT
As a SQL Server DBA, I realized that SQL Server has no function for Title Case, like the “initcap” function in Oracle. So I’ve made one that capitalizes the first
‘ The average of an array of any numeric type” Example:’ Dim arr As Integer() = {3, 7, 8, 2, 0, 9}’ MessageBox.Show(ArrayAvg(arr))Function ArrayAvg(ByVal arr As Array) As Double Return
‘ Evaluate the transposed matrix’ A transposed matrix is the array you get when you “rotate” a bi-dimensional ‘ array” Example’ Dim arr(,) As Double = {{0.0, 0.1, 0.2}, {1.0,
‘ Swap two elements in the input array” Example:’ Dim arr As Integer() = {3, 7, 8, 2, 0, 9}’ SwapArrayItems(arr, 1, 4)’ Dim o As Object’ For Each o
‘ A Replace routine that works through all the items of the input array” Example:’ Dim arr As Integer() = {3, 7, 8, 2, 7, 0, 9, 7}’ ArrayReplace(arr, 7,
‘ The sum of an array of any numeric type” Example:’ Dim arr As Integer() = {3, 7, 8, 2, 0, 9}’ MessageBox.Show(ArraySum(arr))Function ArraySum(ByVal arr As Array) As Double Return