CodeBase - Mid() Function

Return to the CodeBase listing

Category: Complete Applications

Version: 1.0

0
0

Information

Uploaded: 11th Sep 2004 20:08

Modified: 1st Jan 1970 01:00

Author:  Dave J

Summary

Extracts text from a string at the given position and for the given length.

Full Description

Extracts text from a string at the given position and for the given length.<br /> <br /> This very small function will extract some text from the string specified. It will start taking text out at the position given (0 being the start of the string, 1 being one char in, etc.) and for the specified length (1 being one character extracted, 2 being two chars extracted, etc.).<br /> <br /> This function differs from DBP's default Mid$() function because DBP's command will only return one character from the middle of the string, this function can return as many as you like.<br /> <br /> As usual with my submissions, a very basic example of how to use the function is given in the snippet. :)

Comments

No comments yet.