E' partita la raccolta fondi per un nuovo datagrid, che sia più avanzato completo e più adatto anche per i dispositivi mobili.Se vi piace l'idea, potete leggere e finanziarla qui: https://livecode.com/project/datagrid2/
E' partita la raccolta fondi per un nuovo datagrid, che sia più avanzato completo e più adatto anche per i dispositivi mobili.on OpenCard revUpdateGeometryend OpenCard
function sortedArray @pArray # fetch the keys and sort them using the array entry values get the keys of pArray sort lines of it by pArray[each] split it by return # create a new sorted array using the mapped keys put 1 into tNextIndex repeat for each element tIndex in it put pArray[tIndex] into tSortedArray[tNextIndex] add 1 to tNextIndex end repeat return tSortedArray end sortedArrayfunction logarithmicSearch @pArray, pItem, pLeft, pRight local tIndex local tResult # create a new range pointer that points to the item that lies # right between the left and right range pointers put round ((pLeft + pRight) / 2) into tIndex # if we have found the matching item then stop processing and return it if pArray[tIndex] = pItem then put tIndex into tResult # if any of the range pointers have the same value # then the item we are looking for does not exist in the array and we return 0 else if (pLeft = pRight or pLeft = tIndex or pRight = tIndex) then put 0 into tResult # if we have not yet found a match and none of the range pointers have the same # value then call logarithmicSearch again with a smaller search range # we are effectively halving the search area, each time we call logarithmicSearch else if pArray[tIndex] > pItem then put logarithmicSearch (pArray, pItem, pLeft, tIndex) into tResult else put logarithmicSearch (pArray, pItem, tIndex, pRight) into tResult end if return tResultend logarithmicSearchput sortedArray(tArr) into tArrput the number of lines of the keys of tArr into tnkeysput logarithmicSearch (tArr, "testo da cercare", 0, tnkeys )