CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: syntax problem

  1. #1
    Join Date
    Nov 2000
    Location
    IL, U.S.A.
    Posts
    218

    syntax problem

    Question

    When I try to Input two string names and then output them in a label
    I get Compile Error Expected
    My code is:lblQuestion.Caption = (strTestName,intNumberOfQuestions)

    What is my syntax proglem?


  2. #2
    Join Date
    Dec 2000
    Posts
    38

    Re: syntax problem

    Try this:

    lblQuestion.Caption = strTestName & " " & CStr(intNumberOfQuestions)



Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured