[fpc-devel] Problem with func/proc parameters and buttons in Laz

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Wed Nov 26 21:37:03 CET 2008


> > > 2, When I write procedure or function with parameter String[31] it
> > > doesn't work. It writes Forward declaration not solved, however it is.
> > Please provide a minimal example. You probably have some syntax problem.

What you would like to do in this case is to declare a custom type:

MyStringType = string[31];

And replace your code by :

function Test(s: MyStringType): boolean; 

HTH Darius




More information about the fpc-devel mailing list