GenoPro Home
GenoPro Home  |  SDK Home  |  Report Generator  |  Support  |  Search  |  Help  |  Site Map

Skip Navigation Links.

Report.WriteT3Br Method

The WriteT3Br is the most popular method to create reports. Its behavior is identical to WriteT3, however the <br /> tag is appended at the end of the the last parameter. Of course, the <br /> tag is written only if the middle parameter is non empty.

Syntax:

Report.WriteT3Br(str1, str2 [, str3])

In summary, the WriteT3 method is the equivalent of the following piece of code:

If (str2 <> "") Then
	Report.Write str1 & Util.HtmlEncode(str2) & str3 & "<br />"
End If

or

If (str2 <> "") Then
	Report.Write str1
	Report.Write Util.HtmlEncode(str2)
	Report.Write str3
	Report.Write "<br />"
End If

Usage:
The WriteT3Br is useful when you want to output text surrounded by HTML tags on a single line.

Report.WriteT3Br "First Name: <b>", i.name.first, "</b>"

Examples:

Report.WriteT3Br "Permanent ID: ", i.id		' No third parameter
Report.WriteT3Br "Number of Children: <b>", i.children.count, "</b>"

See Also:
WriteT3
Write3
WriteText3
Util.HtmlEncode

 

 

Copyright © 1998-2024. All rights reserved. GenoPro® and the GenoPro logo are registered trademarks.