Hi,
I've spent the better part of an hour trying and testing various things to do what I want to accomplish, and I finally got close by moving things into the Event Loop, and then trying to have it done under 1 single Case..
I need to check for events on 4 different StringGadgets, and I don't want to duplicate code... I have gotten pretty far I think. but I can't get any farther than getting
Case to compare 2 values.. it won't accept more than that..
The actual concatenation is not the final formula I want to use, but just keeping it simple for testing purposes.. The goal is for it to check 4 different input forms for changed data, then when it fires that event, it will pull data from all the fields and concatenate them into the final value (I will insert some delimiter characters later on).
Right now it will only work up to Input_Area and Input_RoomX - anything beyond that does not work.. I've written and rewritten this several times and can't seem to engineer a way to properly check them all.. Am I just stupid or is it not possible?
Code:
Case #PB_Event_Gadget
Select EventGadget()
Case Input_Area|Input_RoomX|Input_RoomY|Input_RoomZ
Select EventType()
Case #PB_EventType_Change
tmp_Area = GetGadgetText (Input_Area)
tmp_RoomX = GetGadgetText (Input_RoomX)
tmp_RoomY = GetGadgetText (Input_RoomY)
tmp_RoomZ = GetGadgetText (Input_RoomZ)
tmp_RoomID = tmp_Area + tmp_RoomX + tmp_RoomY + tmp_RoomZ
SetGadgetText(Input_RoomID, tmp_RoomID)
EndSelect
EndSelect