![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I didnt notice I'd put the right square bracket outside the quotes in the above list statement. It did not produce an error but listed the MD. Doing... LIST MD = [ 'NEBULOUS' results in a 'no items present'. Trying LIST MD = NEBULOUS ] listed the MD. So why does D3 digest this abberant List statement, but only for the right square bracket? Jeremy Thomson |
#3
| |||
| |||
|
|
panzerboy (AT) gmail (DOT) com> wrote in message [...] NEBULOUS] means any string starting with NEBULOUS. ['NEBULOUS' means any string ending with 'NEBULOUS' What's the problem? Nothing in the MD ending in quote-NEBULOUS-quote? Mark Brown Putting the right square bracket after the quoted item was a typo that |
#4
| |||
| |||
|
|
Mark Brown wrote: panzerboy (AT) gmail (DOT) com> wrote in message [...] NEBULOUS] means any string starting with NEBULOUS. ['NEBULOUS' means any string ending with 'NEBULOUS' What's the problem? Nothing in the MD ending in quote-NEBULOUS-quote? Mark Brown Putting the right square bracket after the quoted item was a typo that suprised me in that it listed the MD. To my way of thinking the parser should have tokenised 'NEBULOUS' then complained that the ] is unexpected. But no it took it fine. There is no 'NEBULOUS' in the MD,... :LIST MD = '[NEBULOUS]' [401] no items present. Doing the list properly (brackets inside the quotes). :LIST MD = '[NEBULOUS' [401] no items present. :LIST MD = 'NEBULOUS]' [401] no items present. Doing the list inproperly with the brackets outside the quotes :LIST MD = ['NEBULOUS' [401] no items present. :LIST MD = 'NEBULOUS'] Page 1 MD MD............... dos.bridge MENUS a select print-filter off CRS lptr ... So whats special about the right square bracket? I'm guessing the parser treats the ] as second item id to match to, but again, why not the left square bracket as well? :LIST MD = 'NEBULOUS'[ [401] no items present. :LIST MD = ]'NEBULOUS' Page 1 MD MD............... dos.bridge MENUS a select print-filter off CRS Its just one of the quirky things you encounter in Pick from time to time that makes me wonder ... WHY? I'll bet this is a 'feature' unique to D3. Jeremy Thomson |
#5
| |||
| |||
|
|
I didnt notice I'd put the right square bracket outside the quotes in the above list statement. It did not produce an error but listed the MD. Doing... LIST MD = [ 'NEBULOUS' results in a 'no items present'. Trying LIST MD = NEBULOUS ] listed the MD. So why does D3 digest this abberant List statement, but only for the right square bracket? Jeremy Thomson |
#6
| |||
| |||
|
|
I didnt notice I'd put the right square bracket outside the quotes in the above list statement. It did not produce an error but listed the MD. Doing... LIST MD = [ 'NEBULOUS' results in a 'no items present'. Trying LIST MD = NEBULOUS ] listed the MD. So why does D3 digest this abberant List statement, but only for the right square bracket? Jeremy Thomson |
#7
| |||
| |||
|
|
Now, can anybody clearly explain the difference of using single quotes and double quotes in an AQL statement?? HI |
#8
| |||
| |||
|
|
"Dale" <benedictknowspam (AT) silk (DOT) net> wrote in message news:12br9for2u9ef2d (AT) corp (DOT) supernews.com... Now, can anybody clearly explain the difference of using single quotes and double quotes in an AQL statement?? HI Single quotes indicate an ID double quotes indicate a value required. I think that the differentiation vanished with AP in the late 1980's. However if you want to get ID 1 from a file that has a default dictionary of 1, 2,3.... ( a very valuable feature when used properly for default lists. Please do not use it as 1 = attribute 7, 2 = attribute 13 etc as you will confuse everbody) then you will still need to show LIST FILENAME '1' Peter McMurray |
#9
| |||
| |||
|
|
I didnt notice I'd put the right square bracket outside the quotes in the above list statement. It did not produce an error but listed the MD. Doing... LIST MD = [ 'NEBULOUS' results in a 'no items present'. Trying LIST MD = NEBULOUS ] listed the MD. So why does D3 digest this abberant List statement, but only for the right square bracket? Jeremy Thomson |

#10
| |||
| |||
|
|
You might need to quote the quote. BobJ "Peter McMurray" <excalibur21 (AT) bigpond (DOT) com> wrote in message news:0%hvg.7407$tE5.2523 (AT) news-server (DOT) bigpond.net.au... "Dale" <benedictknowspam (AT) silk (DOT) net> wrote in message news:12br9for2u9ef2d (AT) corp (DOT) supernews.com... Now, can anybody clearly explain the difference of using single quotes and double quotes in an AQL statement?? HI Single quotes indicate an ID double quotes indicate a value required. I think that the differentiation vanished with AP in the late 1980's. However if you want to get ID 1 from a file that has a default dictionary of 1, 2,3.... ( a very valuable feature when used properly for default lists. Please do not use it as 1 = attribute 7, 2 = attribute 13 etc as you will confuse everbody) then you will still need to show LIST FILENAME '1' Peter McMurray |
![]() |
| Thread Tools | |
| Display Modes | |
| |