Jump to content

BASIC


Guest Klaus
 Share

Recommended Posts

???? Basic , ??????? ?????? ???????? ????????? ? ??????? ? ???????? ?????? ???????????????? ??? ?? ?????? ?????????? ? ?? ????????? ????????. MobileBasic ? ????, ??????????????? ? ?????? ??????? ?? ???????? ??? ??? ??????????? ??????? ?????????. ?? ???????? ? ???? ????????? ??????, ?????????? ???????? ??????? ??????????, ?? ??? ?? ????????, ??? ? ??????? ??? ?? ???????? ????????? ? ????????????? ?????????.

 

???? ?????? ? ???? ??????????? ???????? ? ????, ??? ?? ???????? ?????????? ?? ????? Basic (? ??????? ?????????? ? ??????????? ????????? ??????), ? ?????????? ???????????? ??? ? Java ?????? ??? ?????????? ????????. ?????? ??? ???? ?????????.

 

?????????

 

Mobile BASIC (????? ?? ?????? MB ) ?????????? ? ???? ??????????????:

 

? MB ? ? ?????? ??? ????????? ?? ???????????? ?????????

 

? MB MIDlet ? ??? ????????? ??????????????? ?? ???????. ?????? ?????? ????????? ?????? ? ????????? ????????? ????????? ????? ?? ????????.

 

?? ?? ??????????? ?? ?????? ????????. ????????? ???????????? ??? ???????????? ??????? Windows , ? ????? Linux ? Unix . MB ????? ???????? ? ?????????? ?????? ??????, ????????, ??????????????? ????????? ? ?.?. ? ?????? ? ?????????? ????????? ????????? ?????? ?? ???????? ????? ?? ?????????? ????? ? ??????? pdf . ????????? ???????? ??????, ? ????????????? ???? ????????? ???????? 40 ?? (?????? 2.0).

 

????????? ????????? ????? ????? ? ?? ?????????? ??????? ????????, ???? ??? ?????? ?????? ?? ??????? ??????? ?????? ?? ??????.

http://pawelk.nm.ru/stati/images/for13mobile/clip_image002.jpg

? ??????? ?????? ??? ?????? ????????? ???????????? ??? ????? ??? ???????? ???? MB : Metal , CDE / Motif (? ????? Win 3.11) ? Windows . ?????? Tools ???????? ???????? ??? ?????????????? ? ???????? ???????? ???????? ??????? png ? Image Editor , ???????? ??? ???????? ??????? ??? (????) ? Map Editor , Tile Editor ??? ???????? ????????/?????????? ? Nokia Ring Tone Editor ? ??? ???????? ? ??????????????? ?????????.

 

?? ???? ? ????

 

?? ???? ????????? ???????? ?? ??????????, ??????????? ? ??? ????????????? ????, ? ???????? ??????????????? ? ??????. ? ??? ?????????, ?? ????? ??????????????? ?? ???????? ? ??????????. ????????????, ??? ?? ????????? ???????? ????????? ????????????, ????????? ???????????? ?????? Basic . ??, ??? ?????? ??????, ?????????? ???????????? ??????????? ?? ??????? (??? ?? ?????????? ?????????????? ???????? ? ????????? ????????????? ???????). ????????? ??????? ?????? ? ???????? Basic '?, ????? ???? ????? ????? ?????????? ? ?????? ? MB .

 

? ????? ? ????????????? ?????????? ??????? ????????? ???????? ??????? ??????????, ?? ??, ???? ?? ?? ?????? ??? ????????, ???????? ???? ????????? ???????? ??????????. ???????? ?????????? ???? ? ?????????, ????? ?? ??????????, ???????????. ??? ????????? ????????? ?????????:

 

WHILE 1

 

TIME#=TIME()

 

HOUR%=HOUR(TIME#)

 

MINUTE%=MINUTE(TIME#)

 

SECOND%=SECOND(TIME#)

 

DATE$=STR$(DAY%) + "/" + STR$(MONTH%) + "/" + STR$(YEAR%)

 

TIME$=STR$(HOUR%) + ":"

 

IF (MINUTE% < 10) THEN TIME$=TIME$+"0"

 

TIME$=TIME$+STR$(MINUTE%) + "."

 

IF (SECOND% < 10) THEN TIME$=TIME$+"0"

 

TIME$=TIME$+STR$(SECOND%)

 

NAME$ = "SuperCLOCK"

 

SETCOLOR 0,0,0

 

FILLRECT 0,0,SCREENWIDTH(),SCREENHEIGHT()

 

SETCOLOR 255,255,255

 

Y1%=SCREENHEIGHT()/3

 

Y2%=Y1%+Y1%

 

DRAWSTRING NAME$,(SCREENWIDTH()-STRINGWIDTH(NAME$))/2,Y1%

 

DRAWSTRING TIME$,(SCREENWIDTH()-STRINGWIDTH(TIME$))/2,Y2%

 

DRAWRECT 10,10,80,60

 

REPAINT

 

SLEEP 500

 

ENDWHILE

 

???????? While ??????? ?????????? ???? Exit -> Yes / No , Endwhile ? ????????? ??????? . DRAWSTRING ? ?????? ??????? Print ?? ??????????, ????? ?????? ?? ?????. Sleep ? ???????? ? ?????????????. ?????????, ?????, ???????. ?????? ????? ?????????? ??? ????? ????????? ?????????? ?? ?????? ?????????? ????????. ? ???? ???????? ????? Project -> Simulation . ???????? ????? ?????? ?? ?????? Nokia ? 35 ???????, Sony - Ericsson ? 2 ?????? (?610 ? P 800), ????, ?????? ????? Custom , ?????? ?????? ?????? ???????. ????? ????????? ? ?????? Build -> Run ? ?????????? ??????????? ?? ????????????? ?????? ????????. ???? ??? ?????????? ? ????? ????? ???, ?? ????????? ? ???????? ???????. ???? ? ???? Build -> BuildMIDlet . ???????? ?????? ??? ???????: ??????????? ( Standard J 2 ME ) ???? Nokia J 2 ME . ??????, ??????????? ???? ????? ?????? ??? ?????????: Midlet Name , Description , Version , Vendor ? Icon . ???????? ????, ???????? jad ? jar ???? ????? ?????????. ?????????? ??????? ? ????????? ???? ??????????. ???? ?????? ???, ????? ??????????????? ??????? ???? Build -> Publish Midlet , ???? ?????????? ????? ????????? ?? ???-?????? MB , ????? ???? ??? ????? ????? ??????? ?? WAP ??????. ?????? ????????? ?? ???? ?????? ?55 ???????????? ?? ??????? 2.

http://pawelk.nm.ru/stati/images/for13mobile/clip_image004.jpg

????? ??????????, ??????? ????? ?? ????????? ? ??? ????????? ???????? ????????. ????????? ????????? ??????????? ????? 22 ???????.

 

??? ???? ??????????? ?????????: ???????? ?? ??????????? ???? Java Applet . ?????? ????? ???? Build -> Build Applet , ???????? html ????????? ? ???? ? ??????????? jar .

 

??? ??, Mobile Basic ????? ?????????? ???????, ?? ????????? ???????? ?????? ??? ???????? ??????? ?????????? ??? ?????????? ????????, ??, ?????, ??????????? ????? Java ?? ?? ??????. ??????????? ???? ????????? ????????? ?? ??????: www.mobilebasic.com .

 

????? ?????????

http://pawelk.nm.ru/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...