Function Entry: VLE-SEARCH
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: VLE-SEARCH
Name
vle-search
Class
BricsCAD VLE Library Function
Syntax
(vle-search item lst asIdx)
Arguments and Values
- item object to search for in lst
- lst list of
- items to search in
- asIdx flag
- defining the type of result;:if NIL, the list starting with
- item is returned;
- if non-NIL, the index of item
- in lst
- is returned
Description
searches for 'item' in list 'lst' and returns either the index of 'item' in 'lst' (if 'asIdx' is non-NIL), or the list starting with 'item' (if 'asIdx' is NIL), or NIL if 'item' is not contained in 'lst'
Return Values
the index of item in lst, or the sub-list starting with item, depending on asIdx flag;
if item is not contained in 'lst', NIL is returned
Examples
(vle-search 11 '(1 2 3 11 22 33 ) nil) returns '(11 22 33) (vle-search 11 '(1 2 3 11 22 33 ) t) returns 3
Notes
returned index is 0-based
Availability
- AutoCAD 2026: not documented.
- BricsCAD V26: documented.
- Status: BricsCAD-only.
Source Notes
- [vle-search (BricsCAD V26 DevRef)](https://developer.bricsys.com/bricscad/help/en_US/V26/DevRef/source/vlesearch.htm)
- Status: documented (Phase 3 follow-up: body filled from the BricsCAD V26 per-symbol page on 2026-04-26).