assign constant int using hex value


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: assign constant int using hex value

  1. #1
    Join Date
    Apr 2006
    Posts
    2

    assign constant int using hex value

    Hi,
    assigning a constant variable using a hex value works in VB.NET and naturally in C++.

    vb.net:

    Const CONST_VAR As Integer = &H10 ' hex value assigned to const integer


    For some I cannot find a C# solution for this? Any ideas? Thanks.

  2. #2
    Join Date
    Apr 2006
    Posts
    2

    got it

    yeah yeah - this VB.NET job is getting to me.....=()

    const int CONST_VAR= 0x10; // hex value assigned to const integer

Similar Threads

  1. KeyListener not responding
    By lordanki in forum Java
    Replies: 3
    Last Post: 04-04-2006, 10:13 AM
  2. queues how to print it
    By xsouldeath in forum Java
    Replies: 0
    Last Post: 12-10-2005, 10:56 PM
  3. Input string was not in a correct format
    By mdengler in forum ASP.NET
    Replies: 0
    Last Post: 11-26-2002, 02:32 PM
  4. Producer Consumer Thread
    By Chirag in forum Java
    Replies: 6
    Last Post: 04-10-2002, 05:22 AM
  5. INSERT for multiple tables with IDENTITY
    By Kay in forum Database
    Replies: 1
    Last Post: 07-04-2001, 05:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center