tags:

views:

50

answers:

1

I am trying to create rectangles and the number of rectangles is depend on data passed from database. for example, if number = 5, the program will generate 5 rectangles. Also, these rectangles must be able to follow my rectangle property settings, like height, width,color...put them in one line at the end.

is there a way to do that?

I am using WPF and C#.

Thank you.

+5  A: 

This should cover several languages:

<?javascript
    #include(iostream.h);
    include("/cgi-bin/draw.pl");
    set $rect_width = "500";
    var rect_height = "200px";
    rect_color = new Color('red');
    int %rect_count = database->connect('localhost','user','password').getValue['count'];

    while (for $i, $i<%rect_count; i++) {
        cout << '<area shape="rect" width="{$rect_width}" height="<? echo rect_height ?>">' << endl;
    }
?>
jnpcl
I'll give you $100 if you can make this compile/run.
Rocket
dats funny as hell
dotjoe