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 / [DBC] How would I call this function

Author
Message
The Wizard of Aus
18
Years of Service
User Offline
Joined: 14th Sep 2007
Location: The Land Down Under, AUSTRALIA
Posted: 23rd Sep 2007 07:03 Edited at: 25th Sep 2007 07:28
This is from a posting by Easily Confused - Posted: 19th Nov 2002 19:57 in Code Snippets.

Quote: "Midstr()
An slightly extended version of Mid$() where you can set the length of return.
example: Midstr("Raining Cats and Dogs",9,4) will return "Cats""




Again, How would I call the function?

The Wizard

The simplest way to learn speed reading is to get an unexpected letter from the taxation office
Zombie 20
19
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 23rd Sep 2007 08:57
well seeing as you already have it written up when you need it just...call it.

function Midstr()

tada! But hey I could be wrong too.

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 23rd Sep 2007 10:10
Something like this.





demons breath
22
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 23rd Sep 2007 12:06
http://forum.thegamecreators.com/?m=forum_view&t=114861&b=10

don't repost a variation on the same question - you should have just updated your last post.

http://jamesmason01.googlepages.com/index.htm
luke810
19
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 23rd Sep 2007 17:41 Edited at: 23rd Sep 2007 17:41
sorry
The Wizard of Aus
18
Years of Service
User Offline
Joined: 14th Sep 2007
Location: The Land Down Under, AUSTRALIA
Posted: 24th Sep 2007 06:22 Edited at: 4th Oct 2007 12:04
Thanks Zombie 20 and Kevin Picone for your help. Much appreciated. Modified to suit my needs.

** EDIT **

Here are the functions:

From the information supplied by Zombie 20 and Kevin Picone,



and based on TDK_Man's tutorials on how to get a sub-string from a string



And here they are, applied in a short programme.



I realise the subject may have been covered before, but someone may have a different way of doing it and their view would be appreciated.

The Wizard

The simplest way to learn speed reading is to get an unexpected letter from the taxation office

Login to post a reply

Server time is: 2026-07-06 05:35:32
Your offset time is: 2026-07-06 05:35:32