PDA

View Full Version : need to help for list converting


ttaahhhh
2008-06-26, 02:00 AM
Dear all,

There are 3 lists,I was puzzled in list converting.

list1:
(ttt : dialog (label "text sample"
(: edit_box (key "a1" label "text1:"))
(: edit_box (key "a2" label "text2:"))
(: edit_box (key "a3" label "text3:"))
(: edit_box (key "a4" label "text4:"))
)
ok_cancel
)

list2:
("TTT : dialog {"
"label = \"text sample\";"
": edit_box { key = \"a1\"; label = \"text1:\"; }"
": edit_box { key = \"a2\"; label = \"text2:\"; }"
": edit_box { key = \"a3\"; label = \"text3:\"; }"
": edit_box { key = \"a4\"; label = \"text4:\"; }"
"ok_cancel;"
"}")

list3:
("TTT : dialog {" "label = \"text sample\";"
": edit_box {" "key = \"a1\";" "label = \"text1:\";" "}"
": edit_box {" "key = \"a2\";" "label = \"text2:\";" "}"
": edit_box {" "key = \"a3\";" "label = \"text3:\";" "}"
": edit_box {" "key = \"a4\";" "label = \"text4:\";" "}"
"ok_cancel;"
"}")

Can anyone to write a function just like (test lst).
when run (test list1),return list2 or list3.

Tks!

Lions60
2008-06-27, 06:23 PM
Maybe I am just not understanding, but i am not sure what you are asking. If you could give a detailed description of what you are wanting then maybe I or someone else can give you some help.

CAB2k
2008-06-27, 08:51 PM
Sure can. :)
See attached.