Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conver text to number?
#1
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?

John
Reply
#2
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
Reply
#3
Dean,

Did this get fixed yet?

If not how do I remove the decimal?

Thanks,

John
Reply
#4
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Underline of Static Text kblagron 1 248 03-04-2020, 01:01 PM
Last Post: Dean Roddey
  Week Number RTV znelbok 1 332 10-22-2019, 06:58 PM
Last Post: Dean Roddey
  Reading Text File of Google Calendar Entries kblagron 30 4,462 06-10-2019, 04:31 PM
Last Post: kblagron
  Question on Formatting of Variable Text kblagron 2 1,713 09-07-2018, 08:52 PM
Last Post: kblagron
  Embedded Variable in Text zra 2 1,496 05-07-2018, 09:59 AM
Last Post: zra
  Text To Speech RichardU 3 1,762 01-10-2018, 12:30 PM
Last Post: RichardU
  Generate Random Number in a Trigger batwater 1 1,110 12-10-2017, 12:43 PM
Last Post: Dean Roddey
  Field Boolean Text Widget issue greymatter 5 3,891 08-26-2017, 04:45 PM
Last Post: greymatter
  Pop Up Text Transparent sic0048 10 5,237 08-18-2017, 01:45 PM
Last Post: Dean Roddey
  Text Entry pjgregory 5 3,695 03-15-2017, 08:35 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)