Author Topic: Empty returns from RET_ARRAY  (Read 954 times)

Offline DavidW

  • Planewalker
  • *****
  • Posts: 316
Empty returns from RET_ARRAY
« on: March 01, 2019, 02:46:03 PM »
RET_ARRAY is wonderful, but is it possible to stop it complaining that the return array is uninitialized? There are quite a few cases where I want to return an array that might or might not be empty; I inevitably have to put something like SET $output_array("null")=0 and then filter out the null value when I analyze the output.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Empty returns from RET_ARRAY
« Reply #1 on: March 07, 2019, 09:13:26 AM »
I'll need to do a deeper dive in the code, but: maybe. The current implementation is to fail loud, but as you say, no array values need not be a failure.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: