of choices
lists must match the number of columns, and all choices lists must have the
same number of items, otherwise an exn:fail:contract exception is raised.
Cheers,
Laurent
> Yours,
>
> Original-Nachricht
> > Datum: Thu, 20 Dec 2012 12:44:52 +0100
> > Von: L
20 Dec 2012 12:44:52 +0100
> Von: Laurent
> An: murat demirtas
> CC: racket
> Betreff: Re: [racket] label-string
> Hi,
>
> From the Help Desk:
> (new tab-panel%
> [choices choices]
> [...]
>
> → (is-a?/c tab-panel%)
> choices : (listof label-string
Hi,
>From the Help Desk:
(new tab-panel%
[choices choices]
[...]
→ (is-a?/c tab-panel%)
choices : (listof label-string?)
So it wants a list of label-string.
Then clicking on `label-string?` gives:
"""
(label-string? v) → boolean?
v : any/c
Returns #t if v is a string whose length is l
Hello friends,
how can I convert a vector (define Vec #(1 2 3 4))
to a label-string to make a tab-panel??
I try this
(define tab-panel (new tab-panel%
(parent dialog)
(choices (vector->list Vec
but it fails due to contract violation: expected:
4 matches
Mail list logo