devxlogo

Tip Bank

What’s in a Signature?

A function’s signature consists of the function’s parameter list and the parameters’ ordering. A member function’s signature also includes the const/volatile qualifiers (if any) of that function. Signatures provide the

Precise Division

Question: I have var1 and var2 both ints in a DB (only ints will be entered into var1, var2). But I want the result to show answer with decimal places:

Track Changes on a Form

Question: I have an HTML page that is broken up into two different frames. The left frame acts as a navigation tool. The right frame is the user interface, which

Determining Size of an INPUT Field

Question: How can I determine the maximum size of an INPUT field? Answer: Although you can certainly use JavaScript to find out the size of your user’s screen or the

Creating a “Browse for Folder” Dialog Box

Question: How can I create a “browse” facility in my application&#151something which throws up a dialog box that allows the user to view folders and select one, as in Microsoft

Prevent Certain Files From Being Bookmarked

Question: How can I prevent certain files on my site from being bookmarked? Answer: There is no way to fully prevent people from bookmarking a certain URL on your site.

Numeric only TextField

Question: Is there is a way to create a text field that only accepts numeric input? Answer: There are probably a couple of a ways to go about doing this.