CodeBase - 12 Additional Text functions

Return to the CodeBase listing

Category: Text

Version: 1.0

0
0

Information

Uploaded: 23rd Feb 2005 17:38

Modified: 24th Feb 2005 18:56

Author:  Coin

Summary

Instr(), Cut$(), Insert$(), Replace$(), Count(), ReplaceAll$(), Itemstr$(), String$(), RightAdjust$(), Flip$(), Alpha$(), Match$(). I have migrated from a different Basic language on an ancient Amiga to DarkBASIC Professional on the PC. Dismayed to find several of my favourite Text functions absent I resolved to create my own.

Full Description

The code with its functions will run and output examples to the screen in what I might describe as an adequate fashion. The first few lines beginning with the Print command, however, are merely examples of what the programme can produce and may be deleted. Rem statements are a bit sparse but sufficient to describe what parameters the functions require. Feel free to adapt the code to your own requirements. One minor warning, though: I designed them for my own use and therefore did not build in safeguards against spurious parameters, eg negative values. I hope it proves useful.

Comments

No comments yet.