Delete columns... How?
JB
sundown at pacifier.com
Fri Aug 29 12:11:58 EDT 2014
On this the column to delete would
need to be joined at the end.
John Balgenorth
On Aug 29, 2014, at 9:02 AM, JB <sundown at pacifier.com> wrote:
> I am sure someone else
> can do it better but this works.
>
> on mouseUp
> put fld id 1056 into pData
> set the itemdel to tab
> split pData by column
> put pData[4] into tType
> put pData[3] into tSize
> put "size = empty" into tSize
> put pData[2] into tModDate
> put empty into tModDate —THIS COLUMN DELETED
> put pData[1] into tName
> put tModDate into pData[3]
> put tType into pData[1]
> put tSize into pData[4]
> put tName into pData[2]
>
> combine pData by column
> put pData into fld id 1056
> end mouseUp
>
> John Balgenorth
>
>
> On Aug 29, 2014, at 2:33 AM, FlexibleLearning.com <admin at FlexibleLearning.com> wrote:
>
>> Related problem to 'join columns': How to delete a column of data?
>>
>> This fails...
>>
>> on mouseUp
>> get fld 1
>> split it by column
>> delete local it[2]
>> combine it by column
>> put it into fld 2
>> end mouseUp
>>
>> It seems that 'combine by column' requires the same number of array keys as
>> the original data set.
>>
>> Hugh Senior
>> FLCo
>>
>>
>>
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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