Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-08

Problem with INSERT function

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Shane Miller: When I try to use INSERT like this Insert(charactger,string,index) I get Error: Wrong…
Shane Miller wrote
When I try to use INSERT like this Insert(charactger,string,index) I get Error: Wrong amount of parameters specified.

Try
system.insert(..)
it's a mistake I often get under Delphi, since other objects also often have a insert method; so if you use insert in the object's method that one will be used, instead of the system unit's insert for strings.

Michael.

Reply by email

Shane Miller

When I try to use INSERT like this
Insert(charactger,string,index) I get
Error: Wrong amount of parameters specified.

My uses clases is:

{$mode objfpc}

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,

  ComCtrls, StdCtrls, ExtCtrls;

Any thoughts? It must be looking at the wrong function in something I am using when it's compiling. Any help would be appreciated.

Shane

Reply by email