Set the template for the stocker tickers.
dbQP Abbr: stt
Version: EP, Gold
Namespace:
TornadoVersion: EP, Gold
Assembly: Tornado (in Tornado.dll) Version: 12.6.0.9 (1.0.0.0)
Syntax
| C# |
|---|
public string dbStockTickerTemplate { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property dbStockTickerTemplate As String |
Field Value
Obj.dbStockTickerTemplate = "HTML template with [[S]] elements."
Remarks
- All the EOL markers and double quote wrappers will be ignored and ticker values will replace the macros [[S]] in a row manner.
- Normally, header is set by user in the template. In that case, disable caption by setting cap=none.
- [[S:###,###]] is an option to format the cell conatining a number. It is primary for volume or other big numbers. User must specify the appropriate column cells to format.
Examples
Dim Rm As New Tornado.z Rm.dbUnit = 2 Rm.dbStockTicker = "Symbol=GM+AAPL+CSCO | format=99| cap=none" Dim t As String = "<table border=1><tr><th>SYM</th><th>LAST</th><th>CHANGE</th>" t = t & "<th>VOL</th></tr><tr><td>[[S]]</td><td>[[S]]</td><td>[[S]]</td><td align=right>" t = t & "[[S]]</td></tr><tr><td>[[S]]</td><td>[[S]]</td><td>[[S]]</td>" t = t & "<td align=right>[[S]]</td></tr><tr><td>[[S]]</td><td>[[S]]</td><td>[[S]]</td>" t = t & "<td align=right>[[S]]</td></tr></table>" Rm.dbStockTickerTemplate = t Response.Write(Rm.ASPdbGetStockTicker())