Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Tasks and Techniques

Tasks and Techniques - Page 4

Algorithms
Arrays
Classes
Controls
Data Types
Deployment
Input
  Output
Installation
Printing
Registry
String Manipulation
Threading
61-80 of 1861     Previous     Next
Write a VB6 String that Contains Double Quotation Marks
by Xianzhong Zhu
There are typically two ways to express the string that contains double quotation marks.
Concatenating Strings
by Anthony Burke
When you're concatenating only a few strings, it's faster to add them than to use StringBuilder.
Override a Child Class' Parent Method
by Anthony Burke
Here's a workaround to override a child class' parent method with a more granular return type.
Extending the Existing CLR Type
by Naresh Rohra
With .NET 3.0, you can extend any existing CLR type by adding one or more public methods to it—without recompiling the library
Passing Strings Between Delphi DLL and VBA
by Romeo Besas
Unlike other routines, this one doesn't need to pass the length of the returned string for later Trimming in VBA.
Displaying "Bit" Database Fields in Web Forms
by Srinath MS
When fields with 'Bit' Data Types are displayed on Web Pages, they shows as True/False, as opposed to showing the actual '0' / '1'.
Create a Color Using "<<" and "|" Operators
by Leonard Anghel
This tip shows you how to create the RED color using the "<<" and "|" operators. After that, the color is used to fill a rectangle.
Autocomplete Combo Boxes
by Lalit Dwivedi
If you want autocomplete in VB, you've got to do it yourself and this tip shows you how.
Multi-Threading: When printf Can Be Better than cout
by John Hendrix
printf and fprintf are much less likely to be preempted in the middle of streaming data.
Use the XSLT 2.0 Character-map Element to Replace Characters
by Leonard Anghel
Here's an example of how to use XSLT 2.0's new character-map element to replace a character (or group of characters) with another character (or group of characters) on the transformation runtime.
Potential Problems with Friend Classes and Functions in C++
by Alexander Ocher
In C++, it is possible to declare as a friend a class which was not declared anywhere else. This behavior is specified in the C++ Standard (11.4), but it can lead to problems if used incorrectly.
An Improved szEncryptDecrypt VB6 Funtion
by Scott Likely
The szEncryptDecrypt function in a previous tip did not handle unicode strings properly, but otherwise worked well. The changes in the following version should work for any string by explicitly converting each character to ASCII and back.
Converting an Integer to a C++ String
by Jon Sumners
Boost libraries provide a better way to convert numbers into strings or vice versa.
Converting Numbers to Column Names in Excel 2007
by John P.
While converting to Excel 2007, I had to update the column number to string code in my program to handle columns of 703 and above (AAA). I found Yassine Moe's code and "simplified" it. This tip shows the results.
Override Base Methods in a Form
by Jayadev D
If one class is inheriting from another class, a quick, easy way to find the available overrides is through .NET's IntelliSense.
Using the SecureString Class
by Srinath MS
NET 2.0's System.Security namespace includes the SecureString class, which lets you create encrypted strings and delete them from memory when they're no longer needed.
Converting from Centigrade to Fahrenheit and Vice Versa
by Jijesh Nair
Use the following code to convert from Centigrade to Fahrenheit and vice versa.
Using ANYDATA in Oracle 9i
by Shraddha Pandya
First introduced in Oracle 9i, ANYDATA is a "self-describing data instance type" which means it not only holds the value, but it also holds its own data type within each instance of it.
Another Way to Escape Sequences in .NET Resource Files
by Nick Piazza
There is actually another way to insert escape sequences, such as newline characters—or actually any Unicode character, directly into the Resource string—without resorting to Replace or similar manipulations.
Force JScrollPane to Display a Scrollbar
by Ong Eng Hua
When it comes to using JscrollPane or other scrollable components, I've found that the scrollbar is unable to appear even when the JComponent (for instance, JPanel)'s size is larger size than JScrollPane.
61-80 of 1861     Previous     Next
Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date