Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Russ1005 (Programmer) (OP)
13 Jul 05 12:33
In VFP 7, I have a combo box  where:

boundcolumn = 2
columnlines = .F.
DisplayValue = Dealer
name = cboPayeeType
rowsource = Dealer,D,Manufacturer,M,Distributor,R
rowsourcetype = 1 - Value

I want Dealer/ D to be the default value but it is currently blank on the screen even though displayvalue contains "dealer".  The cboPayeeType.value is 'D' when Dealer is selected, 'M' when Manufacturer is selected, etc.. (boundcolumn 2).

How do I make Dealer the default?
crewchiefpro6 (Programmer)
13 Jul 05 13:48
You need to use:


in your init of the form.

This will highlight the first choice which should be dealer


Russ1005 (Programmer) (OP)
13 Jul 05 14:02
Actually that displays a 6 which is the rowsource value that is the primary key to a record that contains a memo field that holds the following:  Dealer,D,Manufacturer,M,Distributor,R
Russ1005 (Programmer) (OP)
13 Jul 05 14:12
This code is in the init event of the parent class.
This.Rowsource = LoadMemo(This.Rowsource)
Russ1005 (Programmer) (OP)
13 Jul 05 15:09
I put the following code in the form's init event and it's working now.

thisform.cboPayeeType.Value = 'D'

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close