I have a String code statement that I want to set with a CSBuilder statement.
It goes like this:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
The string then gets used in the code to load a ListView.AddTwoLinesAndBitmap2(ptTitle,.....)
But I get this syntax error: Types do not match on the line shown above.
How come it gives the syntax error on that line and not the other line: cs.Typeface(Typeface.DEFAULT)?
The appearance should look like this in the ListView:
Phone Types (Home)
			
			It goes like this:
			
				B4X:
			
		
		
		    Dim cs As CSBuilder
    cs.Initialize
    cs.Append("Phone Types ")
    cs.Typeface(Typeface.STYLE_ITALIC)                    '<==== Types do not match
    cs.Append("(").Append($"${phonetype}"$).Append(")")
    cs.Typeface(Typeface.DEFAULT)
    cs.PopAll
    
    Dim ptTitle As String = csBut I get this syntax error: Types do not match on the line shown above.
How come it gives the syntax error on that line and not the other line: cs.Typeface(Typeface.DEFAULT)?
The appearance should look like this in the ListView:
Phone Types (Home)
 
				 
 
		 
 
		 
 
		 
 
		