Restored from previous forum. Originally posted by GPI.
Now i must write
mid(text$,pos,len(text$)-pos)
but other BASIC-Languages use for it
mid(text$,pos)
Would be nice.
Thanks
GPI
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
[Implemented] mid(text$,pos)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by ricardo.
Mid("1 2 3",3,1) will extract the number 2
i cant understan with your whish how can i extract just one character.
Sorry if im saying something stupid : )
Best Regards
Ricardo
Dont cry for me Argentina...
But, how does it work if you dont want to extract until the end of the line?but other BASIC-Languages use for it
mid(text$,pos)
Mid("1 2 3",3,1) will extract the number 2
i cant understan with your whish how can i extract just one character.
Sorry if im saying something stupid : )
Best Regards
Ricardo
Dont cry for me Argentina...
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Revolver.
I think he means he wants the last argument to be optional. That's how most other basic languages that I know of have it. Such as Mid("asdf",2,1) will return "s", whereas Mid("asdf",2) will return "sdf".
Result$ = Mid(String$,StartPosition[,Length])
I think he means he wants the last argument to be optional. That's how most other basic languages that I know of have it. Such as Mid("asdf",2,1) will return "s", whereas Mid("asdf",2) will return "sdf".
Result$ = Mid(String$,StartPosition[,Length])
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
Thanks Fred , i realy like this improvement
Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
Thanks Fred , i realy like this improvement

Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm