taking text from a DirectEntry using focusOutCommand

when I use command=function it sends the text from the entry box with it. but when i use focusOutCommand=function it doesnt send the text from the entry box with it.

Use entry.get() to return the current text in the DirectEntry.

David

can you show me an example please? i tried using it but it gives me an error ‘global name ‘entry’ is not defined’

By “entry” I mean your DirectEntry object, whatever it’s called in your code.

David

thank you, I have it working now.