×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

*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.

Students Click Here

Jobs

GRIDS - again

GRIDS - again

GRIDS - again

(OP)
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.

RE: GRIDS - again

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:www.crowncap.demon.nl\info\crwnbase
CrownBase source code can be downloaded !!

RE: GRIDS - again

(OP)

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 "me.value" like in the example.

Any ideas?

RE: GRIDS - again

(OP)

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.



RE: GRIDS - again

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

RE: GRIDS - again

(OP)
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.





Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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! Already a Member? Login

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