LB Booster
« mid$( »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:31am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: mid$(  (Read 277 times)
Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx mid$(
« Thread started on: Oct 30th, 2016, 5:22pm »

I was surprised that this worked. I don't see it described in the help file or other LBB documentation. Did I miss previous discussions on this?

r.m.

Code:
    a$ = "CCCCC"
    mid$(a$,3,1) = "X"
    notice a$   ' prints "CCXCC"
    wait
 
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: mid$(
« Reply #1 on: Oct 30th, 2016, 6:05pm »

on Oct 30th, 2016, 5:22pm, Alincon wrote:
Did I miss previous discussions on this?

Apparently you did! It was included in the announcement of LBB v2.60 (June 2014) where it says 'You can assign to a sub-string, for example: MID$(test$,7,1) = "W"' and it's documented in the LBB Help File under Benefits... New Features where it says 'You can assign a new value to a sub-string, for example MID$(test$,7,1) = "W" or RIGHT$(hello$,6) = "world!"'.

Richard.
« Last Edit: Oct 30th, 2016, 6:56pm by Richard Russell » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls