{"id":167702,"student_id":1981,"content":"{\"files\":{\"src/appinventor/ai_appinventor/IND301/Screen1.bky\":\"\\u003cxml xmlns=\\\"http://www.w3.org/1999/xhtml\\\"\\u003e\\n \\u003cblock type=\\\"global_declaration\\\" id=\\\"K+qpmb*~XDud:Mxmqj)3\\\" x=\\\"0\\\" y=\\\"0\\\"\\u003e\\n \\u003cfield name=\\\"NAME\\\"\\u003e結束\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"math_number\\\" id=\\\"[#%TPe?ue(rWt]#wV1Wj\\\"\\u003e\\n \\u003cfield name=\\\"NUM\\\"\\u003e0\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003cblock type=\\\"global_declaration\\\" id=\\\"H]}Z?`q\\\\!q6dp5=/PU?(M\\\" x=\\\"0\\\" y=\\\"53\\\"\\u003e\\n \\u003cfield name=\\\"NAME\\\"\\u003e初始\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"math_number\\\" id=\\\"XyY-d,q\\\\!cQeRe8,r3*[z\\\"\\u003e\\n \\u003cfield name=\\\"NUM\\\"\\u003e0\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003cblock type=\\\"component_event\\\" id=\\\"hlWucx,ZO%ECE*:*M+0r\\\" x=\\\"0\\\" y=\\\"106\\\"\\u003e\\n \\u003cmutation component_type=\\\"Button\\\" instance_name=\\\"Button1\\\" event_name=\\\"Click\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003eButton1\\u003c/field\\u003e\\n \\u003cstatement name=\\\"DO\\\"\\u003e\\n \\u003cblock type=\\\"controls_if\\\" id=\\\"jM@zY10_}PQZG*7DO+je\\\"\\u003e\\n \\u003cmutation else=\\\"1\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cvalue name=\\\"IF0\\\"\\u003e\\n \\u003cblock type=\\\"logic_or\\\" id=\\\"*@e=y,B0xCg{PXlD{.n?\\\"\\u003e\\n \\u003cfield name=\\\"OP\\\"\\u003eOR\\u003c/field\\u003e\\n \\u003cvalue name=\\\"A\\\"\\u003e\\n \\u003cblock type=\\\"logic_or\\\" id=\\\"NHoSets#]gxaZyU9Vsve\\\"\\u003e\\n \\u003cfield name=\\\"OP\\\"\\u003eOR\\u003c/field\\u003e\\n \\u003cvalue name=\\\"A\\\"\\u003e\\n \\u003cblock type=\\\"logic_compare\\\" id=\\\"IU@Uzj?f{6vT$#Sj*zV_\\\"\\u003e\\n \\u003cfield name=\\\"OP\\\"\\u003eEQ\\u003c/field\\u003e\\n \\u003cvalue name=\\\"A\\\"\\u003e\\n \\u003cblock type=\\\"component_set_get\\\" id=\\\"I0pAARoJIVJn[~9\\\\!y{bH\\\"\\u003e\\n \\u003cmutation component_type=\\\"TextBox\\\" set_or_get=\\\"get\\\" property_name=\\\"Text\\\" is_generic=\\\"false\\\" instance_name=\\\"TextBox_起始值\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003eTextBox_起始值\\u003c/field\\u003e\\n \\u003cfield name=\\\"PROP\\\"\\u003eText\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"B\\\"\\u003e\\n \\u003cblock type=\\\"text\\\" id=\\\"BR7wH:^?lFC^*p,P3-U*\\\"\\u003e\\n \\u003cfield name=\\\"TEXT\\\"\\u003e\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"B\\\"\\u003e\\n \\u003cblock type=\\\"logic_compare\\\" id=\\\"iaf=0p,A5{Xh*RCQt7.{\\\"\\u003e\\n \\u003cfield name=\\\"OP\\\"\\u003eEQ\\u003c/field\\u003e\\n \\u003cvalue name=\\\"A\\\"\\u003e\\n \\u003cblock type=\\\"component_set_get\\\" id=\\\"9V7or)iF3IT~(8duWJO+\\\"\\u003e\\n \\u003cmutation component_type=\\\"TextBox\\\" set_or_get=\\\"get\\\" property_name=\\\"Text\\\" is_generic=\\\"false\\\" instance_name=\\\"TextBox_結束值\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003eTextBox_結束值\\u003c/field\\u003e\\n \\u003cfield name=\\\"PROP\\\"\\u003eText\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"B\\\"\\u003e\\n \\u003cblock type=\\\"text\\\" id=\\\";N::xMrGkQGAza7}zNIb\\\"\\u003e\\n \\u003cfield name=\\\"TEXT\\\"\\u003e\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"B\\\"\\u003e\\n \\u003cblock type=\\\"logic_compare\\\" id=\\\"Oq[F1#r_c7MJ9T\\\\!hcHe/\\\"\\u003e\\n \\u003cfield name=\\\"OP\\\"\\u003eEQ\\u003c/field\\u003e\\n \\u003cvalue name=\\\"A\\\"\\u003e\\n \\u003cblock type=\\\"component_set_get\\\" id=\\\"_X-/CLH{h/y[U?.{M+o4\\\"\\u003e\\n \\u003cmutation component_type=\\\"TextBox\\\" set_or_get=\\\"get\\\" property_name=\\\"Text\\\" is_generic=\\\"false\\\" instance_name=\\\"TextBox_抽籤數量\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003eTextBox_抽籤數量\\u003c/field\\u003e\\n \\u003cfield name=\\\"PROP\\\"\\u003eText\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"B\\\"\\u003e\\n \\u003cblock type=\\\"text\\\" id=\\\"kUNW.n]DwE[l*u~26#Ub\\\"\\u003e\\n \\u003cfield name=\\\"TEXT\\\"\\u003e\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cstatement name=\\\"DO0\\\"\\u003e\\n \\u003cblock type=\\\"component_method\\\" id=\\\"K7p#U*8216_K@=*?vPCT\\\"\\u003e\\n \\u003cmutation component_type=\\\"Notifier\\\" method_name=\\\"ShowMessageDialog\\\" is_generic=\\\"false\\\" instance_name=\\\"Notifier1\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003eNotifier1\\u003c/field\\u003e\\n \\u003cvalue name=\\\"ARG0\\\"\\u003e\\n \\u003cblock type=\\\"text\\\" id=\\\"#`~1WIlv3S@P(ERq-W`O\\\"\\u003e\\n \\u003cfield name=\\\"TEXT\\\"\\u003e欄位不可為空\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"ARG1\\\"\\u003e\\n \\u003cblock type=\\\"text\\\" id=\\\"LD]jHakf\\\\!3(Nmfzp~Rg%\\\"\\u003e\\n \\u003cfield name=\\\"TEXT\\\"\\u003e錯誤\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"ARG2\\\"\\u003e\\n \\u003cblock type=\\\"text\\\" id=\\\"24G.6gre!yhdiz%fRm=l\\\"\\u003e\\n \\u003cfield name=\\\"TEXT\\\"\\u003eok\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003c/statement\\u003e\\n \\u003cstatement name=\\\"ELSE\\\"\\u003e\\n \\u003cblock type=\\\"lexical_variable_set\\\" id=\\\".!77/6gQ91zOMw,,3LMk\\\"\\u003e\\n \\u003cfield name=\\\"VAR\\\"\\u003eglobal 抽籤次數\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"component_set_get\\\" id=\\\"mu7lq?o;cv4P9^CJx~o[\\\"\\u003e\\n \\u003cmutation component_type=\\\"TextBox\\\" set_or_get=\\\"get\\\" property_name=\\\"Text\\\" is_generic=\\\"false\\\" instance_name=\\\"TextBox_抽籤數量\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003eTextBox_抽籤數量\\u003c/field\\u003e\\n \\u003cfield name=\\\"PROP\\\"\\u003eText\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cnext\\u003e\\n \\u003cblock type=\\\"lexical_variable_set\\\" id=\\\"1v1%J*Pj{ehO+K6mMP]y\\\"\\u003e\\n \\u003cfield name=\\\"VAR\\\"\\u003eglobal 初始\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"component_set_get\\\" id=\\\"*!ME7,G_-DfZ?A8Ww~:y\\\"\\u003e\\n \\u003cmutation component_type=\\\"TextBox\\\" set_or_get=\\\"get\\\" property_name=\\\"Text\\\" is_generic=\\\"false\\\" instance_name=\\\"TextBox_起始值\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003eTextBox_起始值\\u003c/field\\u003e\\n \\u003cfield name=\\\"PROP\\\"\\u003eText\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cnext\\u003e\\n \\u003cblock type=\\\"lexical_variable_set\\\" id=\\\"q3g+%[yi.HKFLZ/D@-JS\\\"\\u003e\\n \\u003cfield name=\\\"VAR\\\"\\u003eglobal 結束\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"component_set_get\\\" id=\\\"7!bqCR-N_6;OrZwS]y7\\\\!\\\"\\u003e\\n \\u003cmutation component_type=\\\"TextBox\\\" set_or_get=\\\"get\\\" property_name=\\\"Text\\\" is_generic=\\\"false\\\" instance_name=\\\"TextBox_結束值\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003eTextBox_結束值\\u003c/field\\u003e\\n \\u003cfield name=\\\"PROP\\\"\\u003eText\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cnext\\u003e\\n \\u003cblock type=\\\"controls_forRange\\\" id=\\\"vJ!Gd;v@DYnER+MQQ=[h\\\"\\u003e\\n \\u003cfield name=\\\"VAR\\\"\\u003e數字\\u003c/field\\u003e\\n \\u003cvalue name=\\\"START\\\"\\u003e\\n \\u003cblock type=\\\"math_number\\\" id=\\\"}J_yPcmu7(UGaUq$vY`!\\\"\\u003e\\n \\u003cfield name=\\\"NUM\\\"\\u003e1\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"END\\\"\\u003e\\n \\u003cblock type=\\\"lexical_variable_get\\\" id=\\\"x*~]e30\\\\!U7v~r02s:vnU\\\"\\u003e\\n \\u003cfield name=\\\"VAR\\\"\\u003eglobal 抽籤次數\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"STEP\\\"\\u003e\\n \\u003cblock type=\\\"math_number\\\" id=\\\"Gg3YEf_s1ukUGjlMWgC)\\\"\\u003e\\n \\u003cfield name=\\\"NUM\\\"\\u003e1\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cstatement name=\\\"DO\\\"\\u003e\\n \\u003cblock type=\\\"lists_add_items\\\" id=\\\"9z}`4reRRcO_](3w:8;:\\\"\\u003e\\n \\u003cmutation items=\\\"1\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cvalue name=\\\"LIST\\\"\\u003e\\n \\u003cblock type=\\\"lexical_variable_get\\\" id=\\\"zkm,P~57dwyp?DOnWm4u\\\"\\u003e\\n \\u003cfield name=\\\"VAR\\\"\\u003eglobal 抽籤清單\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"ITEM0\\\"\\u003e\\n \\u003cblock type=\\\"math_random_int\\\" id=\\\"gUhKC*C]0)WhOTp!qxU^\\\"\\u003e\\n \\u003cvalue name=\\\"FROM\\\"\\u003e\\n \\u003cblock type=\\\"lexical_variable_get\\\" id=\\\"6xtVKJe540a%dEIynRXF\\\"\\u003e\\n \\u003cfield name=\\\"VAR\\\"\\u003eglobal 初始\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cvalue name=\\\"TO\\\"\\u003e\\n \\u003cblock type=\\\"lexical_variable_get\\\" id=\\\"zIWmZ:%;l)4wk.a@S~ZX\\\"\\u003e\\n \\u003cfield name=\\\"VAR\\\"\\u003eglobal 結束\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cnext\\u003e\\n \\u003cblock type=\\\"component_set_get\\\" id=\\\"\\\\!W#m8!rsBcSno}YZ,z@4\\\"\\u003e\\n \\u003cmutation component_type=\\\"Spinner\\\" set_or_get=\\\"set\\\" property_name=\\\"Visible\\\" is_generic=\\\"false\\\" instance_name=\\\"下拉式選單1\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003e下拉式選單1\\u003c/field\\u003e\\n \\u003cfield name=\\\"PROP\\\"\\u003eVisible\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"logic_false\\\" id=\\\"[x`@@lG$)Cr#0$s42vv0\\\"\\u003e\\n \\u003cfield name=\\\"BOOL\\\"\\u003eTRUE\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003cnext\\u003e\\n \\u003cblock type=\\\"component_method\\\" id=\\\"+/h%d*e]YX\\\\!%oAP9_HY6\\\"\\u003e\\n \\u003cmutation component_type=\\\"Spinner\\\" method_name=\\\"DisplayDropdown\\\" is_generic=\\\"false\\\" instance_name=\\\"下拉式選單1\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003e下拉式選單1\\u003c/field\\u003e\\n \\u003cnext\\u003e\\n \\u003cblock type=\\\"component_set_get\\\" id=\\\";=g5ym{%)+=)mhq)X9P:\\\"\\u003e\\n \\u003cmutation component_type=\\\"Spinner\\\" set_or_get=\\\"set\\\" property_name=\\\"Elements\\\" is_generic=\\\"false\\\" instance_name=\\\"下拉式選單1\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003e下拉式選單1\\u003c/field\\u003e\\n \\u003cfield name=\\\"PROP\\\"\\u003eElements\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"lexical_variable_get\\\" id=\\\"!#!%%%lXa!O%?/:,voE.\\\"\\u003e\\n \\u003cfield name=\\\"VAR\\\"\\u003eglobal 抽籤清單\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003c/next\\u003e\\n \\u003c/block\\u003e\\n \\u003c/next\\u003e\\n \\u003c/block\\u003e\\n \\u003c/next\\u003e\\n \\u003c/block\\u003e\\n \\u003c/statement\\u003e\\n \\u003c/block\\u003e\\n \\u003c/next\\u003e\\n \\u003c/block\\u003e\\n \\u003c/next\\u003e\\n \\u003c/block\\u003e\\n \\u003c/next\\u003e\\n \\u003c/block\\u003e\\n \\u003c/statement\\u003e\\n \\u003c/block\\u003e\\n \\u003c/statement\\u003e\\n \\u003c/block\\u003e\\n \\u003cblock type=\\\"global_declaration\\\" id=\\\"RI6g)-Z56#t~qh!~e(M(\\\" x=\\\"0\\\" y=\\\"671\\\"\\u003e\\n \\u003cfield name=\\\"NAME\\\"\\u003e抽籤次數\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"math_number\\\" id=\\\";5]Z2ihQ)(,hAeKi}gAw\\\"\\u003e\\n \\u003cfield name=\\\"NUM\\\"\\u003e0\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003cblock type=\\\"global_declaration\\\" id=\\\"D@Vg+w^jwMdW6,g\\\\!pzq]\\\" x=\\\"0\\\" y=\\\"724\\\"\\u003e\\n \\u003cfield name=\\\"NAME\\\"\\u003e抽籤清單\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"lists_create_with\\\" id=\\\"LHGv(.eC4B]K(c1p])K2\\\"\\u003e\\n \\u003cmutation items=\\\"0\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003cblock type=\\\"component_event\\\" id=\\\"i09bCA~NbKrr}5E^%0h*\\\" x=\\\"0\\\" y=\\\"777\\\"\\u003e\\n \\u003cmutation component_type=\\\"Form\\\" instance_name=\\\"Screen1\\\" event_name=\\\"Initialize\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003eScreen1\\u003c/field\\u003e\\n \\u003cstatement name=\\\"DO\\\"\\u003e\\n \\u003cblock type=\\\"component_set_get\\\" id=\\\"Hy%!XT)wY~/4o3U6Ku56\\\"\\u003e\\n \\u003cmutation component_type=\\\"Spinner\\\" set_or_get=\\\"set\\\" property_name=\\\"Visible\\\" is_generic=\\\"false\\\" instance_name=\\\"下拉式選單1\\\"\\u003e\\u003c/mutation\\u003e\\n \\u003cfield name=\\\"COMPONENT_SELECTOR\\\"\\u003e下拉式選單1\\u003c/field\\u003e\\n \\u003cfield name=\\\"PROP\\\"\\u003eVisible\\u003c/field\\u003e\\n \\u003cvalue name=\\\"VALUE\\\"\\u003e\\n \\u003cblock type=\\\"logic_false\\\" id=\\\"-s0u[`:YPKia7KFwXHva\\\"\\u003e\\n \\u003cfield name=\\\"BOOL\\\"\\u003eFALSE\\u003c/field\\u003e\\n \\u003c/block\\u003e\\n \\u003c/value\\u003e\\n \\u003c/block\\u003e\\n \\u003c/statement\\u003e\\n \\u003c/block\\u003e\\n \\u003cyacodeblocks ya-version=\\\"167\\\" language-version=\\\"21\\\"\\u003e\\u003c/yacodeblocks\\u003e\\n\\u003c/xml\\u003e\",\"src/appinventor/ai_appinventor/IND301/Screen1.scm\":\"#|\\n$JSON\\n{\\\"authURL\\\":[\\\"*UNKNOWN*\\\",\\\"localhost\\\",\\\"koding.school\\\"],\\\"YaVersion\\\":\\\"167\\\",\\\"Source\\\":\\\"Form\\\",\\\"Properties\\\":{\\\"$Name\\\":\\\"Screen1\\\",\\\"$Type\\\":\\\"Form\\\",\\\"$Version\\\":\\\"23\\\",\\\"AppName\\\":\\\"IND301\\\",\\\"Scrollable\\\":\\\"True\\\",\\\"Title\\\":\\\"\\\\u62bd\\\\u7c64\\\",\\\"Uuid\\\":\\\"0\\\",\\\"$Components\\\":[{\\\"$Name\\\":\\\"TextBox_\\\\u8d77\\\\u59cb\\\\u503c\\\",\\\"$Type\\\":\\\"TextBox\\\",\\\"$Version\\\":\\\"5\\\",\\\"FontSize\\\":\\\"14\\\",\\\"Width\\\":\\\"-2\\\",\\\"Hint\\\":\\\"\\\\u8acb\\\\u8f38\\\\u5165\\\\u521d\\\\u59cb\\\\u503c\\\",\\\"NumbersOnly\\\":\\\"True\\\",\\\"Uuid\\\":\\\"-82323060\\\"},{\\\"$Name\\\":\\\"TextBox_\\\\u7d50\\\\u675f\\\\u503c\\\",\\\"$Type\\\":\\\"TextBox\\\",\\\"$Version\\\":\\\"5\\\",\\\"FontSize\\\":\\\"14\\\",\\\"Width\\\":\\\"-2\\\",\\\"Hint\\\":\\\"\\\\u8acb\\\\u8f38\\\\u5165\\\\u7d50\\\\u675f\\\\u503c\\\",\\\"NumbersOnly\\\":\\\"True\\\",\\\"Uuid\\\":\\\"987535492\\\"},{\\\"$Name\\\":\\\"TextBox_\\\\u62bd\\\\u7c64\\\\u6578\\\\u91cf\\\",\\\"$Type\\\":\\\"TextBox\\\",\\\"$Version\\\":\\\"5\\\",\\\"FontSize\\\":\\\"14\\\",\\\"Width\\\":\\\"-2\\\",\\\"Hint\\\":\\\"\\\\u8acb\\\\u8f38\\\\u5165\\\\u62bd\\\\u7c64\\\\u6578\\\\u91cf\\\",\\\"NumbersOnly\\\":\\\"True\\\",\\\"Uuid\\\":\\\"2136554330\\\"},{\\\"$Name\\\":\\\"HorizontalArrangement1\\\",\\\"$Type\\\":\\\"HorizontalArrangement\\\",\\\"$Version\\\":\\\"3\\\",\\\"AlignVertical\\\":\\\"2\\\",\\\"Width\\\":\\\"-2\\\",\\\"Uuid\\\":\\\"1946423093\\\",\\\"$Components\\\":[{\\\"$Name\\\":\\\"Button1\\\",\\\"$Type\\\":\\\"Button\\\",\\\"$Version\\\":\\\"6\\\",\\\"FontSize\\\":\\\"14\\\",\\\"Text\\\":\\\"\\\\u62bd\\\\u7c64\\\",\\\"Uuid\\\":\\\"660519856\\\"},{\\\"$Name\\\":\\\"\\\\u4e0b\\\\u62c9\\\\u5f0f\\\\u9078\\\\u55ae1\\\",\\\"$Type\\\":\\\"Spinner\\\",\\\"$Version\\\":\\\"1\\\",\\\"Width\\\":\\\"-2\\\",\\\"Uuid\\\":\\\"726670019\\\"}]},{\\\"$Name\\\":\\\"Notifier1\\\",\\\"$Type\\\":\\\"Notifier\\\",\\\"$Version\\\":\\\"4\\\",\\\"Uuid\\\":\\\"1636699426\\\"}]}}\\n|#\",\"src/appinventor/ai_appinventor/IND301/Screen1.yail\":\"#|\\n$Source $Yail\\n|#\\n\\n(define-form appinventor.ai_appinventor.IND301.Screen1 Screen1)\\n(require \\u003ccom.google.youngandroid.runtime\\u003e)\\n\\n(def g$結束 0)\\n(def g$初始 0)\\n(def g$抽籤次數 0)\\n(def g$抽籤清單 (call-yail-primitive make-yail-list (*list-for-runtime* ) '() \\\"make a list\\\"))\\n;;; Screen1\\n\\n(do-after-form-creation (set-and-coerce-property! 'Screen1 'AppName \\\"IND301\\\" 'text)\\n (set-and-coerce-property! 'Screen1 'Scrollable #t 'boolean)\\n (set-and-coerce-property! 'Screen1 'Title \\\"\\\\u62bd\\\\u7c64\\\" 'text)\\n)\\n\\n(define-event Screen1 Initialize()(set-this-form)\\n (set-and-coerce-property! '下拉式選單1 'Visible #f 'boolean))\\n;;; TextBox_起始值\\n\\n(add-component Screen1 com.google.appinventor.components.runtime.TextBox TextBox_起始值 \\n(set-and-coerce-property! 'TextBox_起始值 'FontSize 14 'number)\\n\\n(set-and-coerce-property! 'TextBox_起始值 'Width -2 'number)\\n\\n(set-and-coerce-property! 'TextBox_起始值 'Hint \\\"\\\\u8acb\\\\u8f38\\\\u5165\\\\u521d\\\\u59cb\\\\u503c\\\" 'text)\\n\\n(set-and-coerce-property! 'TextBox_起始值 'NumbersOnly #t 'boolean)\\n\\n)\\n\\n;;; TextBox_結束值\\n\\n(add-component Screen1 com.google.appinventor.components.runtime.TextBox TextBox_結束值 \\n(set-and-coerce-property! 'TextBox_結束值 'FontSize 14 'number)\\n\\n(set-and-coerce-property! 'TextBox_結束值 'Width -2 'number)\\n\\n(set-and-coerce-property! 'TextBox_結束值 'Hint \\\"\\\\u8acb\\\\u8f38\\\\u5165\\\\u7d50\\\\u675f\\\\u503c\\\" 'text)\\n\\n(set-and-coerce-property! 'TextBox_結束值 'NumbersOnly #t 'boolean)\\n\\n)\\n\\n;;; TextBox_抽籤數量\\n\\n(add-component Screen1 com.google.appinventor.components.runtime.TextBox TextBox_抽籤數量 \\n(set-and-coerce-property! 'TextBox_抽籤數量 'FontSize 14 'number)\\n\\n(set-and-coerce-property! 'TextBox_抽籤數量 'Width -2 'number)\\n\\n(set-and-coerce-property! 'TextBox_抽籤數量 'Hint \\\"\\\\u8acb\\\\u8f38\\\\u5165\\\\u62bd\\\\u7c64\\\\u6578\\\\u91cf\\\" 'text)\\n\\n(set-and-coerce-property! 'TextBox_抽籤數量 'NumbersOnly #t 'boolean)\\n\\n)\\n\\n;;; HorizontalArrangement1\\n\\n(add-component Screen1 com.google.appinventor.components.runtime.HorizontalArrangement HorizontalArrangement1 \\n(set-and-coerce-property! 'HorizontalArrangement1 'AlignVertical 2 'number)\\n\\n(set-and-coerce-property! 'HorizontalArrangement1 'Width -2 'number)\\n\\n)\\n\\n;;; Button1\\n\\n(add-component HorizontalArrangement1 com.google.appinventor.components.runtime.Button Button1 \\n(set-and-coerce-property! 'Button1 'FontSize 14 'number)\\n\\n(set-and-coerce-property! 'Button1 'Text \\\"\\\\u62bd\\\\u7c64\\\" 'text)\\n\\n)\\n\\n(define-event Button1 Click()(set-this-form)\\n (if (or-delayed (or-delayed (call-yail-primitive yail-equal? (*list-for-runtime* (get-property 'TextBox_起始值 'Text) \\\"\\\") '(any any) \\\"=\\\") (call-yail-primitive yail-equal? (*list-for-runtime* (get-property 'TextBox_結束值 'Text) \\\"\\\") '(any any) \\\"=\\\")) (call-yail-primitive yail-equal? (*list-for-runtime* (get-property 'TextBox_抽籤數量 'Text) \\\"\\\") '(any any) \\\"=\\\")) (begin (call-component-method 'Notifier1 'ShowMessageDialog (*list-for-runtime* \\\"\\\\u6b04\\\\u4f4d\\\\u4e0d\\\\u53ef\\\\u70ba\\\\u7a7a\\\" \\\"\\\\u932f\\\\u8aa4\\\" \\\"ok\\\") '(text text text))) (begin (set-var! g$抽籤次數 (get-property 'TextBox_抽籤數量 'Text))(set-var! g$初始 (get-property 'TextBox_起始值 'Text))(set-var! g$結束 (get-property 'TextBox_結束值 'Text))(forrange $數字 (begin (call-yail-primitive yail-list-add-to-list! (*list-for-runtime* (get-var g$抽籤清單) (call-yail-primitive random-integer (*list-for-runtime* (get-var g$初始) (get-var g$結束)) '(number number) \\\"random integer\\\") ) '(list any ) \\\"add items to list\\\")(set-and-coerce-property! '下拉式選單1 'Visible #t 'boolean)(call-component-method '下拉式選單1 'DisplayDropdown (*list-for-runtime*) '())(set-and-coerce-property! '下拉式選單1 'Elements (get-var g$抽籤清單) 'list)) 1 (get-var g$抽籤次數) 1))))\\n;;; 下拉式選單1\\n\\n(add-component HorizontalArrangement1 com.google.appinventor.components.runtime.Spinner 下拉式選單1 \\n(set-and-coerce-property! '下拉式選單1 'Width -2 'number)\\n\\n)\\n\\n;;; Notifier1\\n\\n(add-component Screen1 com.google.appinventor.components.runtime.Notifier Notifier1 \\n)\\n\\n(init-runtime)\"},\"settings\":\"{\\\"SimpleSettings\\\":{\\\"AccentColor\\\":\\\"\\u0026HFFFF4081\\\",\\\"ActionBar\\\":\\\"False\\\",\\\"AppName\\\":\\\"IND301\\\",\\\"Icon\\\":\\\"\\\",\\\"PhoneTablet\\\":\\\"False\\\",\\\"PrimaryColor\\\":\\\"\\u0026HFF3F51B5\\\",\\\"PrimaryColorDark\\\":\\\"\\u0026HFF303F9F\\\",\\\"ShowHiddenComponents\\\":\\\"False\\\",\\\"ShowListsAsJson\\\":\\\"False\\\",\\\"Sizing\\\":\\\"Fixed\\\",\\\"Theme\\\":\\\"Classic\\\",\\\"TutorialURL\\\":\\\"\\\",\\\"UsesLocation\\\":\\\"False\\\",\\\"VersionCode\\\":\\\"1\\\",\\\"VersionName\\\":\\\"1.0\\\"}}\"}","created_at":"2020-07-18T22:33:06.268+08:00","updated_at":"2020-07-18T23:33:27.845+08:00","name":"IND301","language":"appinventor","screenshot":{"url":null},"parent_id":127514,"plugin":null,"description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":48,"hashid":"jzms2kr5","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦