Categories > TinyButStrong general >

Attempt at simple Calendar

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: tcwatts
Date: 2005-07-18
Time: 16:15

Attempt at simple Calendar

Hi,

I'm using the 'Programmed Loops' example from the previous version trying to create a simple table with default $nbr = 30. I'm returning 7 columns with 5 rows (just as per the example), However, on the first colums, I get 1Array, 8Array, 15Array, etc.

I'm wondering if its an incompatability with ver 2 since I copied it clean from the example.

If I can figure that one out, I'm going to attempt doing a simple calendar.

Thanks.
By: tcwatts
Date: 2005-07-19
Time: 09:47

Re: Attempt at simple Calendar

This only happens with ver 2, the earlier versions are alright...
By: Skrol29
Date: 2005-07-19
Time: 13:02

Re: Attempt at simple Calendar

I don't have this example anymore :/
Could you send it to me ?
By: Skrol29
Date: 2005-07-20
Time: 23:51

Re: Attempt at simple Calendar

Ok, thanks for the files. I've found the problem.

TBS < 2.02 => method GetBlockSource() returns the source of a block without the block definition. This was considered as a bug.
TBS >= 2.02 => method GetBlockSource() returns the source of a block, and let the block definition inside.

To have a correct merging with "Example of programmed loops" you can put the block definition tag inside a comment tag.
Example:
 
<!--[blk1;block=tr] -->