Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
{do } versus plain code expression
05-31-2012, 11:07 PM,
{do } versus plain code expression
Today I was working inside a PlainDocument and added a second loop to pass through some data.

Between the two loops, I decided to place a blank row of empty strings.

So I dropped in some code to do just that between two {for } iterator expressions.

Boom! Busted applet. Could not add my Visual to a PlainDocument which already held an object.

Hmmm ....

And there it was: adding a row-prototype to that table was returning a value !

Answer: wrap that expression in a {do } expression.

Bong ! Working applet.

You can see the result at

and there a few rows down is that blank row ...

And, yes, this is a PlainDocument ... the links at the bottom of the page are in the HTML wrapper ... for now.

Robert Shiplett, Curlr
Fredericton NB


Messages In This Thread
{do } versus plain code expression - by RobertShiplett - 05-31-2012, 11:07 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  JsonValue versus JsonObject RobertShiplett 0 2,335 05-28-2012, 08:19 AM
Last Post: RobertShiplett
Forum Jump:

Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
INSERT INTO mybb_threadviews (tid) VALUES('512')