jahjah Posted April 21, 2011 Share Posted April 21, 2011 Hi,everybody This is my trouble I wanna take the value in a row but i wanna only take the word before the dot Here is a example This is my row value "Autoit forum is the best.com" I wanna put in a variable only "autoit forum is the best" without the ".com" $package2 = $oExcel3.Cells($search_cell.Row,3).Value GUICtrlSetData ( $input7, $package2) Thanks a lot for your help Link to comment Share on other sites More sharing options...
MrMitchell Posted April 21, 2011 Share Posted April 21, 2011 (edited) I think you can use a regular expression statement... after "$package2 = " and before "GUICtrlSetData". There could be an easier way but why can't I think of it??$aTmp = StringRegExp($package2, "(.*)\.", 3)ConsoleWrite($aTmp[0]) Edited April 21, 2011 by MrMitchell 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