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

Accessing the Container of an Object

Question: How do I find the parents of a control? Answer: All VFP objects have a property called “parent,” which is an object reference to thecontainer of the object. For

DevX - Software Development Resource

Run EXE as Logged-On User

Question: Let’s assume I am logged onto an NT Workstation as a normal user. Using one of your10-Minute Solutions I managed to get the LogonUser API to log me in

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

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

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