Agilent Technologies VEE Pro Guide de l'utilisateur Page 543

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 602
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 542
Appendix
VEE User’s Guide 515
Key Points
String Objects and Functions: StrTrim(str) first strips off any
spaces or tabs from the front and back of the name.
StrPosChar(str1, " ") yields the index of the space character
between the firstname and lastname. StrLen(str), of course,
gives the length of the string. All of these were performed using
the string objects, but they could also be done using string
functions within a Formula object.
Formula Object: StrFromThru(A,B+1,C-1) takes the string from
input A, adds 1 to the index of the space from input B, and
subtracts 1 from the string length at input C. (Recall that all
indexing is zero- based.)
Set Variable: Notice how easily you can set a global variable
called lastname, which can then be referenced in any
expression field, such as the Formula object in this example.
Optimizing: The three formulas could be combined into one
formula. It is recommended to leave strTrim() on its own since
its output is used multiple times, but the others could be
combined into one to optimize speed. (This could reduce
readability, however.)
Vue de la page 542
1 2 ... 538 539 540 541 542 543 544 545 546 547 548 ... 601 602

Commentaires sur ces manuels

Pas de commentaire