COMMODORE PLUS/4 WORLD
  Home  Search  Games  Tapes  Covers  Cheats  Maps  Software  New Stuff 
 Features  Solutions  Remakes  Publications  Plus/4 Encyclopedia  Hardware  Top List 
 Members  Groups  Tools  Options  Forum 
Login
Plus/4 EncyclopediaFirstBackNextLast

Basic tricks
Category
Programming/Basic

Topic
1) IF A<>0 can be reduced to IF A (warning: this trick must not be applied with multiple variables, es. IF A% AND B%)
2) GOTO 0 can be reduced to GOTO.
3) ....: GOTO 1000: here any string as comment is accepted without a REM (also works with ....: RETURN)
4) NEXT x,y can be entered as NEXT: NEXT (runs faster)
5) IF ... THEN GOTO 2000 can be reduced to IF ... THEN 2000
6) ? FRE(n) is useful to pack string area by eliminating old useless strings (not a real trick)
7) To check if a file is existing: "RENAME a$ TO a$" (a$=filename). Results DS=62 file does not exist; DS=63 file exists.


Credits
SVS 



Copyright © Plus/4 World Team, 2001-2009