Results 1 to 2 of 2

Thread: Basic String Question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Posts
    308

    Basic String Question

    Given a Textbox [txtVersion] and a variable [string SoftVer = "1.00"]

    I want to do the following [which works in VB6]
    txtVersion.txt = "Version: " & SoftVersion

    However C# gives me the following error: Operator '&' cannot be applied to operands of type 'string' and 'string'

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    & is bit wise operator only in C#. Use +
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

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