EXPLANATION OF STRING LIBRARY:
Instr()
This command returns the first accurance of a character in a string
print Instr("Hey there","y")
output
3
--------------------------------------
Rtrim$()
This command remove unwanted spaces from the right of the string
Print RTRIM$("HEY THERE! ")+"<"
output
HEY THERE!<
---------------------------------------------------------
LTRIM$()
same as RTRIM$ but removes unwanted spaces from the left of the string
print ">"+Ltrim$(" HEY THERE!")
output
>HEY THERE!
-------------------------------------------------------
ATRIM$() dose the combined function of RTRIM AN LTRIM
removing all spaces from left and right of the string
pint ">"+Atrim$(" HI ")+"<"
output
>HI<
-------------------------------------------------------
CutLeft$()
This HANDY function is simulare to LEFT$ and RIGHT$ except it litterly CUTS from the specified character you say at its first accurance! instead of using a number
print CutLeft$("OPEN|HERE" , "|")
output
OPEN
--------------------------------------------------------
CutRight$()
This dose the reverse of cutleft itcuts from the right of the first accurance of a character specified
print CutRight$(" THIS|GUY " , "|")
output
GUY
--------------------------------------------------------
CutMiddle$()
dose the combined function of cutleft and right by using TWO
character accurances!
print CutMiddle$( " PRINT(PARAMETER) " , "(" , ")" )
output
PARAMETER
-------------------------------------------------------
FindWord$()
is simulae to Instr only it will only return the place
of the first accurance of a MATCHING word in case in the string
Print FindWord$("HEY HI HOWDY COOLIES","HOWDY")
output
8 -Cause HOWDY begins in character space 8 of the searched string
---------------------------------------------------------
DeleteWord$()
This seeks out a matching word in a string and destroys it!
print DeleteWord$("WHATS UP HERE MY FRIEND?" , "HERE ")
output
WHATS UP MY FRIEND? - We use a space after the word we delete because you will have a double space since it removes whatever matches and the spaces between the world would else wise remain like so
alternate output
WHATS UP MY FRIEND?
--------------------------------------------------------
Insert$()
This will insert a word in a string at the specified location
print Insert$("CAN BELIEVE THIS GUY?","YOU ",5)
output
CAN YOU BELIEVE THIS GUY?
---------------------------------------------------------
CountChar()
this counts the number of the specified char in the string
print CountChar(" HEY MIKE HOW IS IT GOING","E")
output
2
----------------------------------------------------
FindTrail$()
This finds thee FIRST ACCURANCE of TRAILING characters in a string! which is aything over double characters in a row!
IT RETURNS THE LOCATION AND LENGTH of the TRAIL at the same time! "use cutleft and right to seprate the values"
print FindTrail$("HEY THERE AL.....")
output
13|5 -which is at position 3 and is 5 .'s long
--------------------------------------------------------
Trail$()
this will create a trail string
print Trail$("R",6)
output
RRRRRR
----------------------------------------------------
GetStringDex()
this function will retrieve the numberic value of a word in a STRING INDEX "which must be seprated by a single character throughout"
A$="HEY;BOB.BMP;SNIFF;STOP;HOOF;SHINE;SLEEK"
print GetStringDex(A$,";","STOP")
output
4 - Cause stop is the 4th word in the stringdex
---------------------------------------------------------
StringDex$()
this retireves a word from the string index
A$="HEY;BOB.BMP;SNIFF;STOP;HOOF;SHINE;SLEEK"
print StringDex$(A$,";",5)
output
HOOF
----------------------------------------------------------