Getting the index of the symbol in the article's title

  1. Add the existing article variable to the body of the While true figure. Drill into the var to the title attribute.
  2. Add the existing symbol variable to the body of the While true figure.
  3. Click the Java™... icon on the palette. The Select a Java Visual Snippet window opens.
  4. In the Specify a type (? = any character, * = any String) field, type java.lang.String.
  5. Click String.
  6. Click java.lang - WSInstallDir/runtimes/bi_v6_stub/java/jre/lib/core.jar.
  7. Click indexOf(String).
  8. Click OK.
  9. Add the activity to the body of the While true figure
  10. Add an expression to the body of the While true figure and label it index.
  11. Connect the article.title figure to the indexOf figure
  12. Connect the symbol figure to the indexOf figure.
  13. Connect the indexOf figure to the index figure.

Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.