
July 23rd, 2007, 08:32 PM
|
|
Registered User
|
|
Join Date: Jul 2007
Posts: 1
Time spent in forums: 44 m 11 sec
Reputation Power: 0
|
|
|
Can i do dynamic variable?
Im trying to use this same code to do check and then do a math function. i want to check the lenght of a text box but i dont want to type them all in for each try statement but what i would like to is something like this: original is txt78.text.lengh..but i want it txt & strTime & .text.lengh this does not work... does anymore have any ideas for how i can do it. I also would like to do this too, cm_Compare78 to something like cm_Compare & strTime.
I have tryed string.concat but it does not work..
can someone please help me...
Thank
Shane
Code:
Try
txt78.text.lenght = 0 Then
Call LabelCheck(strTime)
Else
If txt78.text.lenght <> 0 Then
Call UpdateMath(strTime)
If cm_Compare78<> txt78.text.lenght Then
Call UpdateQuery(strTime)
If intCurrentCount >= 1000 Then
cm_Compare78 = intCurrentCount - 1000
Else
icm_Compare78 = intCurrentCount
End If
End If
End If
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
|