mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 12:29:27 +01:00 
			
		
		
		
	examples: listview, check if input for sort column is valid. issue #21273
git-svn-id: trunk@35355 -
This commit is contained in:
		
							parent
							
								
									bd60e4f5de
								
							
						
					
					
						commit
						d1693804e7
					
				@ -313,8 +313,12 @@ begin
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
procedure TForm1.Edit11Change(Sender: TObject);
 | 
			
		||||
var
 | 
			
		||||
  i: Integer;
 | 
			
		||||
begin
 | 
			
		||||
  ListView1.SortColumn := StrToIntDef(Edit11.Text, 0);
 | 
			
		||||
  i := 0;
 | 
			
		||||
  if TryStrToInt(Edit11.Text, i) then
 | 
			
		||||
    ListView1.SortColumn := i;
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
procedure TForm1.Edit1Change(Sender: TObject);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user