
-----------------------------------
vladv15
Mon Oct 11, 2004 6:25 pm

Help
-----------------------------------
hey Im new here. Whats wrong with this i get an error every time!

var photonamelocation: string
var cx: int
var cy: int
 
put "Enter the name of the photo" 
get photonamelocation:* 
put "Enter the x coordinate, for where you want to put the picturehorizontally"
get cx 
put "Enter the y coordinate, for where you want to put the picture vertically"
get cy

var pic_ID:int
pic_ID:=Pic.FileNew(", photonamelocation, ")
Pic.Draw(pic_ID , cx , cy , picCopy)

-----------------------------------
Genesis
Mon Oct 11, 2004 6:35 pm


-----------------------------------
First off, this should be in the Turing Help section. And second, use the code tags.

Your code though, should be:

var photonamelocation: string
var cx: int
var cy: int

put "Enter the name of the photo"
get photonamelocation:*
put "Enter the x coordinate, for where you want to put the picturehorizontally"
get cx
put "Enter the y coordinate, for where you want to put the picture vertically"
get cy

var pic_ID:int
pic_ID:=Pic.FileNew(photonamelocation)
Pic.Draw(pic_ID , cx , cy , picCopy)

The commas and quotes weren't necessary in the Pic.FileNew command.

-----------------------------------
Amailer
Mon Oct 11, 2004 6:39 pm


-----------------------------------
Moved From: GD  :wink:

-----------------------------------
josh
Mon Oct 11, 2004 9:01 pm


-----------------------------------
and please don't make topics with the subject "Help"  please see [url=http://www.compsci.ca/v2/viewtopic.php?t=461]THIS post for more info  :wink:
