devxlogo

Tip Bank

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,

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

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

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:

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

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

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

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

Windows NT Administration

Question: How can I add hundreds of users to the NT server by an automated procedure? Answer: In the NT Resource Kit (either NT 4.0 or W2K version), look at