If activity error 2

i am giving this condition inside if activity

not String.IsNullOrWhiteSpace(in_TransactionItem(0)(“First Name”).tostring) And (in_TransactionItem(1)("Last Name ").tostring)

and its throwing me error as

Argument ‘Condition’: BC30512: Option Strict On disallows implicit conversions from ‘String’ to ‘Boolean’. The selected value is incompatible with the property type.

how to resolve this?

Hi @Pooja_Kanwar

Try this:

Not String.IsNullOrWhiteSpace(in_TransactionItem(0)("First Name").ToString) AndAlso Not String.IsNullOrWhiteSpace(in_TransactionItem(1)("Last Name").ToString)

Hope it helps!!

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