background preloader

Visual Basic

Facebook Twitter

Q and A

VISUAL BASIC EXAMPLES. Example Programs, Code Examples, Sample Code, Source Code Examples, Visual Basic, VB.NET, C#, Cocoa, Objective-C, FoxPro, C++, Delphi, Python, Perl, Java, Ruby, SQL Server, C, MFC, PHP. The VB Zone - THE online resource for Visual Basic programmers. VB6 On-line Books. Visual Basic Code. Is a 'all-in-one' Add-In for Visual Basic 6.0 which adds several features missing in the VB 6.0 IDE.

It provides a main menu, a toolbar, handy context menus or customizable shortcuts to access those features. Through a dialog window, you can customize several Add-In features to meet your development standards (data type prefixes, template for procedure headers, template for error handler, etc.) or your personal preferences (user name, shortcuts, etc.) For your convenience, the add-in has been localized in the following languages: English, Spanish, French, Italian, German and Portuguese. Installation is as simple as downloading the Add-In (a DLL file and a configuration file compressed in a .zip file) to a single folder and registering the DLL file with regsvr32.exe (a setup program is not needed).

If for any reason you do not like the Add-In and want to uninstall it, simply unregister it with regsvr32.exe /u and delete the files. Visual Basic/VB6 Command Reference. This page aims to be a comprehensive command reference to the MS Visual Basic 6 programming language. String Manipulation[edit] Asc[edit] Returns the number corresponding to the ASCII code for the first character of string Usage Asc(string) string = string containing character as first letter whose ASCII code is to be found. Example code = Asc("apple") Here code will get value 97 Chr[edit] Returns a string character that corresponds to the ASCII code in the range 0-255. Chr(code) code = ASCII code. char = Chr(97) Here char gets value "a".

Len[edit] Returns the length of a given string or 0 for Empty. Len(expression) expression = a string or Empty mystring = InputBox("Enter a string to test") length = Len(mystring) MsgBox "Length of the string is " & length e.g. where mystring is "Hello", length will be 5. Left[edit] Returns a given number of characters from the left hand side of a string Left(string,x) string = string to use x = number of characters Right[edit] Right(string, x) Mid (Function)[edit] Trim[edit]

FreeVB and C# Code.

VB6 Sites

VB6 Samples and Tutorials.