Ignore:
Timestamp:
Aug 13, 2009, 6:27:28 PM (15 years ago)
Author:
Kevin Toppenberg
Message:

Disallows bad characters ;:

File:
1 edited

Legend:

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

    r542 r544  
    14761476    for row := 1 to Grid.RowCount-1 do begin
    14771477      Entry := GetLineInfo(Grid,CurrentUserData, row);
    1478       //Reject any value containing a "^"
     1478      //Reject any value containing a "^" , ":" , ";"
    14791479      //Do we need an @ here as well?
    1480       if (AnsiPos('^',Entry.newvalue) > 0){ or (AnsiPos('@',Entry.newvalue) > 0)} then begin
     1480      if (AnsiPos('^',Entry.newvalue) > 0) or (AnsiPos(':',Entry.newvalue) > 0) or
     1481         (AnsiPos(';',Entry.newvalue) > 0)then begin
    14811482         messagedlg('Invalid value entered for ' + Entry.Fieldname + #13 + #10
    14821483                     + #13 + #10 + 'Invalid Entry:   ' + Entry.newvalue + #13 + #10 +
Note: See TracChangeset for help on using the changeset viewer.