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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GRIDS - again 1

Status
Not open for further replies.

itflash

Programmer
Joined
Jul 18, 2001
Messages
535
Location
GB
Hi again, grids, my fav subject - NOT

In my previous threads, I talked about a combo box in a thread. MSDN does the Tasmanian vfp example which does this! But mine does not work.

Everything is the same, except my grid keeps returning the table columns in the order of the table, even though I specify a control source for a control. Why is this?

I have done everything the same, but it just does not work.


Hope someone can help a fustrated foxpro programmer. >:-<


PS: I am working in design time.
 
Hav you set the control source for the columns, and have you set the record source for the grid at design time ?

HTH,
Weedz (Wietze Veld)
My private project:CrownBase source code can be downloaded !!
 

ah ha, not for the columns. there ya go.

BUT, my combo box is returning the list item number and not the bound column from the SQL statement. I am using the statement &quot;me.value&quot; like in the example.

Any ideas?
 

bizarre, have to find the selected line using listcount and then selected property and access the 2nd column.
it just so happens it the example app, they are the right order for the id's.



 
Convienent Example isn't it. They clearly chose the design to match VFPs cabalities.

It sometimes seems that all things in VFP are needlessly teadious. But after you have muttled through a few problems with it (and built yourself a few prototypes) you realize that VFP is actually very flexible. It just requires a lot of coding.
-Pete
 
True, but it is fustrating when you need to get something out and released quickly.

I normally write my own lock and releases and manipulations. Basically, I normally do a lot of coding, but everyone on this site implys they do not. It worries me because I feel I am not using foxpro correctly.

I suppose as long as it works.....

I have been programming in FP for around 1 year and done some small apps and one really big one. And to be honest, FP is getting on my nerves a bit.





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top