Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / text strings.....

Author
Message
simonuk74
21
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 15th Dec 2002 07:01
if I have the string "dark basic.exe", and I want to print a selected part of the string, ie "K BAS". I know I would use Left$/right$/mid$, but I dont know what order the syntax would be in?
something like TEXT$=MID$(LEFT$("DARK BASIC.EXE",5),4) ?

but I cant get it to print more than on letter of the sting?

how can I create a string that contains `X` amount of characters, starting at `Y` position in a string ?

Simon
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 15th Dec 2002 17:37
In other words, you need a Mid$() where can set the length of return. This function should should help



"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 15th Dec 2002 17:51
...hmmm!, my last post lost the word "you" and duplicated the word "should", strange...

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
simonuk74
21
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 15th Dec 2002 18:42
brill, thanks,
I¬ll have play with it

what it will be for, is I`m writing a database, and I have also written a simple windows explorer style kinda thing, to select where you can load/save files. I have allocated bits of the screen to place a file/dir name in, but some names are longer, so I wanted to have the name scroll in its alloctaed box, when the mouse is over it...

simon

Login to post a reply

Server time is: 2024-04-20 04:49:33
Your offset time is: 2024-04-20 04:49:33