Oh No..
I've just discovered that db_foreach (and others) are not setting variables in the calling context. i.e. I do a db_foreach like {select myId from myTable}
but referencing myId just throws an error complaining the variable doesn't exist.
Does anyone have any thoughts?
Thanksin advance