Link GPRM

Rosebud wrote on 3/20/2009, 4:09 PM
I have a problem with a script in DVD-A 5
I want to store the current title to replay it later.
So, I set the GPRM0 = SPRM4 (title).
After that, it seems I can’t use Link GPRM0 (I get an error).
Does the only way is to use many tests like this:
If GPRM0 = 1 Link Title1
If GPRM0 = 2 Link Title2
If GPRM0 = 3 Link Title3
If GPRM0 = 4 Link Title4
And so one…

TIA
Gilles

Comments

ECB wrote on 3/20/2009, 8:14 PM
The command is GotoLabel "Example" where "Example" is the label you named the section of code you want to link to using the label command. It is outlined in Help. Very simple example.

Label0:
GPRM0 = 0
Gotolabel 'Label0'

There are a number of ways to do it (conditional link) but you still have to test. No calculated goto's.

EB
Rosebud wrote on 3/21/2009, 1:22 AM
Oops… I don’t speak about the GotoLabel function.
I’m speaking about the link function.
Sorry, I use a French version of DVD-A

Thx

ps: I edited my previous post.