Tip Bank

DevX - Software Development Resource

ASP String Functions

Question: I have a string that changes in length and has information separated by commas. For instance, it might contain something like: agfd, addc, aprev, ads, adft I need a

DevX - Software Development Resource

Window Maximization

Question: How do you set the maximized state of a window within code? Answer: The Java AWT does not provide an interface for maximizing a window.The Swing JInternalFrame supports a

DevX - Software Development Resource

Get Milliseconds From Time in ASP?

Question: Can I get milliseconds from time in ASP? For example, 12:30:00.234 HH:MM:SS.fff. Answer: No, not without using a custom COM component that will return the milliseconds. But then, by

DevX - Software Development Resource

A Simple Sort Not Working

Question: I have the following: sql=”select * from products” How do I sort or order by two columns retrieved in the “*”? Answer: You need to specify them directly in

DevX - Software Development Resource

MySQL to MS SQL Syntax

Question: I have the following dump for MySQL and am having a problem getting it corrected for MS SQL. Can you help? Here is the dump file: # MySQL dump

DevX - Software Development Resource

Passing Dates to Databases from ASP

Question: How can I pass a date to a database using ASP? Answer: The answer depends on what database you are using. Say you are using a variable called ‘strDate’

DevX - Software Development Resource

Submitting a Form Without a Submit Button

Question: How can I submit a form in ASP without a user clicking on a button? I tried: nameofform.submit() but I get the error: Microsoft VBScript runtime error ‘800a01a8’ Object

DevX - Software Development Resource

Generating KeyEvents

Question: How can I generate a Key Event from Java?I need to generate a KEY_TYPED Event, so the focused Component accepts it like normal key action. Answer: All you have