I have just found myself to code a MACRO like this:
REGISTER R01 as LONG
MACRO AGS_SP(P1,P2,P3)
Macrotemp Labx
if ismissing(P1) then goto Labx
S03=Trim$(P1):R01=Len(S03)
if (R01>0) then
R01=T06.SB
SetBit(R01,P2)
T06.P3=S03
T06.SB=R01
else
Labx:
R01=T06.SB
ClearBit(R01,P2)
T06.SB=R01
T06.P3=""
end if
END MACRO
I could have done it in another way, less optimized.
but this way seems completely "legal" to me, as in PB, the "END IF" in the resulting compiled ASM Code is just an adress. Means there is nothing why not to jump into an END IF Block.
Just wanted share this with you. Anybody else also done this?