Test if a Character in a String is a Letter
There is a simple way to test if a character in a string is a letter.Just by using the UCase() And LCase() functions. Public Function IsLetter(Char As String) As Boolean
There is a simple way to test if a character in a string is a letter.Just by using the UCase() And LCase() functions. Public Function IsLetter(Char As String) As Boolean
When you want to send an integer through the socket from a Java application to a C application, or your Java application needs to save some integer in the file
I have created a generic function for changing the key for an object in a collection: ‘Module: Module1 Option Explicit Public Function ChangeKey(Object As Object, NewKey As String, Collection As
If you are loading Multiple ComboBoxes or ListBoxes from the same recordset, a fast way to do this is to only loop the recordset once.Here is a generic function that
The fastest way to clear a collection is just to set the variable to a new Collection object. However, if it’s necessary to free the references the collection is keeping,
You cannot make a separate location to assign one object to another. By implementing a Cloneable interface and calling the clone() method, you can make a separate location for the
This code will return the date of the next weekday that you specify.For example, assuming today is July 4th, 2001 and you need to know the date for next Monday,
SQL Server, and the SQL language in general, doesn’t support record numbers, so you can’t extract a set of records if you know their position in the resultset. This missing
or years, Visual Basic programmers pleaded with Microsoft to give them the object-oriented programming (OOP) capabilities that were enjoyed by C++ and Java developers. While a few OOP-related features were
nterprise messaging has become an increasingly important component of loosely coupled, reliable enterprise frameworks. This is due in large part to the proliferation of enterprise applications (CRM, ERP, SCM, etc.)
ave you ever wondered why some of your queries take so long to run? Or how DB2 interprets your requests? As with all high-level programming languages, SQL must be translated
CountSort is yet another sort algorithm, which can be applied only under very particular conditions but that, when such conditions are met, turns to be the fastest of the lot.
This ASP page lets you display a calendar that starts at a given data and lets the user browse previous/next month or year. The zip file contains a test HTML
Private Declare Function RealizePalette Lib “gdi32″ (ByVal hdc As Long) As Long’ Paint a circular gradient” STARTCOLOR is the starting color (applied to the corner)’ ENDCOLOR is the ending color
‘ Retrieve the number of bytes by all the files in a directory’ (it doesn’t account for slack space, that is unused space in disk sectors)” If INCLUDESUBDIRS is true,
Private Declare Function RealizePalette Lib “gdi32″ (ByVal hdc As Long) As Long’ Paint a vertical gradient” STARTCOLOR is the starting color (applied to top border)’ ENDCOLOR is the ending color
Private Declare Function RealizePalette Lib “gdi32″ (ByVal hdc As Long) As Long’ Paint an horizontal gradient” STARTCOLOR is the starting color (applied to left border)’ ENDCOLOR is the ending color
Const NCBNAMSZ = 16Private Type NCB ncb_command As Byte ncb_retcode As Byte ncb_lsn As Byte ncb_num As Byte ncb_buffer As Long ncb_length As Integer ncb_callname As String * NCBNAMSZ ncb_name
In Web development, putting too many records from the database into the Web server is memory intensive processing. This is where the concept of paging comes form. At any point
In Palm OS, the memory chunk size is 64K. To make applications larger than this, you have to split the applications into segments less than 64K. These are called multi-segment
This can be used when you want your users to BookMark your site or add your site address to their favorites list. The following Javascript function can be called whenever
Normally, options in select control will be added at design time or will be created on the server site. This code explains how to add options to the select control
To simulate a Matrix class with M*N elements, initialize a vector withM*N elements and overload the () operator such that Foo(i,j) returnsFoo[i-1+M*(j-1)]. This way Foo(1,1) is equivalent to Foo[0], Foo(2,1)
To help declare variables of the right datatype and size while creating Stored Procedures, this stored procedure accepts the name of the table and returns the variable list with all
A common mistake in C++ programming is typing = instead of ==. This can be due either to a typo error or because you are used to other languages such
It is often useful to make a breakpoint by calling the DebugBreak function. However, this is not necessarily always convenient because the breakpoint will occur in DebugBreak call stack. You
Generally, from an OOP perspective, the direct access to data members should be prevented. This is why we use accessors: Class UserDetails{public: string getUserName() const; void setUserName(const string& name); string
In the below program, pass any java class name into the method forName of the class java.lang.Class type. Cast it with your java class (in this example “AnyClass”) and get
String htmlLabel = “HTMLLabel” + “Multi-line” + “Extra-line”;JLabel label = new JLabel(htmlLabel); Related Posts From cart to empire: The Nitro Bar’s rise.NET Core 1.0 and Cross-Platform DevelopmentUnderstanding the INSTR FunctionMicrosoft
JavaScript lacks the Trim() function. See below the code for trimming a string: function LTrim(ValueToTrim){ValueToTrim =ValueToTrim.toString()var WhiteSpace=new String(” “);var i=0;while(WhiteSpace.indexOf(ValueToTrim.charAt(i))>-1){ i++;}return ValueToTrim.substring(i);}function RTrim(ValueToTrim){ ValueToTrim =ValueToTrim.toString() var WhiteSpace=new String(” “); var