| 
		        
                
 
 
	Group: Forum Members 	        
    Posts: 153, 
    Visits: 462 
    
 
          
		     | 
				                       
                 
                
                    
			            I am not a VB programmer. I converted the above to C# but getting an error on the highlighted line below on the BO. 
  loBO ) expected
  e.BusinessObject  only assignment, call, increment, decrement and new object expressions can be used as a statement
  private void browseDialog1_RowPopulating(MicroFour.StrataFrame.UI.Windows.Forms.RowPopulatingEventArgs e)
  {
  using (this.tbl_BillTerms_1 loBO = (this.tbl_BillTerms_1)e.BusinessObject)
  {
  var _with1 = loBO;
  if (_with1.ReceivedOn == "1/1/1800")
  {
  e.Values[0].DisplayValue = string.Empty;
  }
  else
  {
  e.Values[0].DisplayValue = _with1.ReceivedOn.ToString("dd-MMM-yyyy");
  }
  if (_with1.FU_CarrierInvoiceDate == "1/1/1800")
  {
  e.Values[3].DisplayValue = string.Empty;
  }
  else
  {
  e.Values[3].DisplayValue = _with1.FU_CarrierInvoiceDate.ToString("dd-MMM-yyyy");
  }
  //-- Show incompleted process in red.
  if (_with1.FU_TotalRecordsCount > _with1.FU_TotalImportedCount)
  {
  e.Values[6].DisplayValue = (_with1.FU_TotalRecordsCount - _with1.FU_TotalImportedCount).ToString("n0");
  e.RowForeColor = System.Drawing.Color.Red;
  }
  }
  }
                  
			            				
			                                 
                     
                                            
                         
                    
                  
             |