Skip to content

Placing sketch values into a table #402

Answered by ac1176
ac1176 asked this question in How can I?
Discussion options

You must be logged in to vote

Rather than trying to describe the whole <table> in one single ACElement definition, I can split HTML table into multiple ACElements. At the point at which the sketch variable needs to be appear in the relevant table cell, the ACElement <td> statement is cut short and an ACText is inserted with a blank value. After the ACText has been defined the rest of the HTML table in the next ACElement. Rinse and repeat until the whole table is built up:

ACElement (table_r1, "<table><tr><td>Modem response:</td><td>");
ACText (table_r1dat, "");
ACElement(table_r2, "</td></tr><tr><td>Signal strength:</td><td>");
ACText (table_r2dat, "");
ACElement (table_r3, "</td></tr><tr><td>SIM card:</td><td>");
ACT…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Hieromon
Comment options

@ac1176
Comment options

Answer selected by Hieromon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants