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

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




PostPosted: Wed Sep 24, 2003 11:06 pm   Post subject: Process Var's

for process variables, do you use strings ints or reals? for example

code:

process playstuff
    loop
           Music.PlayFile ("C:\\Documents and Settings\Andrew\Desktop\Music\A Perfect Circle.mp3")
    end loop
end playstuff
[/code]
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Sep 24, 2003 11:21 pm   Post subject: (No subject)

I dont get the question.

If you mean the variable to pick the file to play - then its a string.

If its a value to be passed to the process itself - then anything

code:

process playstuff(text:string)
loop
     Music.PlayFile (text)
end loop
end playstuff

%driver below
var textString : string := "C:\\Documents and Settings\Andrew\Desktop\Music\A Perfect Circle.mp3"

Fork playstuff(textString)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Namis




PostPosted: Wed Sep 24, 2003 11:29 pm   Post subject: (No subject)

Got it, thanks. my help file works all of a sudden :O
krishon




PostPosted: Thu Sep 25, 2003 5:59 pm   Post subject: (No subject)

just make sure for music files that u put it in the directory...otherwise it won't work Confused
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: