Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   howto define variable in .onInit and use it in pages (http://forums.winamp.com/showthread.php?t=343495)

Masternoob 26th March 2012 09:36

howto define variable in .onInit and use it in pages
 
is there a way to define a variable in .onInit and then use it in all pages?

i am trying to do this because i need to change the pages dynamically with this parameter...

i already tried !define variable... it works but the problem is that you can't change this value at runtime...or at least i haven't found a way to do so

thx for your help

EDIT: Ok i am stupid, you have to declare the variables before the pages *facepalm*

redxii 26th March 2012 19:49

Use 'Var' to make a variable. Use /GLOBAL (ex 'Var /GLOBAL MyVar') if used in a section or function.


All times are GMT. The time now is 17:26.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.