Mihir,
I'm quite sure, there isn't such service, though it can be added easily. I'd
create a new service object 'n_cst_miscelleanous', since this kind of
function neither fits into n_cst_string or n_cst_conversion:
function of_eliminate_array_element(ref any aany_array[], uint
ai_index) returns integer:
any lany_array[]
uint i
if ( ai_index < 1 or ai_index > Upperbound(aany_array[]) )
then return -1
for i=1 to Upperbound(aany_array[])
if ( i < ai_index ) then
lany_array[i] = aany_array[i]
elseif ( i > ai_index ) then
lany_array[i-1] = aany_array[i]
end if
next
// replace input array with it' s new version (that's why
aany_array[] is passed by reference)
aany_array[] = lany_array[]
// return new size of array
return i-1
end function
HTH, Werner
> -----Urspr�ngliche Nachricht-----
> Von: mihir munshi [SMTP:[EMAIL PROTECTED]]
> Gesendet am: Freitag, 28. April 2000 15:46
> An: [EMAIL PROTECTED]
> Betreff: PFCSIG Deleting an element from one dimensional array.
>
> Hi guys,
>
> Is there any function in PB/PFC which deletes an element from a
> One-dimensional array, if its index is known ?
>
> Thanks in advance,
>
>
> Mihir
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS,
> ADDRESS
> > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
> pfcsig
> > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]