Difference between revisions of "StrDel"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Talkie Toaster
imported>Talkie Toaster
Line 2: Line 2:
  StrDel ''StringRef:long''
  StrDel ''StringRef:long''


Deletes the string associated with the passed StringRef. If a string is not deleted, but the pointer to it is lost (e.g. by a spell script terminating or the variable being reused), then the string remains lost in memory, taking up space. Always delete any string you declare when finished with it, but remember StringRefs aren't specific to a script- if you pass the pointer to another script, you can access it and delete it from there.
Deletes the string associated with the passed StringRef. If a string is not deleted, but the pointer to it is lost (e.g. by a spell script terminating or the variable being reused), then the string remains lost in memory, taking up space.  
 
Always delete any string you declare when finished with it, but remember StringRefs aren't specific to a script- if you pass the pointer to another script, you can access it and delete it from there.


[[Category: Functions (OBSE)]]
[[Category: Functions (OBSE)]]
[[Category: TSFC]]
[[Category: TSFC]]

Revision as of 18:28, 13 July 2007

Syntax:

StrDel StringRef:long

Deletes the string associated with the passed StringRef. If a string is not deleted, but the pointer to it is lost (e.g. by a spell script terminating or the variable being reused), then the string remains lost in memory, taking up space.

Always delete any string you declare when finished with it, but remember StringRefs aren't specific to a script- if you pass the pointer to another script, you can access it and delete it from there.