F
Fred
Following what I think are relevant portions of my code:
---------------Begin Code---------------------
Public Class LOLoadingBoard
Inherits System.Web.UI.Page
Dim MaxNum As Integer
Dim LNToEd As Integer
Dim CStatClr As Integer
Dim lBox() As Integer, lStatusColor() As Integer, lTrimWt() As Integer
Dim lPanelWt() As Integer, lPurlinWt() As Integer, lOtherWt() As Integer
Dim lWt() As Integer, lRoute() As String, lStatus() As String
Dim lTrimTime() As String, lPanelTime() As String, lPurlinTime() As
String
Dim lWalked() As String, lCompleted() As String, lBOL() As String
Dim lTrailerNum() As String, lDriver() As String, lNotes() As String
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
LNToEd = 3
CStatClr = 1
MaxNum = 13
Response.Write (" LNToEd = " & LNToEd & "<BR>CStatClr = " & CStatClr
& "<BR>MaxNum = " & MaxNum )
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
LNToEd = 7
CStatClr = 7
MaxNum = 7
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2Click
Response.Write (" LNToEd = " & LNToEd & "<BR>CStatClr = " & CStatClr
& "<BR>MaxNum = " & MaxNum )
End Sub
End Class
---------------End Code---------------------
You can see I have declared these vars at the Class level of this ASPX page.
Most of theses vars are available to be updated or to return their values in
ALL other subroutines under this class.
MaxNum and all of the arrayed variables are working this way.
My problem is that LNToEd and CStatClr are NOT available.
Here is an example of what I am seeing
When I run the Code it displays:
LNToEd = 3
CStatClr = 1
MaxNum = 13
If I then immediately click Button2 I get:
LNToEd = 0
CStatClr = 0
MaxNum = 13
If I then click Button1 I get:
LNToEd = 7
CStatClr = 7
MaxNum = 7
If I then click Button2 again I get:
LNToEd = 0
CStatClr = 0
MaxNum = 7
This is of coure not my entire application but this is representative of
what is happening. I don't get it. The MaxNum and array vars (once they
are Redim'ed when needed) seem to be responding the way I would expect for a
var declared with a class level scope. But just these two are giving me
troubles. I have hunted through the entire code and there are no other
places placing a 0 value in these var that I can see.
Any ideas are appreciated.
thanx
Fred
---------------Begin Code---------------------
Public Class LOLoadingBoard
Inherits System.Web.UI.Page
Dim MaxNum As Integer
Dim LNToEd As Integer
Dim CStatClr As Integer
Dim lBox() As Integer, lStatusColor() As Integer, lTrimWt() As Integer
Dim lPanelWt() As Integer, lPurlinWt() As Integer, lOtherWt() As Integer
Dim lWt() As Integer, lRoute() As String, lStatus() As String
Dim lTrimTime() As String, lPanelTime() As String, lPurlinTime() As
String
Dim lWalked() As String, lCompleted() As String, lBOL() As String
Dim lTrailerNum() As String, lDriver() As String, lNotes() As String
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
LNToEd = 3
CStatClr = 1
MaxNum = 13
Response.Write (" LNToEd = " & LNToEd & "<BR>CStatClr = " & CStatClr
& "<BR>MaxNum = " & MaxNum )
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
LNToEd = 7
CStatClr = 7
MaxNum = 7
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2Click
Response.Write (" LNToEd = " & LNToEd & "<BR>CStatClr = " & CStatClr
& "<BR>MaxNum = " & MaxNum )
End Sub
End Class
---------------End Code---------------------
You can see I have declared these vars at the Class level of this ASPX page.
Most of theses vars are available to be updated or to return their values in
ALL other subroutines under this class.
MaxNum and all of the arrayed variables are working this way.
My problem is that LNToEd and CStatClr are NOT available.
Here is an example of what I am seeing
When I run the Code it displays:
LNToEd = 3
CStatClr = 1
MaxNum = 13
If I then immediately click Button2 I get:
LNToEd = 0
CStatClr = 0
MaxNum = 13
If I then click Button1 I get:
LNToEd = 7
CStatClr = 7
MaxNum = 7
If I then click Button2 again I get:
LNToEd = 0
CStatClr = 0
MaxNum = 7
This is of coure not my entire application but this is representative of
what is happening. I don't get it. The MaxNum and array vars (once they
are Redim'ed when needed) seem to be responding the way I would expect for a
var declared with a class level scope. But just these two are giving me
troubles. I have hunted through the entire code and there are no other
places placing a 0 value in these var that I can see.
Any ideas are appreciated.
thanx
Fred