Jump to content

- - - - -

New String Functions

  • Please log in to reply
3 replies to this topic

#1 TomL_12953


    Casio Addict

  • Members
  • PipPipPip
  • 57 posts
  • Gender:Male
  • Location:Malone, NY USA
  • Interests:Programmable calculators, BASIC computer language, Computers in general, Old movies and TV shows

  • Calculators:
    TI-59, TI-85, TI-86, TI-89, TI-89 Titanium, Radio Shack EC-4026, Algebra FX 2.0 Plus, HP-35s, Compucorp 326 Scientist, Durabrand 828, fx-9860G II SD

Posted 30 November 2003 - 11:44 AM

I'd like to see real string functions such as Str, Left, Right, Mid and Instr (or Pos) rather than having to call subprograms. Here's a difference: Now, to create a string such as "You guessed it in 4 tries!" where the number 4 comes from a variable, g, you have to do this:

ExpToStr g,f
StrJoin "You guessed it in ",f,f
StrJoin f," tries!",f
Print f

With string functions you could do this:

Print "You guessed it in " & Str(g) & " tries!"

Tom Lake

#2 Andy.Davies


    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking & Destroying)
    Gaming (FPS, RTS, RPG)
    Rock Music (Preferably Loud)
    Riley's (Pool & Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 30 November 2003 - 12:05 PM

or like in C++ :

cout<<"you did it in"<

#3 CrimsonCasio


    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 01 December 2003 - 03:53 AM

dont we all...
I'm setting up a standard library of functions that people will be able to use, feel free to contribute anything.

so far I've made:
printf (prints formated text)
printl (prints out a list with or with out 1)...n) prefix, uses printf)
poscreen (sets up the screen as you want it)
debug (lets you change and see values of variables)
isdef (does the variable exist)
require (makes sure a variable exists, breaks if not found with a error message)
insmat (using the 2D list method stores a item into a matrix)
getmat (retreives data from a 2D list)

functions planned:
checkver (checks the current version of the library aginst the one you made the program with)
error (error output)

if you want to make some functions for this library that would be great, people can put it in the "library" folder and it will be able to be accessed by all programs.

#4 Overlord


    Casio Technician

  • Moderator
  • PipPipPipPipPipPip
  • 355 posts
  • Gender:Male
  • Location:Brussels - Belgium
  • Interests:Math Researcher

  • Calculators:
    My head - C300 OS 3.00 - G100 Rom 1.02 - G65 - G60 - G25

Posted 01 December 2003 - 08:33 AM

hey good idea ! :D

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users