term.setCursorPos(1,7)
write("Enter name of the Background you want to create:")
name = io.read()
shell.run"paint (name)"
how can I say the programm to open a new paint file with the previously surrounded name?
Help
Started by Leon669, Feb 21 2015 07:27 PM
4 replies to this topic
#1
Posted 21 February 2015 - 07:27 PM
#2
Posted 21 February 2015 - 07:41 PM
Use a string concat operator ( .. ):
local name = "John" local surname = "Smith" local fullName = name .. " " .. surname print( fullName ) --> John Smith
#3
Posted 22 February 2015 - 01:31 AM
To translate that for your program. You'd want
shell.run("paint "..name) --#You need the space after paint
Edited by Dragon53535, 22 February 2015 - 01:32 AM.
#5
Posted 23 February 2015 - 04:41 PM
Have found the answer alone. But thanks
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












