[fpc-pascal] Can variables be declared within a block?

Bernd Kreuss prof7bit at googlemail.com
Mon Oct 18 16:01:14 CEST 2010


On 18.10.2010 15:55, Frank Church wrote:

> I just want to create shorter variables like
> si :=  StringList.NameOfIndex(TableName.FieldByName('xxxx').AsString);
> ae := xxx;
> so:= yyy
> 
> to express complicated logic with them.

Maybe the usage of WITH could be helpful in some of these cases

Bernd



More information about the fpc-pascal mailing list