Ignore:
Timestamp:
May 12, 2010, 3:05:42 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Fixed several issues with Advanced Users tab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/GUI-config/MainU.pas

    r544 r756  
    10371037 
    10381038  procedure TMainForm.ClearGrid(Grid : TStringGrid);
    1039   begin
    1040     Grid.Cells[0,1] := '';
    1041     Grid.Cells[1,1] := '';
    1042     Grid.Cells[2,1] := '';
     1039  var i:integer;
     1040  begin
     1041    for i := 1 to 23 do begin    //elh added to clear all data as some residual remained
     1042       Grid.Cells[0,i] := '';
     1043       Grid.Cells[1,i] := '';
     1044       Grid.Cells[2,i] := '';
     1045    end;
    10431046    Grid.RowCount :=2;
    10441047  end;
     
    14781481      //Reject any value containing a "^" , ":" , ";"
    14791482      //Do we need an @ here as well?
    1480       if (AnsiPos('^',Entry.newvalue) > 0) or (AnsiPos(':',Entry.newvalue) > 0) or
     1483      if (AnsiPos('^',Entry.newvalue) > 0) or //(AnsiPos(':',Entry.newvalue) > 0) or   //elh Taken out because : used in time
    14811484         (AnsiPos(';',Entry.newvalue) > 0)then begin
    14821485         messagedlg('Invalid value entered for ' + Entry.Fieldname + #13 + #10
     
    19121915  procedure TMainForm.UserPageControlChange(Sender: TObject);
    19131916  begin
    1914     if SettingsPageControl.ActivePage = tsBasicSettings then begin
    1915       SetVisibleGridIdx(BasicUsersGrid);       
     1917    if UserPageControl.ActivePage = tsBasicPage then begin
     1918      SetVisibleGridIdx(BasicUsersGrid);
    19161919    end else begin
    19171920      SetVisibleGridIdx(AdvancedUsersGrid);       
Note: See TracChangeset for help on using the changeset viewer.