list - Racket - How to get value from text-field in scheme -
i have questions mit scheme language.
i use drracket editor , racket langage (#lang racket/gui)
1) how value text-field ?
answer: (send mytext-field get-value) ---> ok this
2) how lock text-field
3) how convert text getting 1) "list"
for example if user enter : ------------------------ | '(a b b c d u) | ------------------------ how value , convert liste have following result: '(a b b c d u)
4) how convert text getting 1) "atom"
for example if user enter : ------------------------ | 'a | ------------------------ how value , convert "atom" have following result: 'a
5) how include drracket file contain process functions (business layer) gui(presentation layer) procedure file ?
for 3) , 4).
> (read (open-input-string "(a b c d e f)")) '(a b c d e f) > (read (open-input-string "'(a b c d e f)")) ''(a b c d e f) > (read (open-input-string "a")) 'a > (read (open-input-string "'a")) ''a
note: instead of putting multiple questions 1 post, split them. question-and-answer format on site handles single, focused questions better.
Comments
Post a Comment