Computer Science Canada

Process Var's

Author:  Namis [ 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]

Author:  Tony [ Wed Sep 24, 2003 11:21 pm ]
Post 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)

Author:  Namis [ Wed Sep 24, 2003 11:29 pm ]
Post subject: 

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

Author:  krishon [ Thu Sep 25, 2003 5:59 pm ]
Post subject: 

just make sure for music files that u put it in the directory...otherwise it won't work Confused


: