Split(".",c) what should it return I have issue to save it in which varaible type

Hi I am trying to get directory file names to manipulate and save them in a variable to use later
but I have an issue with the variable type.

@Hossam_Gouda

filename should be of type string

and file is object as of now …please change the type argument property in for loop proprties to string

cheers

1 Like

Thanks your solution is right but I did it in another way

file.Tostring.Split("."c)(0)
1 Like

@Hossam_Gouda

You can do this way as well…basically changing type arguemnt is for the same thing …instead of using .ToString it automatically gives string output

Happy Automation

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.