Mid(MyString$, Offset, Characters)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

made a typo, sorry. fixed it.
BERESHEIT
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

netmaestro wrote:made a typo, sorry. fixed it.
No problem, That's the point of using a macro, so you don't have to fumble with PeekS and make typos.
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

Trond:
My mistake: you are right. Your macros are faster.
From now on, I'll adopt your first macro.
Cheers

To be fast, one must race against the fast racers. :)
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

Only about a year late, but I'd also like to see the 2 parameter version of the command :)
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

didn't see it before, either.

the third parameter optional would be nice.
even C64's basic had it....
oh... and have a nice day.
Olli
Addict
Addict
Posts: 1071
Joined: Wed May 27, 2020 12:26 pm

Re: Mid(MyString$, Offset, Characters)

Post by Olli »

I think the object of this subject has been done.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Mid(MyString$, Offset, Characters)

Post by Josh »

Olli wrote:I think the object of this subject has been done.
And for this message you have to reawaken a thread from 2007?
sorry for my bad english
Post Reply