For Programmers: Free Programming Magazines  


Home > Archive > Clarion > August 2005 > Changing a files position mid-form update









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Changing a files position mid-form update
db@esl.tex.com

2005-08-16, 3:59 am

I have a browse and an update on a file, wizard generated in Clarion 4
using legacy templates. What I want to do is for a number of fields on
a form have a drop combo rather than the usual text input box. When
the user drops the combo, I'd like to list the unique values this field
already has in the file. The way I do this is to have a single queue
structure, and in the combo's dropping down event I clear the queue
then populate it by doing a sequential pass through the file, the same
file that the form is updating. (This sounds ugly, but the file will
never have huge numbers of records)

And thereby hangs the problem. I've fooled with the file the form is
updating, so its position and processing attributes are changed and the
insert fails.

What do I need to do to save and restore the context of the file being
updated?

Thanks.

db@esl.tex.com

2005-08-17, 4:59 pm


Update - Just in case at some point in the past someone bumps into this
query - wrong approach error, much better to use a file alias...



db@esl.tex.com wrote:
> I have a browse and an update on a file, wizard generated in Clarion 4
> using legacy templates. What I want to do is for a number of fields on
> a form have a drop combo rather than the usual text input box. When
> the user drops the combo, I'd like to list the unique values this field
> already has in the file. The way I do this is to have a single queue
> structure, and in the combo's dropping down event I clear the queue
> then populate it by doing a sequential pass through the file, the same
> file that the form is updating. (This sounds ugly, but the file will
> never have huge numbers of records)
>
> And thereby hangs the problem. I've fooled with the file the form is
> updating, so its position and processing attributes are changed and the
> insert fails.
>
> What do I need to do to save and restore the context of the file being
> updated?
>
> Thanks.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com