|
[Magritte] default value again: msg#00270lang.smalltalk.squeak.beginners
Hello, I have folllowing the exercises of Magritte (http://www.lukas-renggli.ch/smalltalk/magritte) but I can't set the default value of nationality field. Here my code: descriptionNationality ^ (MASingleOptionDescription auto: 'nationality' label: 'Nationality' priority: 55) options: #( 'France' 'England' 'Switzerland' 'Span' ); default: 'Switzerland'; beSorted; yourself Somthing strange is that I have 2 selected option blanck. I have try to do this with Title option and it work.: descriptionTitle ^ (MASingleOptionDescription auto: 'title' label: 'Title' priority: 10) options: #( 'Mr.' 'Mrs.' 'Ms.' 'Miss.' ); default: 'Mrs'; yourself. If somone know what is going wrong :-\ ... Thanks.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re[2]: Magritte default single option, Herbert König |
|---|---|
| Next by Date: | Re: Design with Visitor, stéphane ducasse |
| Previous by Thread: | Magritte default single option, math su |
| Next by Thread: | Re: [Magritte] default value again, stéphane ducasse |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |