Home Forums Macros Commande erronée: TrackAuxState

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6430
    THEZE MorganTHEZE Morgan
    Participant

    Bonjour,

    J’utilise de plus en plus les boucles dans mes macros.

    Toutefois il y a une syntaxe qui me pose problème. En effet, si je code ceci :

    Declare Local int $auxID$ = 1
    Declare Local int $trkID$ = 1
    DoRepeat
    RepeatWhile {$auxID$ < 9}
    TrackAuxState $auxID$ {“trk”+$trkID$} 0
    $auxID$ = {$auxID$ + 1}
    EndRepeat
    $auxID$ = 1
    $trkID$ = {$trkID$ + 1}
    While {$trkID$ < 11}

    Cela me donne une erreur lors de la vérification de la macro :
    “Commande erronée: TrackAuxState Bad parameter track name:Bad value for track name: “trk”+$trkID$ for TrackAuxState”

    Que faut-il changer dans l’écriture de ce bout de code ?

    Par avance merci beaucoup.

    Morgan

    • This topic was modified 3 weeks, 5 days ago by Philippe OllivierPhilippe.
    #6432
    Philippe OllivierPhilippe
    Keymaster

    Salut Morgan,
    Il faut utiliser la syntaxe suivante pour que la variable d’id soit correctement interprétée par la macro

    TrackAuxState $auxID$ trk[$trkID$] 0

    Bonne soirée,
    Philippe

    #6433
    THEZE MorganTHEZE Morgan
    Participant

    Parfait !
    Merci

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.