Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Object Pascal Programming Language
  • Page:
  • 1

TOPIC:

How class/component to use for map strin->integer or pointer? 4 years 11 months ago #14174

  • Andrzej B
  • Andrzej B's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
or other maps;
If templates are enabled in FreePascal?

Please Log in or Create an account to join the conversation.

How class/component to use for map strin->integer or pointer? 4 years 11 months ago #14175

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Please Sir
what exactly do you mean ?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

How class/component to use for map strin->integer or pointer? 4 years 11 months ago #14176

  • Andrzej B
  • Andrzej B's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
There is module fgl.pp and has
generic TFPGMap<TKey, TData> = class(TFPSMap)
but I can't add fgl in uses part. In which package is fgl?
Maybe modules with generic are not visible untilI set options "enable generic"?

Please Log in or Create an account to join the conversation.

How class/component to use for map strin->integer or pointer? 4 years 11 months ago #14179

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
fgl.pp is part of FPC (FreePascal)
C:\codetyphon\fpcsrc\rtl\objpas\fgl.pp

so NOT need to add any Typhon IDE package to your app.
Just add to you app "uses" fgl unit, the compiler (FPC) know where FPC files are.

FPC don't knows where Typhon IDE files are, for this reason you must add packages to your app
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.
  • Page:
  • 1