Hi!
No, GO TOP should not cause problem.
Following is a sample of how to fill combobox by values from view manually (I used your case - 4-column combobox):
this.clear
select MyView
Scan all
this.AddItem(MyView.Field1)
this.List[this.ListCount,2] = MyView.Field2
this.List[this.ListCount,3] = MyView.Field3
this.List[this.ListCount,4] = MyView.Field4
endscan
NOTE: all expressions should be character type. If one of fields in view are not character, you should convert them to character string. You can use transform function for this:
...
this.List[this.ListCount,3] = Transform(MyView.Field3,'')
...
>Thanks Vlad
>
>I was using the "GO TOP' after the REQUERY() statement and will give it a try without it.
>
>Your suggestion to "fill list by values from view in requery method of combobox." I'm not sure about for two reasons. First, I have no idea how to do that, and secondly the View has four fields. One for the display column, the second as the BOUND column and the other two are used for values that are passed along as variables for calculations.
>
>Adam
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.