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

January 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
Rank: Cadet 4th Year

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=1973
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 = P1212A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #14724 Counter
1973
Since 11/24/2011
-
   Contact Us!
 
PrestwoodBoards.com was developed and is maintainted by me. Do you have a question or suggestion? Do you see a problem? Contact me now. My goal is to build an ad-free and spam-free source of I.T. information with many contributers (ok to promote your website/company in your bio). Yes, my company Prestwood IT Solutions is mentioned in my bio which shows with every post, but you can contribute and promote your pet project too!

2,152 People Online Now!!  
Sign In to see who's online now!  Not a member? Join now. It's free!
Show more stats...


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