Click here to Skip to main content
15,896,379 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini25-Aug-10 13:21
Sam Martini25-Aug-10 13:21 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Luc Pattyn25-Aug-10 13:32
sitebuilderLuc Pattyn25-Aug-10 13:32 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini25-Aug-10 13:54
Sam Martini25-Aug-10 13:54 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Luc Pattyn25-Aug-10 13:59
sitebuilderLuc Pattyn25-Aug-10 13:59 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini25-Aug-10 14:20
Sam Martini25-Aug-10 14:20 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Luc Pattyn25-Aug-10 14:22
sitebuilderLuc Pattyn25-Aug-10 14:22 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
johannesnestler26-Aug-10 2:55
johannesnestler26-Aug-10 2:55 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini26-Aug-10 4:21
Sam Martini26-Aug-10 4:21 
Well, First, I don't know in which category I can put your answer, it is annoying as you said, "Yes", but I will not kill my self if that is your purpose :P

Second, I don't know if you read the whole conversation, that what I am asking for can be done in C, and Foxpro, and Python so, knowing the basics of the function or parameter will not help much. If you work in another programming language such Foxpro or Python, I guess it is normal to check if that can be done in vb.net such as these 3 language above.

Third, I know to overcome what I am asking about and that by using old trick being used since vb6 old days which is the collection or hashtable

Dim par1 As New Hashtable
par1.Add("'USA'","address")
myfunc("customer",par1)

Function myfunc(ByVal TableName As String,FieldNameValue As Hashtable)
        Dim sql = "SELECT * from " + TableName + " WHERE " + FieldNameValue.Item(key:=FieldNameValue.Keys(0)) + " = " + FieldNameValue.Keys(0)
        MsgBox(sql)
End Function


As I said, I am building my framework, asking for some technique if it exist or no, may change the whole idea of my coding in case the answer was "yes"

Forth, this is personal question to you.
Since old days of vb6 and till 2010 of each release, people asking such question, and we got always the same answer "No", ok, but why? because vb is not a scripting language. arrrg, so? why not include such powerful technique in the vb? that will cause Microsoft to lost money regarding it supported in c? why not vb after 4 .net release does not has it? it should be piece of cake for the developer with the existing of that nasty reflection in there hands. That will help a lot of building dynamic Sql statement and building code on the fly and execute it. Security issue? then remove it from c.

my question here not to Microsoft, but to you.

Why you are against it?
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
johannesnestler3-Sep-10 23:05
johannesnestler3-Sep-10 23:05 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini5-Sep-10 6:55
Sam Martini5-Sep-10 6:55 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
johannesnestler5-Sep-10 12:17
johannesnestler5-Sep-10 12:17 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini5-Sep-10 23:49
Sam Martini5-Sep-10 23:49 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Dave Kreskowiak26-Aug-10 3:37
mveDave Kreskowiak26-Aug-10 3:37 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini26-Aug-10 4:46
Sam Martini26-Aug-10 4:46 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
johannesnestler3-Sep-10 23:18
johannesnestler3-Sep-10 23:18 
JokeRe: Get the Variable name which passed the value to the Parameter Pin
Peter_in_278025-Aug-10 13:48
professionalPeter_in_278025-Aug-10 13:48 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Luc Pattyn25-Aug-10 13:56
sitebuilderLuc Pattyn25-Aug-10 13:56 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Peter_in_278025-Aug-10 14:33
professionalPeter_in_278025-Aug-10 14:33 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
PIEBALDconsult25-Aug-10 15:53
mvePIEBALDconsult25-Aug-10 15:53 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Luc Pattyn25-Aug-10 16:42
sitebuilderLuc Pattyn25-Aug-10 16:42 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini25-Aug-10 14:16
Sam Martini25-Aug-10 14:16 
AnswerRe: Get the Variable name which passed the value to the Parameter Pin
PIEBALDconsult25-Aug-10 15:55
mvePIEBALDconsult25-Aug-10 15:55 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini26-Aug-10 3:07
Sam Martini26-Aug-10 3:07 
QuestionNewbie trying to Magnify Flash Object... Pin
Berserker7Force24-Aug-10 14:06
Berserker7Force24-Aug-10 14:06 
QuestionHow to make a button that will copy two files and put them somewhere else Pin
mshome7724-Aug-10 1:37
mshome7724-Aug-10 1:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.