Finding orphaned "put"

Robert Sneidar slylabs13 at me.com
Sat May 4 17:01:27 EDT 2013


You should be able to do this in lc. 

Put the script of <objectname> into <variablename>
-- repeat loop to put the line number of each line before eeach line in the variable
Filter <variablename> with "*put*"
Filter <variablename> without "*into*"

Put a loop around it for every object in you project and build a list of objects and line numbers. 

Sorry I'm doing this on an iPhone and its tedious but it all works in my mind. Besides, I've had 3 beers so it should work!

Bob Sneidar
IT Manager
Calvary Chapel CM
Sent from iPhone

On May 4, 2013, at 13:20, william humphrey <bill at bluewatermaritime.com> wrote:

> 2335 lines have the word "put". I haven't figured out how to tell BBedit to
> find just before a "return" and without the word "into".
> 
> On Sat, May 4, 2013 at 4:17 PM, Robert Sneidar <slylabs13 at me.com> wrote:
> 
>> Off the top of my head, put the script into a variable. Filter with
>> "put*". Filter without "into". Not sure what you mean by orphaned.
>> 
>> Erm... Without "*into*"
>> 
>> Now that I think of it prolly have to filter for "*put*".
>> 
>> Bob Sneidar
>> IT Manager
>> Calvary Chapel CM
>> Sent from iPhone
>> 
>> On May 4, 2013, at 13:05, william humphrey <bill at bluewatermaritime.com>
>> wrote:
>> 
>>> I remember reading somewhere that version 6.0 or maybe GLX2 script editor
>>> has a way to find an orphaned "put".  Anybody have any suggestions? If I
>>> search for every "put" in my 6500 lines of code it will take a while and
>> my
>>> eyes will go blurry reading each one to check if it is putting to the
>>> message box or not. Maybe there would be a way to "turn off" having a PUT
>>> go right to the message box unless you say "put variable in the message
>>> box"?
>>> _______________________________________________
>>> 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
> 
> 
> 
> -- 
> http://www.bluewatermaritime.com
> _______________________________________________
> 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