Results for "Category: String Manipulation"
Simply counts the number of lines in a textbox (the textbox should be multiline=true, otherwise it is pretty useless). Put this in a module so it can be reused.
Finds words starting with, containing, ending with, >
this is and update of lotto number checker it checks your lotto numbers for you
This is a URL parser class that accepts a URL (such as "http://www.blah.com/") and parses out: - the protocol - the hostname - the username - the password - the port - the resource - the querystring Enjoy!
Convert numbers to words (Portuguese only!)
This small script simply and easly creates an AutoComplete affect for your ComboBox. VERY EFFECTIVE AND VERY EASY TO UNDERSTAND.
This code demonstrates how to use buffer concatenation via the Mid Statement for fast string concatenations. Buffer concatenation is much faster than the widely used "&" to connect strings and also faster than array concatenation. Use the supplied class module in your own apps to improve speed and efficiency.
By thsi code you can Find any text in comboBox by your keypress you should at first locate your database i used Biblo.mdb that you can locate it in your vb directorate try it good programm
Simple and fast Linewrap written with a bit of Vb standards. This one does same job as Sam Kopetzky one plus one feature: it can split lines in same length and if no space is found to split them, it will divide the word with a "-" char (lines will result 1 char longer than max you said!) The Sam Kopetzky code is compatible with all Vb versions, while this one is only for Vb6 - as it uses functions like Split and Join - but it may be easier to understand. If you want to take a look to Sam job, go here: [url]http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=35460&lngWId=1[/url]
This code will help people understand using winsock control to run a Vb server. This Code comes with both a server code and client code. It uses string manipulation to sort the data and also uses what i like to call bit divide. which i have included its own project to help users understand the process.
This module contains a function that will take a currency var (up to 999,999,999.99) and return the result (including cents) as a string "spelled-written" amount formated for mexican pesos. 'Public Function ConvierteNumeroALetra(Numero As Currency) As String' Altrough it was made for mexican pesos, it can be easily adapted for any unit, in any language,in any way. There are lots of number2words functions out there, but I think mine is the more understandable ans simplier of 'em. You will have to spend some time converting the spanish numbers to english, thou... ---------------- Este modulo contiene una funcion que toma una variable de moneda(currency) (Hasta 999,999,999.99) y regresa la cantidad de forma escrita como String. (Incluye centavos) 'Public Function ConvierteNumeroALetra(Numero As Currency) As String' La cantidad escrita la regresa usando el formato de monto escrito en pesos mexicanos, usado en cheques, depositos, facturas, etc. Por ejemplo: $1,525.23 = (Mil Quinientos Veinticinco Pesos, 23/100 M.N.) Los centavos se escriben siempre sobre cien, y M.N. significa Moneda Nacional. Si esto les sirve, haganmelo saber. -Fongus
Will validate the format of an email or IP address. Allows email addresses which use ip addresses. Will return all valid addresses in a string.
splits a path up a path and shortens parts to make it shorter. e.g. c:\program files\blingblongblu\bah\bleh.exe c:\program...\blingbl...\bah\bleh.exe
cool word proccessor that can read what u have wrote ,font size font color bold....
This code convert a TXT file to EXE file.When you convert the file start the EXE and the old file will be typed(like TYPE command) This is really great code NOTE : RUN THE .EXE FROM MS-DOS MODE
This is kind of a Virus Scanner...It's to let you get the feel of a scanner which searches for strings a virus might have and then displays that it is a virus in a message box. Put this in a module and call it from like a button or something. I am only 13 so if you think this code is dumb or wouldn't work...sorry im still learning. E-Mail me at BmFWaLk316@Juno.com if you have any problems. Later.
Get the current username from Windows
Get the current computername from Windows
DLL that allows you to write RTF code that is compatable with Windows WordPad. Use this object to convert HTML to RTF, or to generate RTF file on the fly!!!! Don't bother looking anywhere else for this hot little piece of code ( I spent hours on the net looking, finally I gave up and wrote it myself!) Look here for future updates, up next... picture, and table support! Added Bonus: Object that enumerates through the fonts on your system and gets the Picth, and Font Family for each one!!!!!!!!
Ported to VB from a Java port of the GNU Diff implementation. The basic algorithm is described in "An O(ND) Difference Algorithm and its Variations", Eugene Myers, Algorithmica Vol. 1 No. 2, 1986, p 251. It's released under the GPLv2