LavishScript Examples for use with ISXEVE

CyberTech

Second-in-Command
Staff member
There have been a number of improvements in both ISXEVE and LavishScript over the last few years, and many are unaware of them. This thread will contain snippets of code showing examples of ways to do various things that are often asked about on IRC.

How to get a list of bookmarks that are ONLY corp (same concept applies to ANY datatype contained in any index or collection)
Code:
variable index:bookmark CorpBookmarks
EVE:GetBookmarks[CorpBookmarks]
CorpBookmarks.RemoveByQuery[${LavishScript.CreateQuery[OwnerID != "${Me.Corp.ID}"]}]
CorpBookmarks:Collapse

or

variable index:bookmark CorpBookmarks
EVE:GetBookmarks[CorpBookmarks]
variable int QueryID
QueryID:Set[${LavishScript.CreateQuery[OwnerID != "${Me.Corp.ID}"]}]
CorpBookmarks.RemoveByQuery[${QueryID}]
CorpBookmarks:Collapse
LavishScript:[B]FreeQuery[${QueryID}[/B]]

After either of these code snippets, CorpBookmarks would contain ONLY bookmarks where OwnerID == ${Me.Corp.ID}
 
Top Bottom