Particle Posted December 31, 2007 Share Posted December 31, 2007 Is this possible? If not, then how can I make this happen...? If StringSplit($Array[$i],",") = True Then $tmp = StringSplit($Array[$i],",") EndIf Link to comment Share on other sites More sharing options...
herewasplato Posted January 1, 2008 Share Posted January 1, 2008 ...Is this possible?...No. because StringSplit does not return a True/False...If not, then how can I make this happen...?Make what happen. Please elaborate. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Supa Ben Posted January 1, 2008 Share Posted January 1, 2008 Is this possible? If not, then how can I make this happen...? If StringSplit($Array[$i],",") = True Then $tmp = StringSplit($Array[$i],",") EndIf Do you mean this by the code "If I can do this stringsplit then, do the stringsplit" If thats the case then use this. $tmp = StringSplit($Array[$i],",") If @error Then Msgbox(0,"","Cant do stringsplit") Else Msgbox(0,"","Success") EndIf If it cant do it then it will set @error so if that happens it cant be done. Link to comment Share on other sites More sharing options...
Particle Posted January 1, 2008 Author Share Posted January 1, 2008 Make what happen. Please elaborate.How would I make the program detect if there is a string split in the line from a file and conduct what it needs to do if it's true, otherwise skip the process if there is no string splitting needed. Link to comment Share on other sites More sharing options...
herewasplato Posted January 1, 2008 Share Posted January 1, 2008 If StringInStr($Array[$i], ",") = 0 Then ContinueLoop Else $tmp = StringSplit($Array[$i], ",") EndIf [size="1"][font="Arial"].[u].[/u][/font][/size] 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