[FX.php List] Works in FX.php v4.2, breaks in v6

Dale Bengston dale.bengston at gmail.com
Thu Dec 19 10:38:24 MST 2013


Hi Leeland,

I ran into this same problem several years ago, at least as far back as v4.5.1. I guess the doc has been out of date for some time.

Dale

On Dec 19, 2013, at 11:32 AM, LELAND LONG <lelandlong at me.com> wrote:

> Dale, it does help thank you.
> 
> According to the documentation included with the current FX.php v6 build, FXDataFormat.pdf, page 1:
>    "Conventions used:
>    + $ReturnedData is used to signify the array containing the data returned by a query...."
> 
> and page 3:
>    "echo $ReturnedData['errorCode']; ...."
> 
> So, am I to assume that this documentation is now depreciated and no longer applies? Oversight perhaps? Newer documentation available?
> 
> Leland Long
> 
> 
> On Dec 19, 2013, at 11:33 AM, fx.php_list-request at mail.iviking.org wrote:
> 
>> Aha! Yes, the result of a failed query is a PHP object, not an array. So you’ll need to trap whether $newSheetResult is an object or not before you try to reference its contents. I do this be evaluating my result:
>> 
>> if (is_object($newSheetResult))
>> 	{
>> 	// There is an error; proceed accordingly.
>> 
>> 	}
>> else
>> 	{
>> 	//The query produced results; proceed accordingly.
>> 
>> 	}
>> 
>> I believe in the case that $newSheetResult is an error, the error code can be referenced like this:
>> 
>> $newSheetResult->code
>> 
>> Hope this helps,
>> Dale
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/f88c00e8/attachment-0001.html


More information about the FX.php_List mailing list