Results 1 to 5 of 5

Thread: problem declaring a constant [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    problem declaring a constant [RESOLVED]

    I'm just learning c# and I'm trying to convert a class I wrote in vb.net to help me learn.

    problem is, I'm stuck at the beginning. can someone tell me what is wrong with the syntax here?...
    PHP Code:
    using System;
    using dart.powertcp.telnet;


    namespace 
    TicketingLibrary
    {
        
    /// <summary>
        /// Summary description for Calix.
        /// </summary>
        
    public class Calix{
            private 
    Segment  Segment;
            private 
    string adsl ;
            private 
    string Day Now.Month "-" Now.Day;
            Const 
    string c_Login "act-user::Trouble:::Vanhalen1" Chr(13);
            Const 
    string c_logout "canc-user" Chr(13);
            Const 
    String c_cstat "rtrv-cstat-adsl::";
            Const 
    String c_pm "rtrv-pm-adsl::";
            Const 
    String  c_FEND1Day ":::,,FEND,,1-day,";
            Const 
    String  c_FEND15min ":::,,FEND,,15-min,";
            Private 
    String strSync(1);
            Private 
    String  strSNR "";
            Private 
    String strESL15 "";
            Private 
    String strSESL15 "";
            Private 
    String strESL "";
            Private 
    String strSESL "";
            Private 
    String strUASL "";
        
            public 
    Calix()
            {
                
    //
                // TODO: Add constructor logic here
                //
            
    }
        }

    I've got squiggly red lines under all but the first two declarations. I suspect the Const lines are causing problems.

    any ideas?
    Last edited by Andy; Aug 13th, 2004 at 12:10 PM.

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