Difference between revisions of "StrDel"
Jump to navigation
Jump to search
imported>Talkie Toaster |
imported>Tibixe (Sometimes it is more practical to use StrClear) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
StrDel '' | StrDel ''strToDelete:stringID'' | ||
Deletes the string associated with | Deletes the string associated with ''strToDelete''. 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. | 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. | ||
Sometimes it is more practical to use [[StrClear]]. | |||
[[Category: Functions (OBSE)]] | [[Category: Functions (OBSE)]] | ||
[[Category: TSFC]] | [[Category: TSFC]] |
Latest revision as of 06:57, 22 December 2007
Syntax:
StrDel strToDelete:stringID
Deletes the string associated with strToDelete. 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.
Sometimes it is more practical to use StrClear.