* * *

Author Topic: Error: identifier not found "asc"  (Read 747 times)

jerryferry123

  • New member
  • *
  • Posts: 5
Error: identifier not found "asc"
« on: March 16, 2017, 03:51:33 am »
Hi, running lazarus 1.6.4 on ubuntu 16.04 installed from deb files.  Free Pascal Compiler version 3.0.2 [2017/02/25] for x86_64. I'm a beginner with lazarus and I'm trying to use asc('A') for example. Possibly it shouldn't be used this way anyway. I'm suspecting theres something missing from the uses section in the unit1.pas. many google, bing and duckduckgo searches have returned not very much. Here is the uses section from unit1.pas
uses
  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
  Spin , Lazutils, strutils;

Any help or links for the right info would be appreciated.
« Last Edit: March 16, 2017, 04:04:06 am by jerryferry123 »

bylaardt

  • Full Member
  • ***
  • Posts: 246
Re: Error: identifier not found "asc"
« Reply #1 on: March 16, 2017, 04:02:42 am »
ord('A')

Handoko

  • Hero Member
  • *****
  • Posts: 1732
  • My goal: build my own game engine using Lazarus
Re: Error: identifier not found "asc"
« Reply #2 on: March 16, 2017, 08:43:41 am »
Hello jerryferry123,
Welcome to this Lazarus / Free Pascal forum.

If you're new in Pascal I would recommend you these worth to bookmark links:

(Free) Pascal reference guide:
http://freepascal.org/docs-html/current/ref/ref.html

Lazarus tutorials from graphics to database, and more:
http://wiki.freepascal.org/Lazarus_Documentation#Lazarus_and_Pascal_Tutorials

Step-by-step Pascal language tutorial (for newbies):
http://www.pascal-programming.info/index.php
http://www.marcocantu.com/epascal/English/default.htm
http://www.taoyue.com/tutorials/pascal/index.html

Some cool Pascal tricks:
http://lazplanet.blogspot.co.id/

Pascal video tutorials:
https://devstructor.com/index.php?page=tutorials

Have fun!  :D

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus