Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dynamic array parameter

0 views
Skip to first unread message

Erkan KURTULUS,

unread,
Jul 21, 2003, 11:03:05 AM7/21/03
to
i want to dynamic array parameter with default value in procedure or
function. But delphi is given error. how can i use dynamic array
parameter with default value?

Sample:
function ExecuteAdoCommand(ADOCommand : TADOCommand; szCommandText :
WideString; Parameters : array of Variant; ParametersType : array of
TFieldType = []) : Boolean;

Ignacio Vazquez

unread,
Jul 21, 2003, 11:10:49 AM7/21/03
to
<Erkan KURTULUS>; <ekur...@konsan.com.tr> wrote in message news:3f1c...@newsgroups.borland.com...

> i want to dynamic array parameter with default value in procedure or
> function. But delphi is given error. how can i use dynamic array
> parameter with default value?

Try passing nil as the default parameter instead.

Cheers,
Ignacio


Erkan KURTULUS,

unread,
Jul 22, 2003, 3:40:34 AM7/22/03
to
i could try but missing operation

Ignacio Vazquez

unread,
Jul 22, 2003, 8:58:18 AM7/22/03
to
I just took another look at your code and I just realized that your aren't
using dynamic arrays in your function declaration; you're actually using
open array parameters. Try declaring a type for the dynamic array before the
decalration and using those types instead.

Cheers,
Ignacio


0 new messages