I.T. Discussion Community!
-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
-Collapse +Expand Paradox To/From
To/FromCODEGuides
-Collapse +Expand Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

August Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardObjectPAL Topic   Print This     

Populating Combo Field with OPal?

Populating Combo Field with OPal? in ObjectPAL topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Populating   Populating Combo   Populating Combo Field  
Most Recent Post
gcorvera
-- UNK

How can I populate a combo field with only a subset of a table?

If I use the DataSource property (as in self.DataSource = "[tablename.fieldname]")  the list is populated with all entries in the table, but I only want a subset of them.

I tried using a TCursor to filter the table, but I can't find how to manipulate the list. The code I tried is as follows, RecTC is the TCursor which has a range limited to those records I need, I the try:

   i = 1

   RecTC.Home()

   Scan RecTC :

      Prestador.PrestList.List.count = i

; Up to here it works, and I get a Combo list with blank fields, but then neither of the following work to set the value of the fields:

      Prestador.PrestList.SetProperty("List.Value",RecTC.Recurso)

      Prestador.AddString(RecTC.Recurso)

      i = i + 1

   endScan

I hope someone can help, it would seem simple but I don't know what's wrong

 Posted 8 years ago (Thread Starter)
Comment Quote
About gcorvera -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14724, No Replies Be the first!
Thread Started 11/24/2011 7:20:32 PM
View Counter=2083
Location=-- UNK 
Joined=9 years ago   MB Posts=14   KB Comments=1  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1203A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #14724 Counter
2083
Since 11/24/2011
Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech