Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
vladv15




PostPosted: 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)
Sponsor
Sponsor
Sponsor
sponsor
Genesis




PostPosted: Mon Oct 11, 2004 6:35 pm   Post subject: (No 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.
Amailer




PostPosted: Mon Oct 11, 2004 6:39 pm   Post subject: (No subject)

Moved From: GD Wink
josh




PostPosted: Mon Oct 11, 2004 9:01 pm   Post subject: (No subject)

and please don't make topics with the subject "Help" please see THIS post for more info Wink
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: