What's The Meaning Of The Brackets In Property Definition
Apr 16, 2012What is the meaning of the square brackets around the name of a property in the definition ?
Example :
Public Property [Date] As String
What is the meaning of the square brackets around the name of a property in the definition ?
Example :
Public Property [Date] As String
I noticed in the code base I have to read that sometimes property definition includes an empty (). What's the meaning of that? And it has nothing to do with arrays.
For example :
Public Property TotalPages() As Integer
What is the meaning of having constructors (sub New) in a module, and why must they have no arguments?
View 4 RepliesIm doing a project something to do with getting the output using serial port.However, I still don't get the meaning of vbCr in my coding.
View 3 Repliesfor example. like a wikipidea or like apple is to eat or something..
View 7 Replieswhenever we go to code by double clicking on some control so we saw a body of two lines:
Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
end sub
get Intellisense in Visual Studio 2005 to display the meaning of individual enum values for a VB.NET project. This already happens for enums that are a part of the .NET library?
View 2 Repliesi want to know the meaning of false,false in the following code for odbc connectivity using vb6.0.
set db=opendatabase("dsn",false,false;"odbc;uid;pwd;dsn")
what is the meaning of the dollar sign after a method name in vb.net
like this:
Replace$("EG000000", "0", "")
i have a simple code just have a look End Class
[Code]...
When i add num1 and num2 as above, compiler gave error that -- Operator + is not defined for types "type" and "type".How to define the meaning of '+' or any other operator in such situations?
I have defined a Sub in vb.net, with 'Of' type parameter like this:
[Code]...
I want to just add number1 and number2, But as you can see error has occured where i want to sum number1 and number2 saying that '+' is not defined for type 'VarType'. how to add these variables in Such Methods.
I have a simple javascript I want to run in a contentpage (meaning inside a master). I test the javascript in a normal .aspx page like this:
HTML Code:
code:
And that works fine. Now, how do i transfer the java code to the content page? I just don't know where to put it, as I am already past the "Head" section of the page. From what i can read this should be right:
HTML Code:
code:
But that just returns an "error on page" message. I also tried putting the script in the head section of the masterpage. The error remains the same, and I do not want it there anyway. Anyone know where to place the script code?
I was just wondering what is the meaning of placing the '$' character after a function call
E.g.: Dim time as string = Format$(Now, "Long Time")
And what is funny is that it is of no use (as far as I can see).
Here is my xsl:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
[code]....
The problem is the class="pass_section" in the xsl. I need to set that value dynamically in the VB code (meaning put a run-time value in the xml to set it).
what is the exact meaning of the function:
cmd.ExecuteNonQuery()
Though i used it a lot of times while inserting,updating or deleting the entries of the database but my basic concept about this statement is not clear.......
Some of my students end up with a different icon in the Solution Explorer when they create applications. An example is the attached Exam.vb icon, which includes a little arrow into the normal Form icon (see pic) . I am guessing it means it is linked some how. When the application is zipped and submitted, an error is thrown when I unzip it to grade it which indicates that the file in not part of the project, and it references the absolute address on the original application.Any idea what caused this and how can I instruct the students to avoid it in the future?
View 5 RepliesWhat is the most similar thing in vb.net to a pointer, meaning like C poinetrs? I have a TreeView within a class. I need to expose some specific nodes (or leaves) that can be modified by external objects.
View 5 Replieswhat is the meaning of the Ampersand after Boolean in "Result as Boolean"? Also I have seen a question mark after Boolean in some 'Dim' statements. What does that mean?
View 3 RepliesSo since no one seemed to know the resolution to my last thread, which I will let die now.[code]...
View 3 RepliesI'm finding this in some legacy code and just curious what the brackets are for?
Public Enum myEnum
none = 0
abc = 2
[code]....
i wrote a code to get all information with in brackets of each sin() ,which i would like to give as my input to text box. but i am not able to get it exactly, for example i write "sin(90*2)+sin(60)+sin(60+(75*2))+sin(50)+sin(20)" in textbox i need "90*2,60,60+(75*2),50,20" as my out put here is my code what i wrote,
[Code]...
i wrote a code to get all information with in brackets of each sin() ,which i would like to give as my input to text box. but i am not able to get it exactly, for example i write "sin(90*2)+sin(60)+sin(60+(75*2))+sin(50)+sin(20)" in textbox i need "90*2,60,60+(75*2),50,20" as my out put here is my code what i wrote,
public class form1
Private Sub Button25_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button25.Click
[Code].....
i wrote a code to get all information with in brackets of each sin() ,which i would like to give as my input to text box.but i am not able to get it exactly, for example i write "sin(90*2)+sin(60)+sin(60+(75*2))+sin(50)+sin(20)" in textbox i need "90*2,60,60+(75*2),50,20" as my out put here is my code what i wrote
[Code]...
I'm finding this in some legacy code and just curious what the brackets are for?
Public Enum myEnum
none = 0
abc = 2
[code].....
What is the difference in usage of brackets around namespace? such as:
[Assembly].Load("assemblyname")
Assembly.Load("assemblyname")
What makes the brackets special?
I know the usage of the brackets in variable declaration... meaning allow usage of reserve keyword.
I am writing this Visual Basic GUI for a competition. I want to have the tournament brackets in the program but I'm facing a lot of troubles. It looks likes it requires intensive amount of work especially that there are 35 teams competing.
View 6 RepliesWhat I need is I what to get all information within the parenthesis of Sin(). For example, I have created one one textbox in my user interface. I wanted users to enter some trigonometric expresiions like " sin(90+(25+25))". For that I want all the information present with in the parenthesis of sin().
Public Class Form1
Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button18.Click
Dim i As Integer = 0
Dim j As Integer = 0
Dim x As Integer = TextBox1.Text.IndexOf("sin", i)
[Code] .....
I tried above code to get the string within the parenthesis of sin() but I am not able to get the answer.
How do i remove the brackets from a string that looks like this:
[anything inside here]??
I would like to do it in one line of code
I converted the following query from C#:
src.Select((c, i) => src.Substring(i)).Count(sub => sub.StartsWith(target))
To the VB.NET query:
src.[Select](Function(c, i) src.Substring(i)).Count(Function([sub]) [sub].StartsWith(target))
Using Developer Fusion. I was just wondering why the VB.NET version has [] throughout.
I have this url, [URL]. I need the {zip}, because in my code, when this page opens, I replace the {zip} with a zipcode say 10001. But in aspx, when i put validation for that txtbox, it wont let the {} pass through. This is the validation -
ValidationExpression="http://([w-]+.)+[w-]+(/[w- ./?%&=]*)?"
regularexpressionvalidator.
How can I get the curly brackets in sql server? Which is my db in backend.