If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > combo field not working

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-07, 00:37
data_monger data_monger is offline
Registered User
 
Join Date: Jun 2007
Posts: 2
combo field not working

I have a combo field that is popluated from a table. I can click the field and use the pull down, then select the item, but the field does not update. The status bar is showing that the form is in Edit mode and the record appears locked when you use the pull down. I can manually enter data fine.
This worked under Paradox 9 SP3 running on Windows98SE.

Moved to Windows XP and now all the combo fields are exhibiting this behaviour. I have tried upgrading to Paradox 9 SP4 and Paradox X3 but they all do the same thing.

Has anyone seen this?

Thank you in advance for your replies.
Reply With Quote
  #2 (permalink)  
Old 06-22-07, 01:26
data_monger data_monger is offline
Registered User
 
Join Date: Jun 2007
Posts: 2
combo field problem picked up in corel.paradox newsgroup

Please show the code.

if there is no code involved, you have to give a detailed description of how
to recreate this. Can you recreate it in a new form?

--
Bertil Isberg - CTECH
Paradox buglist:
online: http://hem.bredband.net/bertilisberg/
__________________________________________________ _______________
Ok,

I have traked down the offending code and I can reproduce it. What do you
think?

This code syncs the form display to the client number returned by the libary
method
mealsLib.returnlcnt()

The data model consists of a single table named Client.db. The fields are
placed in a 1x1 MRO.

Client number is the primary index. There is also a lastname-firstname
secondary index.

This is in the setfocus method of the form. A calling form opens (or moves
to) the form after setting the Library variable.

var
clientTC TCursor
dmField, dmTbName String
dyCriteria DynArray[] Number
endVar

recvclnt = mealsLib.returnclnt()
dmTbName = "Client.db"
dmField = "CLIENT #"
dyCriteria[dmField] = recvclnt
dmAttach(clientTC, dmTbName)
clientTC.setGenFilter(dyCriteria)
dmResync(dmTbName, clientTC)
__________________________________________________ ________________Here is an alternative piece of code that does the same sync thing but with
the same impact on the combo field:

var
clnt#UIO UIObject
clientTC TCursor
endvar

recvclnt = mealsLib.returnclnt()
clientTC.open("Client.db")
clientTC.locate("Client #", recvclnt)
clnt#UIO.attach(Client_#)
clnt#UIO.resync(clientTC)
clientTC.close()
__________________________________________________ _______________
I have confimed this with a new form, only 2 field ojbects (client #, last name) and one combo object (diet).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On