Re: Changing data types Concluded

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Wednesday 24 March 2004 01:01 am, Derek Parnell wrote:

>   -- Find first text record that begins with 'abcd'.
>   FindStr = allocate_string("abcd")
>   len = 4
>   offset = 0
>   while offset < FileSize do
>     result = c_func(CompareString,{0, 0, RAMADDR+offset, len, FindStr,
> len}) if result = CSTR_ERROR or result = CSTR_EQUAL then
>          exit
>     end if
>     offset += recsize
>   end while
>   -- Copy the whole record into a sequence
>   TheRecord = peek({RAMADDR+offset, recsize})

Allen,

Make sure you free that allocated string.

Euman

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu