My Free Console Module V1.0

BlitzMax Forums/BlitzMax Programming/My Free Console Module V1.0

New Update available : Version 1.02

file: ConsoleMODV102.rar (hotfix included)
Download at : http://www.brsoftware.de.vu/DL/

fully compatible to Bmax 1.10
Added Method Return_TrimText2(_trim:String)

What does it ?
Trimming a return Text to different parts :
i.e : the Return_text 'Load Map MyMap.dat' will result in

text[0] = 'Load'
text[1] = 'Map'
text[2] = 'MyMap.dat'

by using following code :

local text:String[]
text = c.Return_TrimText[32] ' The '32' stays for the ASCII Code of
' " " in this case

After that you can get the different parts of text by using a For next loop.
For further details look in the sample.
Added another method quite the same as Return_TrimText but this is called
Return_Trim_text2(_Trim:String)

Instead of giving an int to the Method like in the first method you
can enter a String like " :" or "ABCDEF"

The difference between both methods is the following :
In some cases you have entered a text like "Load Map:MyMap.dat"

With Method 1 (Return_TrimText(32)):

text[0] = 'Load'
text[1] = 'Map:MyMap.dat'

With Method 2 (Return_TrimText2(" :")):

text[0] = 'Load'
text[1] = 'Map'
text[2] = 'MyMap.dat'

I hope you see the advantage of the two methods.