Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] label

Expand Messages
  • hsavage
    ... Guy, If you change the square brackets to curly braces that may solve both your problems. Curly braces will separate the 2 variables into 2 single
    Message 1 of 1 , Jan 27, 2002
    • 0 Attachment
      On 1/24/02 2:23 PM, Guy Callo wrote:

      >I am a beginner to write clips. As a example I write the clip below.
      >
      >h="Euros/Francs"
      >;convertisseur euros<=>francs
      >:Encore
      >^!Set %choix%=^?[Monnaie à convertir =_Euro^=1|Franc^=2]
      >^!Set %Montant%=^?[Quel montant =1]
      >^!Set %euro%=6.55957
      >^!if ^%choix%=1 Eurfr ELSE Freur
      >;^!if ^%choix%=2 Freur
      >:Eurfr
      >^!Set %resultfr%= ^$Calc(^%Montant%*^%euro%;2)$
      >^!Info ^%Montant% euros = ^%resultfr% francs
      >^!Goto Suite
      >:Freur
      >^!Set %resultEU%= ^$Calc(^%Montant%/^%euro%;2)$
      >^!Info ^%Montant% francs = ^%resultEU% euros
      >:Suite
      >^!ClearVariables
      >^!Continue Encore une conversion ?
      >^!GoTo Encore
      >^!Clip "Euros/Francs"
      >
      >I'm surprised that the code ^!GoTo Encore does not work as i thought, it
      >return to the last label used.
      >
      >Another question : if the first line is ^!Prompt Welcome i observe that the
      >prompt is executed after the second ^!Set. Why ?
      >
      >
      >
      >Guy Callo
      >
      Guy,

      If you change the square brackets to curly braces that may solve both your problems. Curly braces will separate the 2 variables into 2 single wizards. If you want both entry points to appear in the same wizard join the 2 variables into a continuous line as below.

      ^!Set %choix%=^?{Monnaie à convertir =_Euro^=1|Franc^=2}; %Montant%=^?{Quel montant =1}

      This will surely stop the variables from being evaluated before the
      ^!Prompt command, it may also allow you ^!Goto command to work
      correctly. I see no other reason why the ^!Goto won't work.

      hrs
    Your message has been successfully submitted and would be delivered to recipients shortly.