hey im doing a simple project for school and for the love of god, i can not get a string and a decimal to be placed together within a label . what am i doing wrong?
>>56983424
>using vb.net
>dim
ironic
>>56983749
explain? im like brand new to all of this.
>>56983424
install gentoo
>>56983424
lb = string & decimal
OP here, im trying to display total cost with the users first name and last name (inputed in two seperate text boxes (txtFName and txtLName)
>>56983908
what does the fucking error say you dumb fuck, then google it
>deceleration and instantiation on different lines
>>56983998
done that, im not that fucking stupid, it says end of statement expected or " & is not defined for string types
why are you defining labels as variables?
>>56984052
Don't you have to do txtFName.Value to get the value inside the textbox rather than referencing the textbox itself?
>>56984447
not as far as i know
OP I might be missing something but if I'm correct, you're declaring a Decimal, then using Convert.ToInt32, which will shead off the decimal part, but keep the Integer part, so you'll only get whole numbers
Also, trying using + instead of &, they both have the same effect for strings, and if all else fails, lookup String.Format
>>56984755
ya ive done that, im tyring to do a summary in a label where it displays the customers first and last name (take from two text boxes) plus the total of their rentals so three things in one label.
Nvm OP you're autistic, you do realize you're not getting the text of txtFName right? You're trying to combine a string and a TextBox element, use txtFName.Text, and the same with txtLName
>>56984778
ok will try and let you know.
>>56984009
>deceleration
>>56983908
>>56983424
What school are you at?
Who's teaching vb.net?
>>56984852
just community college. intro to vb net