Computer Science Canada

Help

Author:  vladv15 [ Mon Oct 11, 2004 6:25 pm ]
Post subject:  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)

Author:  Genesis [ Mon Oct 11, 2004 6:35 pm ]
Post subject: 

First off, this should be in the Turing Help section. And second, use the code tags.

Your code though, should be:

code:
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.

Author:  Amailer [ Mon Oct 11, 2004 6:39 pm ]
Post subject: 

Moved From: GD Wink

Author:  josh [ Mon Oct 11, 2004 9:01 pm ]
Post subject: 

and please don't make topics with the subject "Help" please see THIS post for more info Wink


: