I. aldweb
II. PC Freeware
III. Palm Freeware
IV. Palm Shareware
V. iziBasic Palm
VI. Palm Knowledge
VII. Pocket Computer
VIII. miniPortail
All contents Articles Articles Reactions Downloads Forum Guestbook Links News [fr] and [en] [fr] only [en] only Search
Lyon Weather
aldweb against spam
visitors
visitors online
Thanks for taking the time to write this message.
Your user name :
Your e-mail :
Subscribe to this thread :
You are answering to aldweb who wrote:
' Mini Cash Case.ibas' Listing generated by ViziBasic v2.1' 17/04/2009 @ 18:04:37{CREATORID "WTVr"}{VERSION "0.1"}'{MINOSVERSION "3.0"}'{PARSER OFF}'{KEYEVENTS OFF}'{SECUREFILES ON}'{CONSOLEFONT ON}DIM %EVT%,%P1%,%P2%,%P3%DIM %P1$,%P2$,%P3$,%BTN%,%AARRAY$DIM %BTN$,%TXT$,%VLU%,%LOP%DIM A(80)DIM %AARRAY%,%AARRAY2%_Clicky: %TXT$="You clicked case #"+%BTN$ UPDATELABEL #9,%TXT$ %BTN% = VAL(%BTN$) %AARRAY2% = A(%BTN%) %AARRAY$ = STR$(%AARRAY2%,0) %TXT$="It was worth $" + %AARRAY$ UPDATELABEL #10,%TXT$ %EVT%=WAITEVENTRETURN_TryAgainLabel: %LOP% = %LOP% + 1 %VLU% = RND(8) if %VLU%=0 let %VLU%=1 A(%LOP%)=%VLU% %AARRAY% = A(%LOP%)returnBEGINGOSUB _OnAppStart%P1$="This is just a *very* rough draft¶¶v.0.1"ABOUTBOX %P1$GOSUB _GenerateGUIA(1)=0WHILE %LOP% <> 9 gosub _TryAgainLabel %AARRAY2%=A(1) : if %AARRAY%=%AARRAY2% gosub _TryAgainLabel %AARRAY2%=A(2) : if %AARRAY%=%AARRAY2% gosub _TryAgainLabel %AARRAY2%=A(3) : if %AARRAY%=%AARRAY2% gosub _TryAgainLabel %AARRAY2%=A(4) : if %AARRAY%=%AARRAY2% gosub _TryAgainLabel %AARRAY2%=A(5) : if %AARRAY%=%AARRAY2% gosub _TryAgainLabel %AARRAY2%=A(6) : if %AARRAY%=%AARRAY2% gosub _TryAgainLabel %AARRAY2%=A(7) : if %AARRAY%=%AARRAY2% gosub _TryAgainLabel %AARRAY2%=A(8) : if %AARRAY%=%AARRAY2% gosub _TryAgainLabelWENDGOSUB _EventsLoopGOSUB _OnAppExitEND_GenerateGUI:%P1$="#1"SETFONT 0BUTTON #1,%P1$,5,20,15,15%P1$="#2"SETFONT 0BUTTON #2,%P1$,25,20,15,15%P1$="#3"SETFONT 0BUTTON #3,%P1$,45,20,15,15%P1$="#4"SETFONT 0BUTTON #4,%P1$,65,20,15,15%P1$="#5"SETFONT 0BUTTON #5,%P1$,5,40,15,15%P1$="#6"SETFONT 0BUTTON #6,%P1$,25,40,15,15%P1$="#7"SETFONT 0BUTTON #7,%P1$,45,40,15,15%P1$="#8"SETFONT 0BUTTON #8,%P1$,65,40,15,15%P1$="You clicked case ..."SETFONT 0LABEL #9,%P1$,5,60%P1$="It was worth..."SETFONT 0LABEL #10,%P1$,5,60RETURN_EventsLoop:REPEAT %EVT%=WAITEVENT SELECT CASE %EVT% CASE 1 GOSUB _BUTTON_1 CASE 2 GOSUB _BUTTON_2 CASE 3 GOSUB _BUTTON_3 CASE 4 GOSUB _BUTTON_4 CASE 5 GOSUB _BUTTON_5 CASE 6 GOSUB _BUTTON_6 CASE 7 GOSUB _BUTTON_7 CASE 8 GOSUB _BUTTON_8 END SELECTUNTIL %EVT%=-1RETURN_BUTTON_1:%BTN$="1"GOSUB _ClickyRETURN_BUTTON_2:%BTN$="2"GOSUB _ClickyRETURN_BUTTON_3:%BTN$="3"GOSUB _ClickyRETURN_BUTTON_4:%BTN$="4"GOSUB _ClickyRETURN_BUTTON_5:%BTN$="5"GOSUB _ClickyRETURN_BUTTON_6:%BTN$="6"GOSUB _ClickyRETURN_BUTTON_7:%BTN$="7"GOSUB _ClickyRETURN_BUTTON_8:%BTN$="8"GOSUB _ClickyRETURN_OnAppStart:RETURN_OnAppExit:RETURN
Document generated in 0.07 second