Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conver text to number?
I am trying to automate the anamorphic lens based on the aspect input. I have a local variable get the text from the aspect text box. If I write the code to compare it if it's greater than 2.30 then stretch the lens. I assume it's not working because it is a text and not a number. Can I convert to a number or do I need to do this in a macro?

If you specifically create a floating point variable you may be able to set it via that text and compare them. But it may not work because of the fact that the right hand side of the comparison will probably get converted to an integer, so the validation of the action might flag it as unconvertable. This is something already slated to deal with in the next version.

If that doesnt work, then just delete the decimal point and compare to integral values like 230 and 178 and such.
Dean Roddey
Explorans limites defectum

Did this get fixed yet?

If not how do I remove the decimal?


I don't think it was. To remove the decimal do a Find for the decimal point, then a Cut to remove that character.
Dean Roddey
Explorans limites defectum

Possibly Related Threads…
Thread Author Replies Views Last Post
  Week Number RTV znelbok 1 171 10-22-2019, 06:58 PM
Last Post: Dean Roddey
  Reading Text File of Google Calendar Entries kblagron 30 2,666 06-10-2019, 04:31 PM
Last Post: kblagron
  Question on Formatting of Variable Text kblagron 2 1,360 09-07-2018, 08:52 PM
Last Post: kblagron
  Embedded Variable in Text zra 2 1,221 05-07-2018, 09:59 AM
Last Post: zra
  Text To Speech RichardU 3 1,519 01-10-2018, 12:30 PM
Last Post: RichardU
  Generate Random Number in a Trigger batwater 1 981 12-10-2017, 12:43 PM
Last Post: Dean Roddey
  Field Boolean Text Widget issue greymatter 5 3,413 08-26-2017, 04:45 PM
Last Post: greymatter
  Pop Up Text Transparent sic0048 10 4,531 08-18-2017, 01:45 PM
Last Post: Dean Roddey
  Text Entry pjgregory 5 3,307 03-15-2017, 08:35 AM
Last Post: Dean Roddey
  Concatenated field text widgets? dlmorgan999 6 3,698 03-09-2017, 02:54 PM
Last Post: dlmorgan999

Forum Jump:

Users browsing this thread: 1 Guest(s)