Get From Clipboard 取值为空时报错,如何处理?

当Clipboard中的值为空时,使用Get From Clipboard控件报错:Get From Clipboard:One or More errors occurred。如何实现如果值为空,则结果变量值为""。

Hi @borriy

Use String.IsNullorEmpty(StrVar)

Thanks
Ashwin S

Thank you for your reply。
Before geting the Value of the variable is Error。
Therefore, this expression cannot be used to judge 。

Hi @borriy

Use get from clipboard strvalue and then set the condition as

String.IsNullorEmpty(StrVar)
and then else pass the strvar

Thanks
Ashwin S

1 Like

Thank you very much
Let me have a try.

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