Atlanta Custom Software Development 

   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
VB VB (1647)
VB.net VB.net (736)
C# C# (15)
ASP.net ASP.net (779)
ASP ASP (41)
VC++ VC++ (25)
PHP PHP (0)
JAVA JAVA (4)
JScript JScript (5)
  Database
» SQL Server (708)
» ORACLE (5)
» MySQL (0)
» DB2 (0)
Automation
» C/C++/ASM (11)
» Microcontroller (1)
» Circuit Design (0)
OS/Networking
» Networking (5)
» Unix/Linux (1)
» WinNT/2k/2003 (8)
Graphics
» Flash (0)
» Maya (0)
» 3D max (0)
» Photoshop (0)
Links
» ASP.net (2)
» PC Interfacing (1)
» Networking (4)
» SQL Server (4)
» VB (23)
» VB.net (4)
» VC (3)
» HTML/CSS/JavaScript (10)
Tools
» Regular Expr Tester
» Free Tools

(Page 1 of 3) 84 Result(s) found 

Remove Extra Spaces in between words
Total Hit (283)
Rating
Encrypt / Decrypt Password
Total Hit (303)
Rating
Floating Point Numbers Validation
Total Hit (554) «Code LangId=1»Private Sub Form_Load() Text1.Text = Empty End Sub ' USAGE 'Create a form a text box Private Sub Text1_KeyPress(KeyAscii As Integer) ' Precision is 2 in this case ' Send the Precision Value same in both the Functions Call ValidateNum(Text1, 2, KeyAscii) End ....Read More
Rating
Improve String Concatenation Performance
Total Hit (420)
Rating
Load string to byte array with very simple way without any API.
Total Hit (589)
Rating
StringBuilder Class. Very efficient way to append string
Total Hit (701)
Rating
StrReverse - A replacement for the VB6's StrReverse function under VB4 and VB5
Total Hit (327) «Code LangId=1»' A replacement for the StrReverse function for VB4 and VB5 Function StrReverse(ByVal Text As String) As String Dim length As Long, index As Long length = Len(Text) StrReverse = Space$(length) For index = 1 To length Mid$(StrReverse, length + 1 - ....Read More
Rating
UniqueWords - Extract all individual words in a string
Total Hit (435) «Code LangId=1» ' build a list of all the individual words in a string ' ' returns a collection that contains all the unique words. ' The key for each item is the word itself ' so you can easily use the result collection to both ' enumerate the words and test whether a given word appears ' ....Read More
Rating
Concatenate an array of strings with commas and a final "and", or other separators
Total Hit (333) «Code LangId=1»' Concatenate an array of strings with commas and a final "and", ' or other separators ' ' Example: ' Debug.WriteLine("Choose one from " & CreateStringList(New String() {"item1", ' "item2", "item3"})) ' ' => Choose one from item1, item2 and item3 Function CreateStringL ....Read More
Rating
InstrWordEx - Find a whole word, with your choice of delimiters
Total Hit (386) «Code LangId=1» '------------------------------------------------------------------------ ' This enum is used by both InstrWordEx and ReplaceWordEx ' ' It uses a binary value to determine what separator characters are allowed ' bit 0 = allow spaces ' bit 1 = allow symbols ' bit 2 = allow cont ....Read More
Rating
IsCharType - Check whether a character is alphabetic, a digit, a space, etc.
Total Hit (490) «Code LangId=1» ' Return True if a character belongs to a given catagory ' ' CHARTYPE can be the sum of one or more of the following values ' 1 = Uppercase alpha char [A-Z] ' 2 = Lowercase alpha char [a-z] ' 3 = Alpha char [A-Z,a-z] ' 4 = decimal digit [0-9] ' 7 = alphanu ....Read More
Rating
IsNullString - Check whether a string contains white-spaces
Total Hit (487) «Code LangId=1» ' Return True is a string is made only of spaces, tabs, and Null characters. ' This function is especially useful to test whether fixed-length strings ' are initialized. Function IsNullString(Text As String) As Boolean Dim i As Long For i = 1 To Len(Text) Se ....Read More
Rating
IsStringLower - Determine whether a string contains only lowercase chars
Total Hit (430) «Code LangId=1» Private Declare Function IsCharLower Lib "user32" Alias "IsCharLowerA" (ByVal _ cChar As Byte) As Boolean ' Check is the specified string is composed only by lower case characters (no ' digits and no special chars) ' Example: ' MsgBox "Is lower case? " & IsStringLower ....Read More
Rating
IsStringUpper - Determine whether a string contains only uppercase chars
Total Hit (465) «Code LangId=1»Private Declare Function IsCharUpper Lib "user32" Alias "IsCharUpperA" (ByVal _ cChar As Byte) As Boolean ' Check is the specified string is composed only by upper case characters (no ' digits and no special chars) ' Example: ' MsgBox "Is upper case? " & IsStringUpper(" ....Read More
Rating
IsValidCreditCardNumber - Check whether a credit card number is valid
Total Hit (408) «Code LangId=1»' Validate a credit card numbers ' Returns True if valid, False if invalid ' ' Example: ' If IsValidCreditCardNumber(Value:="1234-123456-12345", IsRequired:=True) Function IsValidCreditCardNumber(Value As Variant, Optional ByVal IsRequired As _ Boolean = True) As Boolean ....Read More
Rating
IsValidPhoneField - Check whether a phone number is valid
Total Hit (384) «Code LangId=1»' Validate attributes of Phone data ' Returns True if valid, False if invalid ' ' Also returns the phone in formatted fashion (USA format). ' Will convert alphabetics to numeric ' 'Example: ' If IsValidPhoneField(Value:="3034414444", ReformattedPhone:=strNewPhone, ' ' ....Read More
Rating
Join - A replacement for VB6's Join function under VB4 and VB5
Total Hit (296) «Code LangId=1» ' A replacement for the Join function under VB4 and VB5 Function Join(arr() As String, ByVal Delimiter As String) As String Dim index As Long For index = LBound(arr) To UBound(arr) - 1 Join = Join & arr(index) & Delimiter Next Join = Join & arr(UBound ....Read More
Rating
JoinQuote2 - A Join variant that works with 2-dimensional arrays and quoted strings
Total Hit (301) «Code LangId=1»' Join variant that works with ' bi-dimensional arrays of any type ' and that encloses string values between quotes ' ' ARR is the 2-dimensional array whose element must be joined ' ROWSEPARATOR is the separator for rows (default is CRLF) ' COLSEPARATOR is the separator fol colu ....Read More
Rating
JoinQuoted - A Join variant that encloses string values in quotes
Total Hit (361) «Code LangId=1»' Join variant that works with arrays of any type ' and that encloses string values between quotes ' ' ARR is the array whose element must be joined ' SEPARATOR is the separator char (default is comma) ' QUOTED is the character used to quote string values ' use a two-char st ....Read More
Rating
NumberToWords - Convert a number into its string representation
Total Hit (459) «Code LangId=1» ' Convert a number into its textual equivalent. ' ' Pass True in the second argument if you want a null string when ' zero is passed. ' This is a recursive routine that is probably the most concise ' routines that solves the problem Function NumberToWords(ByVal Number As L ....Read More
Rating
PermuteString - Generating all possible combinations out of a string
Total Hit (481) «Code LangId=1»' Generates all combination possibilities out of a string Public Function PermuteString(ByVal Ztring As String, Optional Base As String = _ "") As String Dim TmpStrArray() As String, I As Long ' If there's only 1 element then If InStr(1, Ztring, " ", vbTextC ....Read More
Rating
PhoneNumberFromString - Convert a phone string into a number
Total Hit (350) «Code LangId=1»' convert a telephone string into a phone number Function PhoneNumberFromString(ByVal PhoneString As String) As String Dim i As Integer Dim acode As Integer Const PhoneDigits = "22233344455566677778889999" ' prepare result in uppercase PhoneNum ....Read More
Rating
PrintF - Transforming template strings
Total Hit (364) «Code LangId=1»' This VB6 function returns a string with a set of parameters replaced with ' variables, similar to the C function printf(). Public Function PrintF(strMask As String, ParamArray Values()) As String On Error Resume Next ' pass in a mask with variables in the order of \0 ....Read More
Rating
How to format miliseconds into hour, minute and seconds using StrFromTimeInterval API
Total Hit (808) If you're working with VB built-in date/time functions, you can use VB Format function to convert Date/Time to any format you need. But API functions often return time in milliseconds. See how to convert it in readable format: «code LangId=1»Private Declare Function StrFromTimeInterval Lib "shlw ....Read More
Rating
How to format file/folder size into KB, MB or GB using StrFormatByteSize API
Total Hit (827) Many functions (VB and API) return file/folder/drive size in bytes. To show this size user-friendly, you need to format it in KB, MB or GB. It's easy to do this with a simple math: 1KB = 1024 B, 1MB = 1024 KB etc. and many apps I've seen have a special function to perform this task. But there is a b ....Read More
Rating
How to sort string Array using CompareString API
Total Hit (841) CompareString compares two strings and determines which one would come first in an alphabetic sort. Although this function can use a number of different comparisons, by default it conducts a case-sensitive word sort. In a word sort, all symbols except hyphens and apostrophes come before the letter " ....Read More
Rating
Working with string APIs
Total Hit (801) «code LangId=1»Private Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" ( _ ByVal lpString1 As String, _ ByVal lpString2 As String) As Long Private Declare Function lstrcmp Lib "kernel32" Alias "lstrcmpA" ( _ ByVal lpString1 As String, _ ByVal lpString2 ....Read More
Rating
How to convert all accent char to normal char (Only for win2k)?
Total Hit (706) This example will show you how to convert all accent characters to normal character. «b»Step-By-Step Example«/b» - Create a standard exe project - Add the following code in form1 «code LangId=1»Private Declare Function FoldString _ Lib "kernel32" Alias "FoldStringA" ( _ ByVal dwMapFlags ....Read More
Rating
How to use FormatMessage API to format string with placeholder (para with %)
Total Hit (1486) FormatMessage is a very powerful API. In this article we will explore possible use of FormatMessage API. Some possible use of FormatMessage api is «UL»«LI»Getting API error description from Error Code «LI»Reading Message String from Resource of DLL or Exe «LI»Replacing placeholders in a string w ....Read More
Rating
This is a link to a different site StringBuilder Class for VB
Total Hit (797) If you need to build a string by adding lots of pieces together, VB's string handling is slow because a new string is created in memory every time a new piece is added. This article presents a class which allocates a string chunk and then uses memory copy methods to manipulate the data within the sa ....Read More
Rating


(Page 1 of 3) 84 Result(s) found  1 2 3

Recommanded Links

 

Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  Blogs

© 2008 BinaryWorld LLC. All rights reserved.