Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index




On Sat, 2017-09-16 at 18:37 +0200, Harvey Nimmo wrote:
On Sat, 2017-09-16 at 18:31 +0200, Robert Großkopf wrote:

Hi Harvey,



But shouldn't the CONCAT( ' & ', [Partnervorname] ), '' )
actually
return a NULL due to the '' (i.e. not a space, zero length)?

NULL: There is nothing inside, no string, no number, no data ...
Empty: Could only be for strings - nothing to see, but its a string
with
zero length.

Base will save for default all fields without content as NULL, not
as
fields, which are empty. The difference: You could concatenate
empty
fields with content of other fields without problems, because it
recognizes an empty string. With NULL it won't work.

The Help in LibreOffice and the GUI is missleading here, because
Base
won't save fields as empty fields but as NULL.

Regards

Robert
 

Thanks, Robert. I had a feeling that would be the answer. Many thanks
for helping me to clear that up. Your proposed syntax is certainly
more
economical than the COALESCE alternative.

Cheers
Harvey

Hi Robert,
....but as I now have discovered, the COALESCE command is the correct
solution to cope with several alternative syntax combinations by
concatenation. Each CONCAT expression in the COALESCE parameter list
can represent one of the desired syntax combinations, always assuming
that the successive expressions in the parameter list can 'disqualify'
themselves by returning a NULL from CONCAT before reaching the desired
combination. It strikes me as being quite an elegant solution.

Many thanks for your help.

Cheers
Harvey


-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.