How can I remove this error, plz help?
Please change the expression as
Thanks For the reply @nimin but this ain’t working.
Could you please share the error that you are getting now?
It’s still the same.
Change strFileExtension Data type from genericvalue to string and it should be
strFileExtension = Path.GetExtension(strFilePath)
what is the datatype of your strFilePath variable? if its Generic value change it to string
make strFileExtension variable string variable
Your strFilePath is Generic type variable thats wat you are getting that error. instead of strFilePath use just Path.Extension(“path”)
As you said I did the same but nothing changed.
And Variable type is string.
It’s not working.
Based on your several screenshot, you are assigning
strFileExtension = strFilePath.GetExtension(strFileName) -this is incorrect
It should be
strFileExtension = Path.GetExtension(strFileName) - (Path is a class, not strFilePath)
Pls find the sample
FileName is String variable
strFileExtension is String varible
You are using strFilePath instead of Path
Thank you, all of you for the reply, but these methods aren’t working. I tried each and every method.
Thank You so much to all of you for your time but i got the solution and here it is.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.