Comma, ')', or a valid expression continuation expected-VBForums
Results 1 to 2 of 2

Thread: Comma, ')', or a valid expression continuation expected

  1. #1

    Thread Starter
    Fanatic Member karthikeyan's Avatar
    Join Date
    Oct 2005
    Location
    inside .net
    Posts
    918

    Comma, ')', or a valid expression continuation expected

    hi,

    i am working in vb.net 2005 and Microsoft DynamicsAX4.0


    AxRecord.ExecuteStmt("Select * From %1 Where (%1.AI_ORGLAYER=='所属') && (%1.AI_ORGANIZATIONCODE == '" & struOrganizationData.OrganizationCode & "') && (%1.parentOrganizationId =='" & struOrganizationData.ParentOrganizationID & "') && (%1.HRMORGANIZATIONID != '" & struOrganizationData.OrganizationID_OldKey & "')")

    in this query it shows the compilation error as Comma, ')', or a valid expression continuation expected in the above mentioned line.so please any one help me solve this problem please
    Loving dotnet

  2. #2
    Fanatic Member stlaural's Avatar
    Join Date
    Sep 2007
    Location
    Quebec, Canada
    Posts
    682

    Re: Comma, ')', or a valid expression continuation expected

    In VB.NET , if a statement uses more than one line you must add " _" at the end of each line that is not the last one. the underscore is the continuation character.

    Example

    my_variable = _
    my_other_variable

    Hope this helps.

    ALex

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.