A script question

Joe Lewis Wilkins pepetoo at cox.net
Thu Jul 12 20:54:09 EDT 2007

Hi Charles,

First of all, do you actually have fields with the names: name2,  
examier2, vsmiFld, vsmiFld2, etc...
Then, though I agree that a repeat something like you tried should  
probably work, there are all sorts of potential problems in what  
you're doing. I don't like 'put "name2, etc..." ' into tNames and  
then trying to read each of the names as items in the repeat loop.  
Have you followed the script in the debugger to see that everything  
is where you think it is? I think this will point out your problem. I  
forgot to ask: do you know how to use the debugger?

Joe Wilkins

On Jul 12, 2007, at 4:58 PM, Charles Szasz wrote:

> I have tried to use the following script to clear fields but I am  
> getting a
> weird error message in the script editor:
> chunk: no such object
> file
> put empty into field tName
> This is weird because field tName is a variable.
> Here is the script:
> put  
> "name2,examier2,vsmiFld,vsmiFld2,ci1,vsmiFld3,vsmiFld5,vsmiFld4" into
> tNames
> REPEAT for each item tName in tNames -- Clears all fields
> put empty into field tName
> I don't have to use this script but I hate to empty the fields the  
> long way:
> put empty into field "name2" of card "index"
> put empty into field "examiner2" of card "index"
> put empty into field "vmiFld" of card "Index"
> etc.
> Can anyone tell me why repeat script does not work?
> -- 
> View this message in context: http://www.nabble.com/A-script- 
> question-tf4071547.html#a11571086
> Sent from the Revolution - User mailing list archive at Nabble.com.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

More information about the Use-livecode mailing list