0
Use Tabs~!
Posted by Erik Gaius,aka [ K i r E ]
on
Wednesday, February 11, 2009, 8:53 AM
in
Tipz n Trix
Let's start this blog with a sweet and simple tip: Isa sa pinakamadaling paraan para malaman kung naisara mo na ang isang statement ay ang pag-gamit ng TABS.
Example:
Example:
for i = 0 to 10Looks bad, doesn't work. Try ulit natin w/ Tabs.
if i < 5 then
debug.write(i)
else
for j = 0 to 10
debug.write(j)
next j
next i
for i = 0 to 10Better. Makikita mo agad ung double tab sa second to the last line, meaning hindi mo naiclose ung if-else statement mo ng 'end if'. I think na starting from Visual Studio 2008 ay automatic na ung tabs, at napakalaking 2long nun lalo na sa mga besprend ni 'Syntax Error'.. hehehe
if i < 5 then
debug.write(i)
else
for j = 0 to 10
debug.write(j)
next j
next i
Post a Comment