.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 23rd, 2007, 08:32 PM
asparatu asparatu is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 1 asparatu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Can i do dynamic variable?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT