Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Programmer

Status
Not open for further replies.

dxladner

Technical User
Jan 3, 2007
3
US
I am a new programmer and got vfp to help me with some database solutions for my small business. I chose vfp because some other database software I have is created with VFP and it looked user friendly with the wizards. I bought the fundamentals book. I am trying to create a pull down list for a combo box in a form. It says it cannot get the builder program. Is there anymore help for a starting point for a newbie programmer.
 
Hi,
I assume you have VFP 9.0 with SP1.
Advise you to check out the Solutions examples. Would also advise you to buy "1001 things yu wanted to know about FoxPro" although written for VFP 6.0 a very good starting point.
Your question about how to create a dropdown combobox can be found in either.

Regards,

Jockey
 
Hi Dxladner,

I replied to your question yesterday, but unfortunately my reply (and another) seem to have been lost.

I suggested that you give us some more details about how you are you are trying to populate the combo. Are you using an alias, or a SQL statement, or calling the Add method, or what? Also, what actually is going wrong? Are you seeing an error message?

In my previous reply, I also welcomed you to the forum and to the world of Visual FoxPro. I'm sure you'll find it a great development tool, but, as you have probably discovered, it can be a bit daunting at first. Do persevere - it will all fall into place before long.

I also suggested that you consider posting different questions in different topics, and giving each topic a subject that reflects the nature of the question. That makes it easier for people to browse or search the topic list.

Best wishes and good luck with your VFP work.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Yes I have VFP 9.0 w/ SP1. I was trying to populate the combo box with any method possible. The one I have been trying is add item. From reading my book and some other help items is says I must create a builder file for my project. but when I right click on the combo box to go to builder for that box it says cannot find builder program.
I am looking for the easy way to populate a list. I want a pull down menu of about 4 items on my form. Thank all for your help. DL/
 
I suggest you forget about builders and concentrate on your code (your book is certainly mistaken if it says you should create a builder; you definitely don't need to do that merely to create a combo box).

Here's an example of how you can add four items to a combo, using the AddItem method. You could put this code in the Init of the combo.

Code:
THIS.AddItem("North")
THIS.AddItem("East")
THIS.AddItem("South")
THIS.AddItem("West")

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 

Mike Yearwood,

How are you?

Enter "c:\program files\microsoft visual foxpro 8\builder.app"

Shouldn't it be "c:\program files\microsoft visual foxpro 9\builder.app" instead?

 
I am looking for the easy way to populate a list. I want a pull down menu of about 4 items on my form

I always find AddItem to be an awkward way of filling a list. The easiest way is to create a little dbf to hold the four items. The ComboBox Builder will ask if you want to use a table as the row source and show you the fields available.

The big advantage of this technique is that you can extend or alter the list by changing the table - you don't have to rewrite any program code.

Geoff Franklin
 
Thank all for the help. As I create the form, I use form control toolbar to create my combobox, I then right click in the box and chose builder from the list and I get this message
" Cannot find the builder program". Thanks, DL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top