hope Gosub can 'disassemble' (If EndIf) etc.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

hope Gosub can 'disassemble' (If EndIf) etc.

Post by gurj »

Code: Select all

;hope Gosub can 'disassemble' (If EndIf) etc.

Gosub re
k=b
EndIf:EndIf

Gosub re
h=c
EndIf:EndIf

End
re: :If a=0 And b=0 And c=d
 m=n:If t=y:Return
my pb for chinese:
http://ataorj.ys168.com
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: hope Gosub can 'disassemble' (If EndIf) etc.

Post by DarkDragon »

You need macros, not gosub.
bye,
Daniel
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: hope Gosub can 'disassemble' (If EndIf) etc.

Post by gurj »

Code: Select all

Gosub re
k=b
re1:
EndIf:re2: :EndIf

End
re: :If a=0
 m=n:If t=y:Return
a judgment: Gosub cann't 'disassemble' (If EndIf), because:
If t=y:Return
so,If t<>y, Not Return, this is wrong
no
If a<>0, will automatic Goto re2
If t<>y, will automatic Goto re1
other, thanks DarkDragon for your concerns
my pb for chinese:
http://ataorj.ys168.com
Post Reply