Hi, I'm getting the following error message when I compile my program. I
tried different things but it's not working. Can someone help me look at
this and tell me what I've done wrong? Many thanks in adavnace.
error:
C:\Progs\ARCommand2003\InvoicePrePrintedContract\f rmPreview.cs(387):
Operator '||' cannot be applied to operands of type 'bool' and 'string'
source = m_dsLocal.Tables["Source"].Rows[0]["Source"].ToString();
SourcePrefix = source.Substring(0,2); // Prefix of pay sources
string PrivateInvoiceAllowBillInsurance, PrivateInvoiceAllowBillWorkComp;
PrivateInvoiceAllowBillInsurance =
m_dsLocal.Tables["Global"].Rows[0]["PrivateInvoiceAllowBillInsurance"].ToString().Trim();
PrivateInvoiceAllowBillWorkComp =
m_dsLocal.Tables["Global"].Rows[0]["PrivateInvoiceAllowBillWorkComp"].ToString().Trim();
if (((SourcePrefix == "10") || (SourcePrefix=="11")|| (SourcePrefix=="20")
|| (SourcePrefix=="30"))
||(((SourcePrefix == "50")||(SourcePrefix = "60")) &&
(PrivateInvoiceAllowBillInsurance=="0"))
||((SourcePrefix =="70") && (PrivateInvoiceAllowBillWorkComp="0")))