Mark, yes, starts at 1 though 0 has special use I believe.
As an exercise I started with element 0 for both BYTE and CSTRING and the results were similar - same error message. I have used CSTRING previously with *CHAR with other functions successfully. Will keep plugging away at it till I figure it out. Thanks for advice. Andrew Zenz ________________________________ From: email@example.com [mailto:firstname.lastname@example.org] Sent: Tuesday, 14 January 2020 5:10 PM To: email@example.com Subject: Re: [firebird-support] coding for services: invalid clumplet error On 2020-01-14 00:40, 'Andrew Zenz' and...@aimsoftware.com.au [firebird-support] wrote: > I have tried various iterations of it, as a BYTE and as Pablo Sanchez > suggests in a later response, a CSTRING, eg: > > spb_buffer BYTE,DIM(128) > > or > > spb_buffer CSTRING(128) > > As a BYTE, I fill it thus: > > spb_buffer = 2 ! which is also defined as > isc_spb_version, also tried 0010b and 02h I know nothing about Clarion, and Google doesn't give me a lot of results, but are you sure arrays in Clarion are 1-based? Mark