Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting 'Record out of Range' error with paramiterized V
Message
From
09/11/2000 11:52:32
 
 
To
09/11/2000 11:26:20
Adam Skowronski
Custom Designed Systems
Miami, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00439284
Message ID:
00439748
Views:
19
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):
* cboMyCombobox.Requery:
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.com
ICQ #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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform