I've got some extra time available and thought I would use some of it revisiting some old livecode stacks. I notice in one that I have used the construct "gonextfield" extensively throughout the stack, like hundreds of times. I was curious about this and looked it up but could find no reference to anything like it. There is a "go" command which can be combined with elements like "next" and "card (for "go next card") but nowhere could I fund it all strung together. Does it actually do anything? (ie. gonextfield) or is it just sitting there as another example of an unused LC container?
I know I am rusty. Interesting what fresh eyes can allow you to see.
Thanks
gonextfield
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
gonextfield
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: gonextfield
That's a custom command. If it's not throwing a "handler not found error", it's defined somewhere in your scripts.
You might try selecting it and choosing "Lookup Definition" from the right-click menu. If it's not found it may be in a backscript or behavior or library loaded later on, so you can use a breakpoint in the debugger to trace it out.
You might try selecting it and choosing "Lookup Definition" from the right-click menu. If it's not found it may be in a backscript or behavior or library loaded later on, so you can use a breakpoint in the debugger to trace it out.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: gonextfield
Hi.
Also, run "Find and Replace..." from the edit menu. But as Richard says, if it is a backScript or other esoteric location outside of all open stack files, that utility will not find it.
Craig Newman
Also, run "Find and Replace..." from the edit menu. But as Richard says, if it is a backScript or other esoteric location outside of all open stack files, that utility will not find it.
Craig Newman
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: gonextfield
You were correct; it was defined in a behavior script. Of course it was hopelessly naive (something about adding 1 to me and going to that field number) which would fail most of the time, and is probably not even necessary anyway. I've started removing it and seeing how LC handles moving from field to field under various conditions: a long term experiment.
Mark
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: gonextfield
Good.
How did you find it?
Craig
How did you find it?
Craig