# CollectBox Methods to interact with the CollectBox. - - - ## CollectBox.Setup ```pascal procedure CollectBox.Setup(); ``` Initializes CollectBox variables. ```{note} This is automatically called on the **CollectBox** variable. ``` - - - ## CollectBox.Close ```pascal function TRSCollectBox.Close(UseKeyboard: Boolean = False): Boolean; ``` Closes the CollectBox, Depending on `UseKeyboard` the function will either click the button or press backspace. Example: ```pascal WriteLn CollectBox.Close; ``` - - - (CollectBox)= ## var CollectBox Global CollectBox variable.