Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting a line number in a View...
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00565959
Message ID:
00565969
Views:
18
>I need to set the Line number in my view. This updatable view has a extra field call line. This field is the number of the line according to the order set in the view.
>
>How can I set this line Number in my view? I need this field to be reset when I do Requery().

You can either scan this view and do replace on each record or do the similar procedure
private pnCount
pnCount = 0
replace Line with NewLine() all

NewLine function:
pnCount=pnCount+1
return pnCount

This is untested.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform