Tip Bank

DevX - Software Development Resource

Incorrect IP Lookup

Question: I have an application which uses dialup networking. If I connectafter starting my application, InetAddress.getLocalHost() alwaysreturns 127.0.0.1. Even if I connect before starting up,then disconnect and reconnect, the IP

DevX - Software Development Resource

Object Finalization

Question: How can I finalize an object without waiting for the garbage collector? Answer: The System class contains a convenience method called gc() that canbe used to ask the JVM

DevX - Software Development Resource

Attaching a DataGrid Control to ADO

Question: How can I use ADO and DataGrid (OLE DB) control in a VFP form? This code does not work in VFP as it works in VB 6.0: DataGrid1.DataSource=mADORecordset1 Answer:

DevX - Software Development Resource

Scrollbar Value Notification

Question: Is there a way that I can dynamically determine the value of aScrollbar when I am scrolling? The adjustmentValueChanged method gets called only when you stop scrolling. But I

DevX - Software Development Resource

WordViewer and ASP

Question: I would like to open a .doc file (link) in Internet Explorer 4.0 with WordViewer. The problem is that if users have Word 8.0 installed on their PC, it

DevX - Software Development Resource

Call a DLL From ASP

Question: I have a DLL called math911.dll and a function called a101. Private objM As MATH911.questionsSet objM = New MATH911.questions’use the functionCall objM.a101(level, TOPlevel, tipe, problem, ans, cpt, INSTRUCTIONS, AMT,

DevX - Software Development Resource

Scripting an Auto Reply

Question: How do I write a script so that every time a particular mailbox receives a new message, that mailbox generates an automatic standard reply? Answer: It’s fairly easy to

DevX - Software Development Resource

Write Text Files to the Client

Question: I’m trying to figure out a way to pass along a questionnaire built in HTML so that users can fill it out in their browser, then have the answers