From 3441d3152284f5d76afbac9c83b451175859eaa2 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 2 Jul 2005 13:07:44 +0000 Subject: [PATCH] more information about Var limitations git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4155 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/var.but | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Docs/src/var.but b/Docs/src/var.but index 175f7760..8f331001 100644 --- a/Docs/src/var.but +++ b/Docs/src/var.but @@ -1,6 +1,6 @@ \H{variables} Variables -All variables are global and can be used in Sections or Functions. +All variables are global and can be used in Sections or Functions. Note that, by default, variables are limited to 1024 characters. To extend this limit, \R{build}{build NSIS} with a bigger value of NSIS_MAX_STRLEN in Source/exehead/config.h or use the \W{http://nsis.sourceforge.net/download/specialbuilds/}{special build}. \S1{varuser} User Variables @@ -12,7 +12,13 @@ User variables can be declared with the \R{var}{Var} command. You can use these \c var_name -Declare a user variable. Allowed characters for variables names: [a-z][A-Z][0-9] and '_'. +Declare a user variable. Allowed characters for variables names: [a-z][A-Z][0-9] and '_'. Variables cannot be declared in sections or functions. + +\c Var example +\c +\c Function testVar +\c StrCpy $example "example value" +\c FunctionEnd \S1{varother} Other Writable Variables