BBC BASIC for Windows
« FNendst() a new tool »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:42pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: FNendst() a new tool  (Read 340 times)
michael
Senior Member
ImageImageImageImage


member is offline

Avatar




PM


Posts: 335
xx FNendst() a new tool
« Thread started on: Dec 21st, 2016, 4:19pm »

I couldn't resist making this specialized tool... cus I love using MID$ for strings

I think it makes a nice simple tool

Code:
      INPUT "give me a word : ",a$
      PRINT "THE last character is"
      PRINT "'"+FNendst(a$)+"'"
      END
      DEFFNendst(st$)
      LOCAL la%,res$
      la%=LEN(st$)
      res$=MID$(a$,la%,1)
      =res$
 
« Last Edit: Dec 21st, 2016, 4:24pm by michael » User IP Logged

I like making program generators and like reinventing the wheel
Zaphod
Guest
xx Re: FNendst() a new tool
« Reply #1 on: Dec 21st, 2016, 8:30pm »

I take it you don't realize that your new tool is just the same as the built in RIGHT$(a$).

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