If the purpose is just to print the command then yes.
dim lineset1(2) as string
lineset1(0) = "line 10,10,200,10"
lineset1(1) = "line 10,20,200,20"
lineset1(2) = "line 10,30,200,30"
print lineset1(0)
print lineset1(1)
print lineset1(2)
wait key
Unfortunately if you want to utilize the functions in the array then no. you will need to store the parameters in an array and then utilize those parameters.
type t_line
xPos1 as integer
yPos1 as integer
xPos2 as integer
yPos2 as integer
endtype
dim lineset1(2) as t_line
for i=0 to 2
read lineset1(i).xPos1
read lineset1(i).yPos1
read lineset1(i).xPos2
read lineset1(i).yPos2
next i
for i=0 to 2
line lineset1(i).xPos1, lineset1(i).yPos1, lineset1(i).xPos2, lineset1(i).yPos2
next i
wait key
data 10, 10, 200, 10
data 10, 20, 200, 20
data 10, 30, 200, 30