Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

Path.GetFileName(item) shows compile error "Object strict on disallows implicit conversion from Object to String

$
0
0

@PavithraSundaram wrote:

Hola People!

I am trying to copy a file from folder to another folder, with a condition that contains (abc*.xlsx).

I assigned the path of the file to a string. and using a for loop.
Inside my loop, I have an if loop, that checks Path.GetFileName(item).contains(abc*.xlsx) -> it shows a compile error as Object strict on disallows implicit conversion from Object to String.

Can someone pls help??

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>