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

19130Re: [Clip] best way to substitute a list of items

Expand Messages
  • Don - HtmlFixIt.com
    Apr 30, 2009
    • 0 Attachment
      ;assign event codes for hytek
      ^!Set %current_event%=^$StrReplace(" Relay";"R";"^%current_event%";Yes;Yes)$
      ^!Set %current_event%=^$StrReplace(" Run";"";"^%current_event%";Yes;Yes)$
      ^!Set %current_event%=^$StrReplace(" Dash";"";"^%current_event%";Yes;Yes)$
      ^!Set %current_event%=^$StrReplace(" LH";"H";"^%current_event%";Yes;Yes)$
      ^!If "^%gender%" = "M" Next ELSE Skip
      ^!Set %current_event%=^$StrReplace("100/110
      HH";"110H";"^%current_event%";Yes;Yes)$
      ^!Set %current_event%=^$StrReplace("100/110
      HH";"100H";"^%current_event%";Yes;Yes)$

      better ideas?

      Don - HtmlFixIt.com wrote:
      > I have a list of items that are track events:
      > 3200 Relay
      > 300 Hurdles
      > 400 Run
      > 100 Run
      > 100/110 HH
      >
      > When I actually use them I want them to read thus:
      > 3200R
      > 300H
      > 400
      > 100
      > (this one is tricky)
      > if ^%gender%=M then 110H
      > but if ^%gender%=F then 100H
      >
      > What is the best way to do this is clip programming?
      >
    • Show all 9 messages in this topic