Parker Software Ltd Homepage
Forum Home Forum Home > ThinkAutomation Business Process Automation > Scripting
  New Posts New Posts RSS Feed - Converting Units from an extracted field
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Converting Units from an extracted field

 Post Reply Post Reply Page  <12
Author
Message
AlexUhde View Drop Down
New User
New User


Joined: 26 Dec 2017
Location: Brisbane
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexUhde Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jun 2018 at 12:44am
Just as a reference for others.
this is the code I got to work:

Sub Main()
    Dim Data_U_G As Single
    Data_U_G = CSng(AccountVariable("Data_Usage"))
    Data_U_G = Data_U_G / 1000000000
    AddToLog("Data used in GB = " & Data_U_G)
    AccountVariable("Data_Used_GB") = Data_U_G
End Sub

I also passed the extracted value in a new variable.


This got me the result I was after!
Thank you Jim for your help.

Kind regards,
Alex
Back to Top
 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.05
Copyright ©2001-2016 Web Wiz Ltd.

This page was generated in 0.035 seconds.