Forum Moderators: open
In programming, a contiguous set of alphanumeric characters that does not contain numbers used for calculations. Names, addresses and error messages are examples of strings. Contrast with numeric data.
The definition came from Techweb
A string is a collection of characters usuallly stored in a variable.
Var = "This is the string"
So this line of code:
Public imagePath As String
Would tell the server that whatever is stored in the variable "imagePath" would be a string. Thus telling the server that there is no numeric characters that need calculating, no booleans (true-false statements)... Just characters.
Did I explain this right? lol
-- Zak
Example:
variableX = "This is a String aka a variable" 'Correct? These alphanumeric characters from VariableX need not be calculated?
Public VariableX As String 'Correct? ---------------
In short a string using Public As String is an alphanumeric variable that need not be calculated
'Correct?
variableX = "This is a String aka a variable" 'Correct?
Just to be clear, "... aka a variable" (the description) is incorrect. A variable is the holder of the string value. So, variableX is the variable, while "This is a String", is the string.
I may be incorrectly assuming what you were trying to say, just trying to make this as clear as possible.
Those are going to take you under the hood of a string. Variant because that's what your dealing with in asp. Reference & Value because it's important to understand the difference between the two as it pertains to storage on the Stack and the Heap because that's truly where your variable values are going to be stored at.