At the time of building the application, I would like to I get the filename of the project used (as string), and assign this value to a label object in Window1.
I can extract the filename during the building by using
Dim sb as String = ProjectShellPath
Dim anArray() as string = sb.split("/")
Dim i as integer = anArray.lastIndex
Print(anArray(i))
But I could “transfer” this info into the “Window1.label1.text”?
dim CountSlashes as Integer = CountFields(ProjectShellPath, “/”)
dim ProjectName as string = NthField(ProjectShellPath, “/”, CountSlashes)
dim ProjectPath as String = Left(ProjectShellPath, Len(ProjectShellPath) - Len(ProjectName))
You cannot make your constant name #kName. It should stay as kName. When you assign it in code you also refer to it as kName. However, If you are using the inspector in the IDE then you need to use #kName so that it knows you are assigning a constant called kName and not just the fixed text kName.
Sorry. I don’t get it.
How do I do this: “However, If you are using the inspector in the IDE then you need to use #kName so that it knows you are assigning a constant called kName and not just the fixed text kName.”