LarsG wrote:maybe "Cut" or "Trim" are better words?
'Trim' is for removing leading/trailing spaces
RCut or LCut are named perfect for this
A.s="Rings"
debug RCut(A.s,1)
prints "Ring"
easy command to implement, just do it like this:
;Rcut is easy
Procedure RCut(instringpointer.l,Pos)
PokeB(Instringpointer+lstrlen_(Instringpointer)-Pos,0)
EndProcedure
A.s="Siggi Rings"
RCut(@A.s,1)
Debug A.s
A.s="Siggi Rings"
LCut_Position=5
;LCut only with asm
!MOV eax,dword[v_LCut_Position]
!add dword[v_A],eax
Debug A.s
another topic is the StringBasepointer, i don't know if it must be realigned after this....but thats you turn Fred
