IonicWind Software

IWBasic => General Questions => Topic started by: Brian on August 13, 2020, 11:34:37 AM

Title: Retriever
Post by: Brian on August 13, 2020, 11:34:37 AM
I was looking at an old IBA program by BizzyPak, and have been trying to convert it, but I have got stuck on Dereferencing. I admit, it's a Dark Art to me! If anyone can sort it, it would be a great help to me in understanding how Typecasting and Dereferencing work

Brian
Title: Re: Retriever
Post by: kirkkaf13 on August 18, 2020, 11:10:09 AM
Hi Brian,

I took a quick look at the Retriever, not going to pretend I understand it either but node hasn't been initialized has it?

Kirk
Title: Re: Retriever
Post by: Brian on August 18, 2020, 11:24:51 AM
Well, this is as far as I have got. It compiles, but after selecting a keyword and pressing Begin Search, it goes off into Never-Never Land!

Brian
Title: Re: Retriever
Post by: kirkkaf13 on August 18, 2020, 01:16:26 PM
I think it's because of this:

node = nodes.nxt
 WHILE node <> NULL
 node = nodes.nxt
 ENDWHILE

nodes.nxt is a pointer to nothing the value is probably zero and the condition is never met.