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 (1648)
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 60 of 133) 3985 Result(s) found 

 

Concatenate an array of strings with commas and a final "and", or other separators
Total Hit (2675) «Code LangId=2»' 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
ConcatenateStrings - Concatenating an array of strings
Total Hit (2713) «Code LangId=2»' Concatenate the input strings, and return the resulting string. The first ' input string is used as a separator. ' ' Example: ' Dim i As Integer = 4 ' Dim d As Double = 34.45 ' Dim s As String = "VB-2-The-Max" ' Dim ret As String = ConcatenateStrings(" ", s, "is a n ....Read More
Rating
CountOccurrences - Counting the number of string occurrences
Total Hit (2847) «Code LangId=2» ' Count the number of string occurrences Public Function CountOccurrences(ByVal source As String, ByVal search As String, _ Optional ByVal ignoreCase As Boolean = False) As Integer Dim options As System.Text.RegularExpressions.RegexOptions ' set the search options a ....Read More
Rating
DecodeBase64 - Decoding a string from base64
Total Hit (2890) «Code LangId=2»' Returns the input string decoded from base64 Private Function DecodeBase64(ByVal input As String) As String Dim strBytes() As Byte = System.Convert.FromBase64String(input) Return System.Text.Encoding.UTF8.GetString(strBytes) End Function «/Code» ....Read More
Rating
EncodeBase64 - Encoding a string to base64
Total Hit (3047) «Code LangId=2»' Returns the input string encoded to base64 Private Function EncodeBase64(ByVal input As String) As String Dim strBytes() As Byte = System.Text.Encoding.UTF8.GetBytes(input) Return System.Convert.ToBase64String(strBytes) End Function «/Code» ....Read More
Rating
EndsWith - Check whether a string ends with one of multiple possible choices
Total Hit (2686) «Code LangId=2»' Check whether a string ends with one of multiple possible choices. ' Return -1 if no possible string matches the end of the source, ' otherwise return the index of the matching string. ' ' Examples: ' Debug.WriteLine(EndsWith("This is my test line", True, "Line", ' "Stri ....Read More
Rating
ExplodeString - Add a filling char between a string's chars
Total Hit (2496) «Code LangId=2» ' "Explode" a string by inserting a given filling character ' between consecutive characters in the original string ' ' The source string cannot contain Chr$(0) characters Function ExplodeString(ByVal Source As String, Optional ByVal fillChar As Char = _ " "c) As String ....Read More
Rating
FlipCase - Inverting the case of all characters of the input string
Total Hit (2586) «Code LangId=2» ' Invert the case of all characters of the input string ' ' Examples: ' Debug.WriteLine(FlipCase("Hello World")) ' => hELLO wORLD ' Debug.WriteLine(FlipCase("hELLO wORLD")) ' => Hello World ' Debug.WriteLine(FlipCase("3) this is message n. 3")) ' => 3) THIS IS ' MES ....Read More
Rating
FormatMemorySize - Format a value in bytes
Total Hit (2764) «Code LangId=2» Enum FormatMemorySizeUnits BestGuess Bytes Kilobytes Megabytes Gigabytes End Enum ' convert a number of bytes into Kbytes, Megabytes, or Gigabytes Function FormatMemorySize(ByVal value As Long, _ ByVal unit As FormatMemorySizeUnits, Optional B ....Read More
Rating
FormatSize - Format a size expressed in bytes
Total Hit (2479) «Code LangId=2» ' Returns a formatted string that shows the size in Bytes, KBytes or MBytes ' according to the size ' Usage: ' Dim ProperSizeString As String = FormatSize("132100842") ' -> returns "125.98 MB" Function FormatSize(ByVal SizeInBytes As Double) As String If SizeInBytes ....Read More
Rating
FormatValue - Format a value in a column of given width
Total Hit (2714) «Code LangId=2» Enum FormatColumnAlignment Left Center Right End Enum ' format a value in a column of given width and with specified alignment ' using the specified pad character Function FormatValue(ByVal value As String, ByVal width As Integer, _ ByVal alignment As F ....Read More
Rating
GetDelimitedText - Extract the text between open and close delimiters
Total Hit (2761) «Code LangId=2»' get the text enclosed between two Delimiters ' ' it advances Index after the close delimiter ' Returns "" and Index = -1 if not found ' search is case sensitive ' ' For example: ' Dim source As String = " a sentence with (a word) in parenthesis" ' Dim i As Integer = 0 ....Read More
Rating
GetUrlParameters - Retrieving the key-value pairs from the specified url
Total Hit (2568) «Code LangId=2» ' Returns a hashtable with the key-value pairs extracted from the querystring ' of the specified url ' EXAMPLE: ' Dim ht As Hashtable = GetUrlParameters ' ("http://www.mysite.com?param1=123&param2=&param3=234") ' ' print the key=value pairs to the console window ' Di ....Read More
Rating
GetWordOccurrences - Number of occurrences of each word in a string
Total Hit (2533) «Code LangId=2» ' Returns a Hashtable whose keys are the unique words in a source string ' and whose elements are the number of occurrences of each word ' ' Example: ' ' Dim de As DictionaryEntry ' For Each de In GetWordOccurrences(sourceText) ' Console.WriteLine("'{0}' = {1} time(s), ....Read More
Rating
IncrementString- Incrementing the numeric right-most portion of a string
Total Hit (2827) «Code LangId=2» ' Increment the numeric right-most portion of a string ' Example: MessageBox.Show(IncrementString("test219")) ' => 220 Function IncrementString(ByVal text As String) As String Dim index As Integer Dim i As Integer For i = text.Length - 1 To 0 Step -1 Sel ....Read More
Rating
InstrTbl - Search a string for any character in a table
Total Hit (3579) «Code LangId=2» ' If INCLUDE is True or is omitted, return the first occurrence of a character ' in a group ' or -1 if SOURCE doesn't contain any character among those listed in TABLE. ' If INCLUDE is False, return the first occurrence of the character in SOURCE ' that does not appear in TABL ....Read More
Rating
InstrTblRev - The last occurrence of a char in a table
Total Hit (3361) «Code LangId=2»' If INCLUDE is True or is omitted, return the last occurrence of a character ' in a group ' or -1 if SOURCE doesn't contain any character among those listed in TABLE. ' If INCLUDE is False, return the last occurrence of the character in SOURCE ' that does not appear in TABLE. ....Read More
Rating
IsStringLower - Determine whether a string contains only lowercase characters
Total Hit (2634) «Code LangId=2» ' Returns True if a string contains only lowercase characters Function IsStringLower(ByVal sText As String) As Boolean Dim c As Char For Each c In sText If Not Char.IsLower(c) Then Return False Next Return True End Function «/Code» ....Read More
Rating
IsStringUpper - Determine whether a string contains only uppercase characters
Total Hit (1683) «Code LangId=2»' Returns True if a string contains only uppercase characters Function IsStringUpper(ByVal sText As String) As Boolean Dim c As Char For Each c In sText If Not Char.IsUpper(c) Then Return False Next Return True End Function «/Code» ....Read More
Rating
PluralToSingular - Converting the input word from plural to singular
Total Hit (2301) «Code LangId=2»' Convert the input word from plural to singular Function PluralToSingular(ByVal plural As String) As String ' convert to lowercase for easier comparison Dim lower As String = plural.ToLower() Dim res As String ' rule out a few exceptions If lower = "feet" ....Read More
Rating
ReplaceAccentedChars - Replacing all accented characters in the input string
Total Hit (2612) «Code LangId=2» ' Replace all accented characters in the input string ' Note: this function was written according to Italian rules. Rules for your ' language may vary, for example È may not be converted to "E'" as it is in ' Italian ' ' Example: ' Debug.WriteLine(ReplaceAccentedChars("È ....Read More
Rating
ReplicateString - Replicate a string a given number of times
Total Hit (2549) «Code LangId=2»' Replicate a string a given number of times Function ReplicateString(ByVal Source As String, ByVal Times As Integer) As _ String Dim i As Integer Dim sb As New Text.StringBuilder(Source.Length * Times) For i = 1 To Times sb.Append(Source) Next ....Read More
Rating
ReverseString - Reversing a String
Total Hit (1624) «Code LangId=2» ' Reverse the input string, without using the StrRever function in the VB6 ' compatibility assembly Function ReverseString(ByVal source As String) As String Dim chars() As Char = source.ToCharArray() Array.Reverse(chars) Return New String(chars) End Function « ....Read More
Rating
SearchString - Searching a string in case [in]sensitive mode
Total Hit (2307) «Code LangId=2» ' Search the specified string, with the case-sensitive mode or not ' Returns the index of the first occurrence found, or -1 if not found Public Function SearchString(ByVal source As String, ByVal search As String, _ Optional ByVal ignoreCase As Boolean = False) As Integer ....Read More
Rating
Bin - Convert from decimal to binary
Total Hit (3746) «Code LangId=2»' convert from decimal to binary ' if you pass the Digits argument, the result is truncated to that number of ' digits ' ' you should always specify Digits if passing negative values Function Bin(ByVal value As Long, Optional ByVal digits As Short = -1) As String ' conver ....Read More
Rating
BinToDec - Convert from binary to decimal
Total Hit (3673) «Code LangId=2»' convert from binary to decimal Function BinToDec(ByVal value As String) As Long ' we just need a call to the Convert.ToInt64 static method Return Convert.ToInt64(value, 2) End Function «/Code»
Rating
Dec2Any - Convert a decimal number to any other base
Total Hit (3953) «Code LangId=2»' convert a positive number to any base ' BASE can be in the range 2-36 Function Dec2Any(ByVal number As Long, ByVal base As Short) As String Dim index As Integer Dim digitValue As Integer Dim res As New System.Text.StringBuilder() Const digits As String = "0 ....Read More
Rating
EvaluateModule - a module for evaluating expressions
Total Hit (2582) «Code LangId=2»' A module for evaluating expressions, with support for ' parenthesis and many math functions ' Example: ' Dim expr As String = "(SQR(9)^3)+COS(0)*3+ABS(-10)" ' txtResult.Text = Evaluate(expr).ToString ' ==> 27+3+10 ==> 40 Imports System.Text.RegularExpressions M ....Read More
Rating
Hex - Convert from decimal to hexadecimal
Total Hit (3873) «Code LangId=2»' convert from decimal to hexadecimal ' if you pass the Digits argument, the result is truncated to that number of ' digits ' ' you should always specify Digits if passing negative values Function Hex(ByVal value As Long, Optional ByVal digits As Short = -1) As String ' c ....Read More
Rating
Hex2Dec - Convert from hexadecimal to decimal
Total Hit (8208) «Code LangId=2»' convert from hexadecimal to decimal Function HexToDec(ByVal value As String) As Long ' we just need a call to the Convert.ToInt64 static method Return Convert.ToInt64(value, 16) End Function «/Code»
Rating


(Page 60 of 133) 3985 Result(s) found  ... 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 ...

Recommanded Links

 

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

© 2008 BinaryWorld LLC. All rights reserved.