latch Active Member Licensed User Longtime User Jul 7, 2012 #1 I would guess this has been answered before but, I'm not sure how to word this to find the answer in a search or the beginners guide. I want make the text attribute of a label display a string and a variable like this: "My age is 55" Other languages would take code like this: label1.text="My age is ",AgeVariable So my question is, "What is the proper syntax that will do this?"
I would guess this has been answered before but, I'm not sure how to word this to find the answer in a search or the beginners guide. I want make the text attribute of a label display a string and a variable like this: "My age is 55" Other languages would take code like this: label1.text="My age is ",AgeVariable So my question is, "What is the proper syntax that will do this?"
NJDude Expert Licensed User Longtime User Jul 7, 2012 #2 Like this: B4X: Dim Age As Int Dim Name As String Name = "My Age is " Age = 55 Label1.Text = Name & Age '---- or ---- Label1.Text = "My Age is " & Age Upvote 0
Like this: B4X: Dim Age As Int Dim Name As String Name = "My Age is " Age = 55 Label1.Text = Name & Age '---- or ---- Label1.Text = "My Age is " & Age
latch Active Member Licensed User Longtime User Jul 7, 2012 #3 Thank you, sir! Now you may go to Tocshi station to get some power converters or how ever else you want to waste time with your friends. Upvote 0
Thank you, sir! Now you may go to Tocshi station to get some power converters or how ever else you want to waste time with your friends.