andyhill Posted September 30, 2019 Share Posted September 30, 2019 Mobile Select Selection (text): When DropDown Is Initiated the Select Does Not PreSelect the Current Item (text) In Items List (sync) My attempt below fails, please advise. procedure TEventEditmForm.UnimSelect2DropDown(Sender: TObject); var s: String; i, Idx: Integer; begin Idx:= -1; // Current Selection s:= TUnimSelect(Sender).Text; // Walk Items for i:= 0 to TUnimSelect(Sender).Items.Count-1 do begin if TUnimSelect(Sender).Items = s then begin Idx:= i; Break; end; end; // Select TUnimSelect(Sender).ItemIndex:= Idx; UniSession.Synchronize(); end; Quote Link to comment Share on other sites More sharing options...
andyhill Posted October 4, 2019 Author Share Posted October 4, 2019 Any suggestions ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.