The Latest

DevX

How to Create and Use CallableStatement Objects

A CallableStatement object provides a standard way for all RDBMS’ to call stored procedures. A stored procedure is stored in a database; the call to the stored procedure is what

DevX

Send NET SEND Messages

This code is how to send NET SEND messages to all the connected SQL Server users in an NT local area network: CREATE PROC notify_users(@notification VARCHAR(100) = ‘SQL Server shutting

DevX

Passing Arrays by Value

It has already been said many times that (a) std::vector is preferred to c-style arrays, and (b) Arrays, vectors, and other data structures should preferably be passed by reference.While this

DevX

Making a Class Final

The following code explains how to make a class that is final, meaning that it cannot be derived further. class FinalBase{ FinalBase() {} friend class Final;};class Final : private virtual

DevX

Save Expensive Heap Allocations

Fixed-size arrays in local variables use a stack-allocated descriptor as expected, but all the data for an array is allocated on the heap. However, fixed-size arrays embedded in structures are

DevX

Allow Context-Sensitive Help for Disabled Controls

If you want a form to support context-sensitive help, set the WhatsThisButton and WhatsThisHelp properties on the form to True, and set the WhatsThisHelpID property to a corresponding help-file topic

DevX

Get Date Format String

There is no native function for returning the current date format string. Here’s a simple function that calls the GetLocaleInfo API in order to retrieve the short date format string:

DevX

Set the Cursor for Your Components

All AWT component classes have a setCursor() method that allows for dynamically setting the cursor for a particular component and any subcomponents.For example, if you set the cursor for a

DevX

Creating and Using Thread-Scoped Variables

Sometimes you need variables scoped by thread so that each thread has an independent copy. There’s an easy way to create and manage such variables.The java.lang.ThreadLocal class provides a wrapper

DevX

An Easy Way to Check Boolean System Properties

Suppose you want to pass a Boolean system property, -DDEBUG=true or -DDEBUG=false, from the command line. Normally, you’d probably use the following in source code to retrieve it: boolean b

DevX

Scope of Variables Declared in for()

The new ANSI C++ standard specifies that variables declared as in for(int i=1; …) have a scope local to the for statement. Unfortunately, older compilers (like Visual C++ 5.0) use

DevX

Sorting Part of a Field

Use the following code: select *,right(field1,4) as Col1 from [Tablename]order by col1 You can do it by using substring: SELECT *, substring(field1, 3, 5) as col1from [tablename]order by col1 Related

DevX

Open Textfile Data as a Recordset Using ADODB

‘*********************************************************************’Text files Reading’You can use Microsoft Text Driver’*********************************************************************Public Function Read_Text_File() As ADODB.Recordset Dim rs As ADODB.Recordset Set rs = New ADODB.Recordset Dim conn As ADODB.Connection Set conn = New ADODB.Connection

DevX

How to Scroll the Text on the Title Bar of a Web Page

This code will do the trick: <TITLE>ABCDEFGHIJKLMNOPQRSTUVWXYZ</TITLE> Related Posts Get Detailed Information on Tables in MySQLCount the Number of Active ASP.NET Sessions in State Server Session ModeSalesforce Announces Customer Service

DevX

Use VB6 ActiveX controls with VB.NET

It is possible to use VB6 ActiveX controls – such as ADO Data Control, Chart Control, Comm Control, and the Windowless controls – with the designer of Visual Studio .NET,

DevX

Allow Interval Greater Than Timer Controls

When you need a timer for a larger interval than the Timer control allows, insert this code into a BAS module. The procedure starts when the timer interval has passed:

DevX

How to Change Text Color Dynamically

<TITLE>Dynamic Color Change of Text</TITLE>Hello Good Morning Related Posts RAML Resource GroupStablecoins And Their Role in CryptoSurvey: 75% of Organizations Have an API StrategyFlexera Software Launches AdminStudio Inventory and Rationalisation,

DevX

Use the Erl Function to Debug

When you Related Posts Israeli Women Leaders Summit Celebrates Female EntrepreneursYves Lachance to lead Warner Bros. Games MontréalObject Arrays are so FlexibleUK Transforms Their Nuclear Power with SMRsHow To Hide

DevX

Change Appearance Property at Run Time

Here Related Posts Kaspersky to shut down US operationsHow to Trigger an Async QueryNew Features in ASP.NET CoreGet All Columns in All Tables of a Specific Data TypeUnderstanding the DAYOFWEEK

DevX

Bind Option Buttons to Data Controls

The Option button is a convenient way to display multiple options from which only one can be selected. One problem is that the Option button cannot be bound to a

DevX

Format Your Version Info

Many professional applications are required to display a version number on all screens to indicate to users which version of the app is currently running. This also helps with configuration