Tip Bank

DevX - Software Development Resource

Add vs String Concatenate

Question: I want to force the addition of two numbers in JavaScript, but they always just concatenate. There has to be a simple way to do this that I’m missing.

DevX - Software Development Resource

Determining a Client’s Time Zone

Question: I want to know from which time zone a client is accessing my site to control display of commercial ads. How can I find this out? Answer: In general,

DevX - Software Development Resource

Using setAttribute Method of DOM Object in VB

Question: I am unable to use “setAttribute” method in Visual Basic. Following is the piece of code. Dim objXML As DOMDocumentDim objOrders As IXMLDOMNodeDim objOrder As IXMLDOMNodeSet objXML = CreateObject(“Microsoft.XMLDOM”)Set

DevX - Software Development Resource

Windows 2000 Defragment

Question: How can users be given the ability to run defragment without any other rights being givento their computers? Answer: There is a utility in the W2K Resource Kit called

DevX - Software Development Resource

Command-Line Argument in FoxPro 2.0

Question: Is there any way for FoxPro to accept a command-line argument: c:foxpro2.0fox myprogram “Justin” Where “Justin” is a string sent to the FoxPro program ‘myprogram’ as a parameter? Answer:

DevX - Software Development Resource

Data Field Refresh on Forms

Question: I have a multi-page form with navigation controls on the first page. When I “Next”through the records, the data fields refresh fine on Page One but not on the

DevX - Software Development Resource

Windows NT Profiles

Question: Why are Windows NT user profiles created with extensions of .000, .001, and so on? Answer: The following is from the MSDN article Q185588, “Guide To Windows NT 4.0

DevX - Software Development Resource

Pausing Code to Call Another Form

Question: I have a form with a block of code that hides the form and then calls another form. This other form accepts input, saves it to a table and

DevX - Software Development Resource

Directories That Won’t Open

Question: How come I can’t open some directories on my C: drive? I get the error”c:directoryname is not accessible. Access is denied.” Answer: I have had the same problem on