Jump to content

Get Valu of (String Left) (Solved)


Recommended Posts

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 by abdulrahmanok
Link to comment
Share on other sites

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

  • 2 weeks later...
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 o:)

Secondly : thank you Literally For this code :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...