MoveLast & view

Posts   
 
    
Eagle83 avatar
Eagle83
User
Posts: 37
Joined: 23-Apr-2007
# Posted on: 29-Jun-2007 01:00:51   

hi During my works in llblgen pro and langague C#.net faced me two problems: 1-how to use the view (max for exemple) give me an exemple the code please? (i don't understand the document) 2-how to use MoveLast in C#

thx for all

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 29-Jun-2007 10:49:22   

1-how to use the view (max for exemple) give me an exemple the code please? (i don't understand the document)

Do you mean you want to get the MAX value of a column? If so please consult the LLBLGen Pro manual, "Using the generated code -> Field expressions and aggregates"

2-how to use MoveLast in C#

The questionis not clear enough, I'll try to answer it in the context of my understanding. In .NET there is nothing like the old recordset, you can use a dataReader, but this is forward only and doesn't have the MoveLast, MoveFirst..etc implemented. So if you want to go to the last record of some resultSet, you may use a BindingSource which has MoveLast implemented.