abdulrahmanok Posted October 22, 2016 Share Posted October 22, 2016 (edited) Welcome All THis is the code : $Write = Filewrite( $Filter, ((stringleft($Tochk1 , 2) + stringright($Tochk1 , 2) / 60)) - ((stringleft($Fromchk1 , 2) + stringright($Fromchk1 , 2) /60 ))&@CRLF) I dont want write valu to file i just want to add it to variable and I tried this many times but failed This is my try: $trymsg =stringleft($Tochk1 , 2) + stringright($Tochk1 , 2) / 60)) - ((stringleft($Fromchk1 , 2) + stringright($Fromchk1 , 2) /60 ))) MsgBox(0,"",$trymsg) Edited October 31, 2016 by abdulrahmanok Link to comment Share on other sites More sharing options...
kylomas Posted October 22, 2016 Share Posted October 22, 2016 adulrahmanok, Try it like this... $trymsg = (StringLeft($Tochk1, 2) + (StringRight($Tochk1, 2) / 60)) - (StringLeft($Fromchk1, 2) + (StringRight($Fromchk1, 2) / 60)) MsgBox(0, "", $trymsg) Depending on what order of operations you want... kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
abdulrahmanok Posted October 31, 2016 Author Share Posted October 31, 2016 On 10/22/2016 at 9:06 AM, kylomas said: adulrahmanok, Try it like this... $trymsg = (StringLeft($Tochk1, 2) + (StringRight($Tochk1, 2) / 60)) - (StringLeft($Fromchk1, 2) + (StringRight($Fromchk1, 2) / 60)) MsgBox(0, "", $trymsg) Depending on what order of operations you want... kylomas Firstly : sorry because I'm too late that's cause I was too busy Secondly : thank you Literally For this code Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now