class aclass
method constructor : end method
method destructor : end method
end class
new aclass o
del o
... will not compile (i.e. "int a:int b")
Will post the update early tomorrow.
class aclass
int a : int b
method constructor : end method
method destructor : end method
end class
new aclass o
del o
class aclass
method constructor : end method
method destructor : end method
end class
int a : int b
new aclass o
del o
i=0
while i<5
if i==3 then continue
i++
wend
print i
... continue the nearest construct, which happens to be the if statement.
continue while or continue do, but I may change the semantics to comply with C usage
while cond_1
while cond_2
....
continue while
wend
wend
(
(
exit 2
repeat 2
)
)
Helloworld,However, even if I modify the program like so, it does not help.
Yes, without specifying what is to be continued, it will continue the nearest construct, which happens to be the if statement.
You must continue while or continue do, but I may change the semantics to comply with C usage
For w = 1 To k
'Origem --( Leitura )--
If Op = 0 Then GoSub OCoL: If T = 1 Then T = 0: GoSub OLin
If Op = 1 Then GoSub OLin: If T = 1 Then T = 0: GoSub OCoL
Ddo = Cells(Loi, Coi).Value2
'Destino --(Escrita )--
If Dp = 0 Then GoSub DCoL: If T = 1 Then T = 0: GoSub DLin
If Dp = 1 Then GoSub DLin: If T = 1 Then T = 0: GoSub DCoL
Cells(Ldi, cdi).Value2 = Ddo
Next
''-----------------( Fim do loop )----
GoTo saida
'----------------------------( ORIGEM )------------
OLin:
If Op = 0 Then
...
Else
...
If Oquadante_L = True Then GoSub OCoL:
...
Else
...
If Oquadante_L = True Then GoSub OCoL:
End If
Return
OCoL: '----( Controle de colunas )---
If Op = 0 Then
...
GoSub OLin:
...
Else
...
GoSub OLin:
...
Else
GoSub OLin:
End If
Return
'---------( DESTINO )-----------
DLin:
If Dp = 0 Then
...
GoSub DCoL:
Else
...
If Dquadante_L = True Then GoSub DCoL:
...
Else
...
If Dquadante_L = True Then GoSub DCoL:
...
End If
Return
DCoL:
...
GoSub DLin:
...
Else
GoSub DLin:
End If
Return
and the call of each function should be something like thisint a=5,b=10
gosub sumif
print a
end
sumif:
if a<=5 then ret
a+=b
ret
how do you get out of a function without going back to the program that called it?
macro limit(a,b)
if a>b then goto done
end macro
int x=1
do
limit(x,10)
x+=3
end do
Done:
PRINT"Exited GOSUB without a RETURN stack error.\n"
s almost equal to vba
You're trying to make me madder than I already am.
OxygenBasic uses namespace. It performs the same role as ScriptBasic's module, with the same double-colon naming scheme.
QuoteYou're trying to make me madder than I already am.
Being mad at people that create tools and share the source freely is not an approach that is going to get you very far.
Eduardo, you can post any type of code you would like to share. It does not even have to be Basic if there is something of interest in it.
OxygenBasic uses namespace. It performs the same role as ScriptBasic's module, with the same double-colon naming scheme.