ex75.pp 390 B

1234567891011121314151617181920212223
  1. Program Example75;
  2. { This program demonstrates the IsValidIdent function }
  3. Uses sysutils;
  4. Procedure Testit (S : String);
  5. begin
  6. Write ('"',S,'" is ');
  7. If not IsVAlidIdent(S) then
  8. Write('NOT ');
  9. Writeln ('a valid identifier');
  10. end;
  11. Begin
  12. Testit ('_MyObj');
  13. Testit ('My__Obj1');
  14. Testit ('My_1_Obj');
  15. Testit ('1MyObject');
  16. Testit ('My@Object');
  17. Testit ('M123');
  18. End.