Please Help with parse

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Locked
User avatar
Dudus
Posts: 120
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest

Please Help with parse

Post by Dudus »

Hi,

i have a parse script which can parese a string like this:

StrParse "[eredmeny]" "_" "[part]" "[numparsed]"
Loop "1" "[numparsed]" "[x]"
StrReplace "[part[x]]" "_" "" "[partos2]" ""

But I do not know how to clear all of the [part[x]] variables after it is done his job. sometime it is just from part1-part3, but sometimes it is from part1 to part2000
Please help! Thnx
Dudus
User avatar
Gaev
Posts: 3782
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada
Contact:

Re: Please Help with parse

Post by Gaev »

Dudus:
I do not know how to clear all of the [part[x]] variables after it is done his job
Try ...

Code: Select all

DeleteArray "part" "All"
However, I am not sure of the purpose of the command ...

Code: Select all

StrReplace "[part[x]]" "_" "" "[partos2]" ""
... if you StrParse variable [eredmeny] using "_" as the parse character, then none of the [part[x]] elements will have "_" within their contents.
Locked