Hi,
Can you help me determine what change needs to be made to this formula, in order to have the "," between the City and State fields NOT print when there is nothing in any of the address, city or state fields?
I can always rely on Tek-Tips for the solution to all my Crytstal Problems.
Thank You,
Lisa
StringVar BT_Address1 :="";
StringVar BT_Address2 :="";
StringVar BT_Address3 :="";
if Trim({SO_26CRWInvoiceDataHeader.BillToAddress1}) <> "" then BT_Address1 := {SO_26CRWInvoiceDataHeader.BillToAddress1} + chr(13) + chr(10);
if Trim({SO_26CRWInvoiceDataHeader.BillToAddress2}) <> "" then BT_Address2 := {SO_26CRWInvoiceDataHeader.BillToAddress2} + chr(13) + chr(10);
//if Trim({SO_26CRWInvoiceDataHeader.BillToAddress3}) <> "" then BT_Address3 := {SO_26CRWInvoiceDataHeader.BillToAddress3} + chr(13) + chr(10);
// IF USING BILL TO ADDRESS LINE 3 REMOVE THE // FROM THE ABOVE LINE
BT_Address1 + BT_Address2 + BT_Address3 + trim({SO_26CRWInvoiceDataHeader.BillToCity}) + ", " + {SO_26CRWInvoiceDataHeader.BillToState} + " " + {SO_26CRWInvoiceDataHeader.BillToZipCode}
Can you help me determine what change needs to be made to this formula, in order to have the "," between the City and State fields NOT print when there is nothing in any of the address, city or state fields?
I can always rely on Tek-Tips for the solution to all my Crytstal Problems.
Thank You,
Lisa
StringVar BT_Address1 :="";
StringVar BT_Address2 :="";
StringVar BT_Address3 :="";
if Trim({SO_26CRWInvoiceDataHeader.BillToAddress1}) <> "" then BT_Address1 := {SO_26CRWInvoiceDataHeader.BillToAddress1} + chr(13) + chr(10);
if Trim({SO_26CRWInvoiceDataHeader.BillToAddress2}) <> "" then BT_Address2 := {SO_26CRWInvoiceDataHeader.BillToAddress2} + chr(13) + chr(10);
//if Trim({SO_26CRWInvoiceDataHeader.BillToAddress3}) <> "" then BT_Address3 := {SO_26CRWInvoiceDataHeader.BillToAddress3} + chr(13) + chr(10);
// IF USING BILL TO ADDRESS LINE 3 REMOVE THE // FROM THE ABOVE LINE
BT_Address1 + BT_Address2 + BT_Address3 + trim({SO_26CRWInvoiceDataHeader.BillToCity}) + ", " + {SO_26CRWInvoiceDataHeader.BillToState} + " " + {SO_26CRWInvoiceDataHeader.BillToZipCode}