Create XML from an Array
Passing arrays as arguments to stored procedures is not currently possible in SQL Server, but you can use XML to accomplish this. To do this, you need to create an
Passing arrays as arguments to stored procedures is not currently possible in SQL Server, but you can use XML to accomplish this. To do this, you need to create an
Use the following JavaScript to determine which .NET version is on a client PC: <script language=”JavaScript” type=”text/javascript”>var a = navigator.userAgent.match(/.NET CLR [0-9.]+/g);if (a == null) document.write( “.NET Framework(s) is not
Users often experience flickers when loading forms or during other operations. To minimize this flickering, enable double buffering on the form, as illustrated below: // Activates double buffering this.SetStyle(ControlStyles.DoubleBuffer |
The following code shows how to make an immutable class: package com.test;final class TestImmutable{// instance var are made private to restrict the access // and final to not get reassigned
This tip shows how to read from a log file using a specified format. The following code takes all the logs for the date mentioned in the date control. The
The following code shows how to determine whether one string is a number: public static boolean isNumber(String s){ try { new Double(s); return true; } catch(Exception ecc) { return false;
One way to avoid unnecessary object construction is to use a reference instead of an object to store the unnamed temporary object returned by value. This tip references both Scott
Suppose you simply want to change the border color of a control to something other than black, so you looked for the BorderColor property in the Properties Window…but it’s not
Most application servers/JSP engines can load JSP servlets dynamically. This allows the application server/JSP engine to load the JSP servlets every time you configure them. For example, suppose you configure