Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Confused about mid() command
#2
Perhaps like this one ... ?

Code:
'Console Mode
a = "ABCDEF"

pln "a                  = "+a
pln

'display the letters "B" to "E" inclusive...
b = mid(a,1,4)
pln "MID(a,1,4)         = "+b

'replace D with X
pln "REPLACE D with X   = "+replace(b,"D","X",2)
pln

system "pause"
Reply


Messages In This Thread
Confused about mid() command - by johnno56 - 06-11-2024, 01:39 AM
RE: Confused about mid() command - by 1micha.elok - 06-11-2024, 10:27 AM
RE: Confused about mid() command - by johnno56 - 06-11-2024, 12:25 PM
RE: Confused about mid() command - by 1micha.elok - 06-12-2024, 09:46 AM
RE: Confused about mid() command - by johnno56 - 06-12-2024, 07:59 PM
RE: Confused about mid() command - by Marcus - 06-14-2024, 01:43 PM
RE: Confused about mid() command - by johnno56 - 06-14-2024, 08:34 PM
RE: Confused about mid() command - by Marcus - 06-15-2024, 08:23 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)