Author Topic: How to extract {TXTLEN:myVariable} for use in an Integer command??  (Read 4474 times)

Technomancer

  • Jr. Member
  • **
  • Posts: 98
  • I have a bad feeling about this...
For the life of me, I can't figure this one out.

I'm trying to extract the length of {DICTATION} as an integer or a "text" number that I can at least use as an Integer.

Not sure if I'm even on the right track.

I've tried Set a Text Value to {TXTLEN:{DICTATION}}, {TXTLEN:{CLIP}}, but even when I simply put the variable in a TTS command to see if it will say the "number", it just says "Not Set"

I'm probably missing something painfully obvious.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4749
  • RTFM
Re: How to extract {TXTLEN:myVariable} for use in an Integer command??
« Reply #1 on: July 26, 2016, 03:19:08 AM »
Code: [Select]
Set Text [DICTATION] to '{DICTATION}'
Write '[Purple] {TXTLEN:DICTATION}' to log
Most tokens can't take tokens as an argument. If it says "variableName" it must be a variable, not a token.

Annoying, but I think this sort of thing may be on the list of things to revise eventually.

Technomancer

  • Jr. Member
  • **
  • Posts: 98
  • I have a bad feeling about this...
Re: How to extract {TXTLEN:myVariable} for use in an Integer command??
« Reply #2 on: July 26, 2016, 11:01:12 AM »
I knew it.  Of all the things I tried, this obvious one was not one of them.  :\

Works great.

Thanx :)