Re-think that. What you need is a CLASS, maybe a field, or even a record.
You can easily create instances of a class, and keep your information there. Just use one set of textboxes, with meaningful names for the destination/output
Control Collections - Gee that sounds so simple - is that a One Liner like my example or is it a War and Peace effort ? (I'm new to VB.Net so I don't have a clue what you mean)
Are you able to show an example please using my example of trying to duplicate Text1(1), Text1(2) etc
Control Collections - Gee that sounds so simple - is that a One Liner like my example or is it a War and Peace effort ? (I'm new to VB.Net so I don't have a clue what you mean)
Shoot me for trying to help George... So, sorry.
OK, back to the question at hand. George, some time ago, you asked the exact same question, and you basically got the exact same answers / some small variations on these answers ( Collections ) as well. Have a look at these threads :
Firstly, Sincere apologies for pushing the wrong buttons .. you really are a patient and helpful friend who deserves better than my frustrations
You are right - I did ask the same question before - I was hoping to get a different answer - I was hoping it was possible in VB.Net to "Write out a VB Instruction, then cause it to be executed"
Something like writing out a script file in VB6 then executing it, I believe
The script files (from memory) can even be keyed into a text box then executed from the string produced
Hopefully this could also be done in VB.Net (process a script file)
I was hoping you could key into a textbox, an instruction like
Code:
TextBoxABC.Text = "AAAAAAAAAAA"
And by sending that text to a script processor, it would put the value into the textbox. I was hoping this could be executed from within the actual program, rather than launching a batch file.
I have a vague memory you can do this in VB6 (even though I've never done it myself)
Did you read my post about the problems with scripting that users can access, but you can use jScript or regular Scripting
Converted:
Code:
Option Strict Off
Option Explicit On
Friend Class Form1
Inherits System.Windows.Forms.Form
' Add a reference to Microsoft Script Control 1.0
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Dim dbl1 As Double
Dim x As New MSScriptControl.ScriptControl
Dim z As Short, a As Short
Dim q As String
z = 55
a = 24
q = "*"
x.Language = "vbScript"
MsgBox(VB6.Format(x.Eval(z & q & a), "standard"))
' ===============================================
Dim str1 As String = "(5+50)*2/3"
dbl1 = (x.Eval(str1))
MsgBox(dbl1)
End Sub
End Class
This could be entered into a textbox:
Code:
str1 = "Format C:\"
dbl1 = (x.Eval(str1))
Last edited by dglienna; May 31st, 2009 at 01:35 PM.
The "logic" by David ( in Post # 13 ), George, is called Generics. A very very powerful technology present with .NET, which can be so easily implemented. Yes, at first when you delve into Generics etc. it may seem a bit odd, or tough, but, once you get the hang of it, you will struggle to find places where not to use it
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.