VB Sample code in documentation

3 posts, 0 answers
  1. vb2ae
    vb2ae avatar
    19 posts
    Member since:
    Jul 2007

    Posted 02 Apr 2009 Link to this post

    Any chance of fixing the VB sample code in the documentation.  It is full of errors.

    Take this sample located here

    http://www.telerik.com/help/openaccess-orm/introduction-to-linq.html

    Dim words As String() = New String() {"Hello""world""of""Telerik""OpenAccess""ORM"}  
    Dim result As var = words.Where(Function(w As ) w.Length > 4).[Select](Function(w As ) w)  
    For Each word As String In result  
     Console.WriteLine(word)  
    Next 
    Console.ReadLine() 

    There is no var type in visual basic and the function requires a data type

    This is what the code should look tike

            Dim words As String() = New String() {"Hello""world""of""Telerik""OpenAccess""ORM"}  
            Dim result = words.Where(Function(w As String) w.Length > 4).[Select](Function(w As String) w)  
            For Each word As String In result  
                Console.WriteLine(word)  
            Next 
            Console.ReadLine() 


    Thanks
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 03 Apr 2009 Link to this post

    Hello vb2ae,
    Yes you are correct that there are some problems with the VB samples inside the documentation. We are double checking them now just to be sure that there are no more occurrences like that. The changes will be published with our next update of the documentation. Your Telerik points were updated.

    Best wishes,
    PetarP
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. vb2ae
    vb2ae avatar
    19 posts
    Member since:
    Jul 2007

    Posted 03 Apr 2009 Link to this post

    Thanks
Back to Top