PDA

View Full Version : Declare without execute


Nicool
07-13-2003, 10:32 AM
If I type it :
string $locator[] = `spaceLocator`;

The locator is created... But I just want declare it, to be used later :(

galactor
07-13-2003, 11:57 AM
If you use the

string $locator = "spaceLocator";

the you can later create a new spaceLocator by calling $locator or by typing eval($locator)

:: Galactor ::

mark_wilkins
07-13-2003, 01:54 PM
do you mean, you want to declare the variable?

You should type:

string $locator[];

to declare the variable and then

$locator = `spaceLocator`;

later, when you want to actually make a locator node.

-- Mark

Nicool
07-13-2003, 01:56 PM
thanks :thumbsup:

CGTalk Moderation
01-15-2006, 03:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.