[ltk-user] Saving entry content to file
bl4
bl4.929b at playker.info
Thu Sep 2 08:11:56 UTC 2010
On 09/01/2010 08:44 AM, Louis A. Turk wrote:
> Hi Peter Herth and everyone else,
>
> I'm rather new to Lisp and to LTK, but learning steadily. I'm stuck with
> a problem. I've successfully used ltk to create a form, but don't know
> how to save the data entered into the form to my database. I suspect
> that my problem is improperly supplying the data from the entry widget
> to the store-save-rec function (see line 279 below). But I may just have
> something else fundamentally wrong.
>
> Would someone please tell me what I'm doing wrong, and how to fix it?
>
> I'm using ltk 0.91
>
> Thanks in advance!
> Lou
>
> PS Also, how do I clear all the fields in preparation for entering
> another record of data?
>
I'm new too but maybe what you need is (text widget) like this:
:command (lambda () (store-save-rec ;line 279
(text index)
(text freq)
etc.
To clear a text widget you can (setf (text widget) "")
--
bl4
More information about the ltk-user
mailing list