how can set 1024 space in a variable?
i know space code is: " " and for set 10 space in variable i can use:
Var /Global E1 strcpy $E1 " "
in vb6 i use from this code for set 1024 space in variable:
E1 = Space$(1024)
6 posts
Var /Global E1 strcpy $E1 " "
E1 = Space$(1024)
StrCpy $0 "" ;holds spaces
StrCpy $1 "0" ;holds count
loop:
StrCpy $0 "$0 "
IntOp $1 $1 + 1
IntCmp $1 1024 +1 loop
;$0 has 1024 spaces
i ask this question for convert a vb code to nsis:Originally Posted by Anders View PostA loop is only useful if you don't know exactly how many characters you want, if it is constant then just a simple StrCpy probably compresses really well.
But why do you even need 1000+ space characters in a string?
txt = Space$(1024)
i asked the normal questions but sometimes no one answer my questions!!!Originally Posted by JasonFriday13 View PostI've stopped asking that question because that person never says what it's needed for. Considering all the other questions that person has asked, this one should have been pretty straight forward to solve.
That VB code fills the buffer with spaces as some sort of hack to preallocate memory. You don't need to do that in NSIS.Originally Posted by r2du-soft View Posti ask this question for convert a vb code to nsis