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

Wizard Template (clip)

Expand Messages
  • Tyrell_RR@hotmail.com
    Hi its all to easy to get lost in those (big) 1-liner clipwizards, so i created a kind of wizard tempate. it can also be used to dump the 1-liner wizard code
    Message 1 of 1 , Nov 6, 2001
    • 0 Attachment
      Hi

      its all to easy to get lost in those (big) 1-liner clipwizards,
      so i created a kind of wizard tempate.

      it can also be used to dump the 1-liner
      wizard code that will do the same job

      like this, the 1-liner from this template: (note->^@)
      ^!Set %Wizard_Output1%=^@{(1;H=2;T=L)Wizard_Caption1==text line
      1|text line 2}; %Wizard_Output2%=^@{(2;H=2;T=A)Wizard_Caption2==text
      line 11^=1|text line 12^=2}

      (; - ) section that do not need to be edited
      (; + ) section that do need some kind of editing

      note: 5 warped lines

      ...tyrell...



      H="Wizard Template"
      ; + wizard : general (main title & Label)
      ^!SetWizardTitle "TitleText"
      ^!SetWizardLabel "LabelText"

      ; - wizard : (setup) arrays(1)
      ^!SetListDelimiter |
      ^!SetArray %Wizard_Caption%=|
      ^!SetArray %Wizard_Options%=|
      ^!SetArray %Wizard_Output%=|
      ^!SetArray %Wizard_Values_TMP%=|
      ^!SetListDelimiter ><
      ^!SetArray %Wizard_Values%=><
      ^!Set %Wizard%=0

      ; + wizard 1 : (temp) value strings
      ^!Set %Wizard_Values_TMP0%=2
      ^!Set %Wizard_Values_TMP1%=text line 1
      ^!Set %Wizard_Values_TMP2%=text line 2

      ; + wizard 1
      ^!Inc %Wizard%
      ^!Set %Wizard_Caption^%Wizard%%=Wizard_Caption^%Wizard%
      ^!Set %Wizard_Options^%Wizard%%=^%Wizard%;H=^%Wizard_Values_TMP0%;T=L
      ^!Set %Wizard_Values^%Wizard%%=^%Wizard_Values_TMP%

      ; + wizard 2 : (temp) value strings
      ^!Set %Wizard_Values_TMP0%=2
      ^!Set %Wizard_Values_TMP1%=text line 11^=1
      ^!Set %Wizard_Values_TMP2%=text line 12^=2

      ; + wizard 2
      ^!Inc %Wizard%
      ^!Set %Wizard_Caption^%Wizard%%=Wizard_Caption^%Wizard%
      ^!Set %Wizard_Options^%Wizard%%=^%Wizard%;H=^%Wizard_Values_TMP0%;T=A
      ^!Set %Wizard_Values^%Wizard%%=^%Wizard_Values_TMP%

      ; - wizard : (setup) arrays(2)
      ^!Set %Wizard_Options0%=^%Wizard%
      ^!Set %Wizard_Caption0%=^%Wizard%
      ^!Set %Wizard_Output0%=^%Wizard%
      ^!Set %Wizard_Values0%=^%Wizard%

      ; + wizard : combine field codes
      ; - tryed to get a (simple)loop running here, base on ^%Wizard%
      number, but did not get it to work
      ^!SetListDelimiter ><
      ^!Set %WIZ_TMP%=
      ^!Append %WIZ_TMP%=%Wizard_Output1%=^?{(^%Wizard_Options1%)^%
      Wizard_Caption1%==^%Wizard_Values1%}
      ^!Append %WIZ_TMP%=;
      ^!Append %WIZ_TMP%=%Wizard_Output2%=^?{(^%Wizard_Options2%)^%
      Wizard_Caption2%==^%Wizard_Values2%}

      ; - tip: change [^?] are into [^@] to prevend the wizzard
      ; - from being executed, to get a compressed (1-line) wizzard code
      dump
      ; - ... un-remark INFO line for code dump ...
      ;^!Info [L]1 line wizard code:^p^p^!Set ^%WIZ_TMP%

      ; - run wizard (the ^ is no typo)
      ^!Set ^%WIZ_TMP%

      ; + wizzard : test output
      ^!Set %WIZ_TMP%=
      ^!Append %WIZ_TMP%=Wizard output:
      ^!Append %WIZ_TMP%=^p^p Wizard_Output0[^%Wizard_Output0%]
      ^!Append %WIZ_TMP%=^p^p Wizard_Output[^%Wizard_Output%]
      ^!Append %WIZ_TMP%=^p^p --- --- ---
      ^!Append %WIZ_TMP%=^p^p Wizard_Output1[^%Wizard_Output1%]
      ^!Append %WIZ_TMP%=^p^p Wizard_Output2[^%Wizard_Output2%]
      ^!INFO [L]^%WIZ_TMP%

      ; + wizard : store/redirect wizard output to other variables (like %
      Selected_file_name%)
      ^!Set %Other_Var_Name1%=^%Wizard_Output1%
      ^!Set %Other_Var_Name2%=^%Wizard_Output2%

      ; - wizard : cleanup (list resorces used)
      ^!SetListDelimiter
      ^!SetWizardTitle
      ^!SetWizardLabel
      ^!ClearVariable %Wizard_Caption%
      ^!ClearVariable %Wizard_Options%
      ^!ClearVariable %Wizard_Output%
      ^!ClearVariable %Wizard_Values%
      ^!ClearVariable %Wizard_Values_TMP%
      ^!ClearVariable %Wizard%
      ^!ClearVariable %WIZ_TMP%
    Your message has been successfully submitted and would be delivered to recipients shortly.