remove empty lines in DG

Bob Sneidar bobsneidar at iotecdigital.com
Fri Dec 7 19:18:32 EST 2018


This can happen if there are keys in the data that are not numbered. Try getting the dgData of the datagrid and examining the array in the debugger. That should show you your keys. You can possibly do a repeat with i = 1 to <the highest numerical key in the array> and populate another array with the records from the original array, then set the dgData to the new array. 

Bob S


> On Dec 7, 2018, at 11:16 , JJS via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi,
> 
> 
> i don't know why but with one stack i have when the DG is populated, empty lines at the top which i can't seem to remove.
> 
> Data is being fetched from a DB, then base64decoded, then decrypted. In neither state i could find an empty line.
> 
> Now it seems only with this stack on windows.
> 
> The same trick i do on windows and mobile with other stacks and the DG and this seems to work ok.
> 
> I tried to remove the empty lines but no luck. and also:
> 
> 
> *--set the dgProp["sort by column"] of group "DataGrid 1" of card 1 to "Nummer"*
> 
> *dispatch*"SortByColumn"to*group*"DataGrid 1"ofcard1with"Nummer"
> 
> Anyone has a trick? before i decide to delete the DG and replace with a new one.
> 
> 
> thanks!
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list