Teledyne-lecroy SAS_SATA Protocol Suite Verification Script Engine Bedienungsanleitung Seite 81

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 97
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 80
81
21.3 Get and Set Characters in Strings
You can set and get characters at positions in CSL-script-file string objects.
Format : str [ index ]
Parameter
index Position in string
Example
str = "Brush your teeth before going to bed";
# Get character at some index.
c = str[ 6 ]; # c = "y"
# Set characters or substring at some index.
str[ 11 ] = "hands"; # str = "Brush your hands before going to bed";
str[ 33 ] = "sleep"; # str = "Brush your hands before going to sleep";
Seitenansicht 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 96 97

Kommentare zu diesen Handbüchern

Keine Kommentare