where '' is two single quotes with no space in between. Same works for number variables.

The example above first locates the index for XMLVAR_AnyName, and then writes '' to it. It does not store a zero or a space in the contents ... it erases the contents of XMLVAR_AnyName just as 1 (>C:XMLVARS:Reset) erases all of the XMLVARs. Just make sure you have the latest version of XMLVARs as the initial (beta maybe) version did not have this capability.

where '' is two single quotes with no space in between. Same works for number variables.

The example above first locates the index for XMLVAR_AnyName, and then writes '' to it. It does not store a zero or a space in the contents ... it erases the contents of XMLVAR_AnyName just as 1 (>C:XMLVARS:Reset) erases all of the XMLVARs. Just make sure you have the latest version of XMLVARs as the initial (beta maybe) version did not have this capability.

Hope this helps,

Bob[/QUOTE]

Thanks, does that work on arrays too? or would it just delete the index and reorder them?

Thanks, does that work on arrays too? or would it just delete the index and reorder them?

Click to expand...

Hi,

In simple terms, arrays are automatically managed by the module, so it is not necessary to reorder/reindex unless you need to delete/insert intermediate array records and keep them in sequence. In this case, you can take a look at XMLVarsexample.xml; there are a couple of macros showing the way (one at least) to deal with this kind of process.

Now, what Bob stated is correct; you can send '' to clear a variable's string content, or 0 to clear its numeric value; however the name (index) of the variable remains active. I am going to release an update soon that will allow to clear the variable slot as well, bringing the possibility to assign a new var name (index) and value(s) into that position. This could be very useful in case one needs to work with tables containing multiple rows and columns; then the space used by one table could be cleared and reused by another one, all within the limit of 1024 records in total.