Hi all.
I have been thinking practically since I first saw the printKeys() function how
cool it would be to be able to take the output of the printKeys function, work
with the text using things like filter and replace, and then recreate the array
again. I thought it would be a real pain in
Bob, what is the printKeys function? I am not finding it in the dictionary.
Is it some library?
I like the concept that you are describing it could be useful.
-= Mike
On 2012-01-20, at 2:38 PM, Bob Sneidar wrote:
printKeys
___
printKeys() is a function included with sqlYoga, but Trevor was kind enough to
make it public domain. It converts an array to text in the format:
firstkey
secondkey
thirdkey: This is the actual data
fourthkey: This is some more data
Bob
On Jan 20, 2012, at 1:19 PM,
I have an update. I didn't account for the fact that keys can be multiple
words. This updated function should do the trick.
function PKToArray thePrintKeys
put 0 into theOldKeyCount
put empty into theValue
put the itemdelimiter into theOldDelim
set the itemdelimiter to space
Note to self: ALWAYS debug first. THIS will work.
I have an update. I didn't account for the fact that keys can be multiple
words. This updated function should do the trick.
function PKToArray thePrintKeys
put 0 into theOldKeyCount
put empty into theValue
put the itemdelimiter into
How does one get it?
On 2012-01-20, at 4:36 PM, Bob Sneidar wrote:
printKeys() is a function included with sqlYoga, but Trevor was kind enough
to make it public domain. It converts an array to text in the format:
firstkey
secondkey
thirdkey: This is the actual data
It's part of the datagrid library so everyone has it, not just SQLYoga
customers.
Pete
On Fri, Jan 20, 2012 at 3:10 PM, Michael Doub m...@doub.com wrote:
How does one get it?
On 2012-01-20, at 4:36 PM, Bob Sneidar wrote:
printKeys() is a function included with sqlYoga, but Trevor was kind
Whoops my bad. You can always test it:
put This is a test into myArray[1];put printKeys(myArray)
Bob
On Jan 20, 2012, at 3:24 PM, Pete wrote:
It's part of the datagrid library so everyone has it, not just SQLYoga
customers.
Pete
On Fri, Jan 20, 2012 at 3:10 PM, Michael Doub
Hi Bob,
I might be misunderstanding your example below but you can delete a key
from an array along with all its subkeys with delete theArray[thekey].
Is that what you meant?
On Fri, Jan 20, 2012 at 11:38 AM, Bob Sneidar b...@twft.com wrote:
Why you say? Lets say you have an array that you
Yes you can. But imagine an array with 10,000 keys. Wouldn't it be nice to be
able to delete all the subkeys named myKey in that array with just one
command? (ok 3 to be honest) Or how about renaming all of a certain key or
subkey? I have yet to find a command for that. Those are just two
10 matches
Mail list logo