Archive: LeftStr or StrLeft


LeftStr or StrLeft
Hello,

anyone have function that gets the first n characters of a string just like leftstr in vb or strleft in delphi:

x := strleft("Hello my name is",3 ); x would be "Hel"

Thanks In Advance
Yehia


http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.8

Probably worth at least trying the docs.


StrCpy $R0 "hello" 4
; $R0 = "hell"

StrCpy $R0 "hello" "" -4
; $R0 = "ello"

StrCpy $R0 "hello" "" 4
; $R0 = "o"

StrCpy $R0 "hello" -4
; $R0 = "h"

-Stu