Cabbage Logo
Back to Cabbage Site

fileType and currentDir identifiers now exposed

When using populate() with a combobox or listbox, it sets two internal identifiers, i.e, fileType and currentDir. I’ve now exposed these so you can query them with cabbageGet:

SCurrentDir cabbageGet "sampleCombo", "currentDir"
SFileType cabbageGet "sampleCombo", "fileType"
printf "Current dir: %s - Current file type: %s\n", 1, SCurrentDir, SFileType

Nice, these will save from writing the same definition in several place of the code (and failing at it) :joy:

1 Like