Thanks for your reply, Jesse. It looks like you do have MaxGUI (or else you'd have gotten an earlier error), but I'm at a loss as to why GadgetText is an unfound identifier. It's a standard part of MaxGUI, accessing a standard ComboBox gadget.
To test/isolate it, please try the following:
Strict
Local win:TGadget = CreateWindow( "", 10,10, 320,240 )
Local txt:TGadget = CreateComboBox( 10,10, 100,19, win )
AddGadgetItem txt, "Item 1"
AddGadgetItem txt, "Item 2"
Repeat
WaitEvent
Until EventID() = EVENT_GADGETACTION
Notify GadgetText(txt)
This should put up a message box showing 'Item 1' or Item 2' when you choose one of them from the combobox. Please let me know if it works for you or gives an error.