Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. variable'HylEdit' is used before its assigned a value in class file in app_code

variable'HylEdit' is used before its assigned a value in class file in app_code

Scheduled Pinned Locked Moved ASP.NET
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anbusenthil
    wrote on last edited by
    #1

    Private Sub LoadStrings(ByVal ci As CultureInfo)             Dim HylEdit As HyperLink             Dim BtnClear As Button             Dim BtnSave As Button             Dim HylView As HyperLink             Dim TDAwd As HtmlContainerControl             Dim TDAwdDes As HtmlContainerControl             Dim TDAwdpic As HtmlContainerControl             Dim TDFreq As HtmlContainerControl             Dim TDAwdcri As HtmlContainerControl             Dim TDAwdSt As HtmlContainerControl             Dim TDAwdk As HtmlContainerControl          errror here variable'HylEdit' is used before its assigned a value( its an class file inside the app_code) <--- HylEdit.Text = rm.GetString("Add", ci)             BtnClear.Text = rm.GetString("Clear", ci)             BtnSave.Text = rm.GetString("Save", ci)             HylView.Text = rm.GetString("View", ci)             TDAwd.InnerText = rm.GetString("Awd", ci)             TDAwdDes.InnerText = rm.GetString("Awddes", ci)             TDAwdpic.InnerText = rm.GetString("Awdpi", ci)             TDFreq.InnerText = rm.GetString("Freq", ci)             TDAwdcri.InnerText = rm.GetString("Awdcri", ci)             TDAwdSt.InnerText = rm.GetString("AwdSt", ci)             TDAwdk.InnerText = rm.GetString("Awdk", ci)       End Sub

    H 1 Reply Last reply
    0
    • A anbusenthil

      Private Sub LoadStrings(ByVal ci As CultureInfo)             Dim HylEdit As HyperLink             Dim BtnClear As Button             Dim BtnSave As Button             Dim HylView As HyperLink             Dim TDAwd As HtmlContainerControl             Dim TDAwdDes As HtmlContainerControl             Dim TDAwdpic As HtmlContainerControl             Dim TDFreq As HtmlContainerControl             Dim TDAwdcri As HtmlContainerControl             Dim TDAwdSt As HtmlContainerControl             Dim TDAwdk As HtmlContainerControl          errror here variable'HylEdit' is used before its assigned a value( its an class file inside the app_code) <--- HylEdit.Text = rm.GetString("Add", ci)             BtnClear.Text = rm.GetString("Clear", ci)             BtnSave.Text = rm.GetString("Save", ci)             HylView.Text = rm.GetString("View", ci)             TDAwd.InnerText = rm.GetString("Awd", ci)             TDAwdDes.InnerText = rm.GetString("Awddes", ci)             TDAwdpic.InnerText = rm.GetString("Awdpi", ci)             TDFreq.InnerText = rm.GetString("Freq", ci)             TDAwdcri.InnerText = rm.GetString("Awdcri", ci)             TDAwdSt.InnerText = rm.GetString("AwdSt", ci)             TDAwdk.InnerText = rm.GetString("Awdk", ci)       End Sub

      H Offline
      H Offline
      himanshu2561
      wrote on last edited by
      #2

      you have not assigned the variable.It has to be instantiated before using it. Dim HylEdit As New HyperLink

      himanshu

      A 1 Reply Last reply
      0
      • H himanshu2561

        you have not assigned the variable.It has to be instantiated before using it. Dim HylEdit As New HyperLink

        himanshu

        A Offline
        A Offline
        anbusenthil
        wrote on last edited by
        #3

        Dim TDAwdDes As HtmlContainerControl---> these r html contrtols which is showing an error new cannot be used in class tat is declared must inherit             Dim TDAwdpic As HtmlContainerControl TDAwd.InnerText = rm.GetString("Awd", ci)             TDAwdDes.InnerText = rm.GetString("Awddes", ci)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups