devxlogo

Tip Bank

Determine Whether a Value is Numeric

JavaScript has a built-in function called isNAN that can be used to check if a value is numeric or not. The isNan function returns true if the value is not

Range Checking Vectors

This standard library vector can be used like an array. For example: std::vector v(2); // vector of size 2v[0] = 5;v[1] = v[0]; If you’re using an out-of-range index, the

Rename a File Using Java

Java allows you to rename a file by using the renameTo(File file) method, in the java.io.File class. First, obtain a reference to the file that you want to rename. Second,

Date Formats for the DATE Data Type

SQL Server offers two date formats for the DATE data type that are considered safe in situations where computer settings differ or when SET DATEFORMAT or SET LANGUAGE are used.

Compatible Stylesheets with xsl:fallback

The following code is an example of how to use the xsl:fallback element to achieve full compatibility between XSLT different versions. Imagine that some future 5.0 version of XSLT implements

Disable the Standard Window Close (X) Button

This code disables the standard Window Close (X) button on the upper right corner of Windows forms: Private Const SC_CLOSE As Integer = &HF060Private Const MF_GRAYED As Integer = &H1

Using the unparsed-entity-uri XSLT Function

This tip shows how to insert an image into the result-tree of an XSLT transformation using the unparsed-entity-uri function. Suppose you have this element: And an unparsed entity such as