Doubling Quotes for SQL Statements
This routine parses a string and returns an equivalent string where all the instances of a given substring are doubled. This is especially useful for doubling quotes within SQL statements
This routine parses a string and returns an equivalent string where all the instances of a given substring are doubled. This is especially useful for doubling quotes within SQL statements
My code often has a lot of nested procedure calls, which can be painful to trace while doing walk-throughs. Developers might be unaware of the “Procedure Definition” (Shift+F2) feature, which
To use a picture on a CommandButton, you must set its Picture property and set its Style to 1 – Graphical. Otherwise, the picture will be ignored.
Visual Basic includes constants, such as vbActiveTitleBar and vbButtonFace, for Windows system colors, which the user might change through the Control Panel. (In VB3, these constants are defined in the
Since a class is a namespace, the scope for overloading a member function is confined to the class containing this function. Sometimes, it is necessary to overload the same function
To change the ToolTips background color, open the Control Panel’s Display tool. Click on the Appearance tab. In the Item combo box, select ToolTip. Click on the little color box
In large-scale projects different teams use API functions developed by another team or a third-party vendor. For example: int retrievePerson (int key, Person& recordToBefilled); // original version; used by all
C++ allows you to declare variables wherever you need them, thus enabling immediate initializations. A good example is a loop counter. It can (and should) be declared inside a for-statement:
Not every function that is declared inline can actually be inlined by the compiler. A function that has local variables, loops, or an extensive amount of code cannot be inlined