We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
I'm not incredibly familiar with python so the syntax may be off. Basically, you're going to need to concatenate those as strings... yes, I know they are integers, but SetText takes a string parameter so you're going to need to convert them to strings and then concatenate the strings.
It MIGHT look something like this
def Test1(): a = 35 b = 50 coords = aqConvert.IntToStr(a) + ','+aqConvert.IntToStr(b) Aliases.CoordinatesTextBox.SetText(coords)
I THINK it would simply be something like below... again, I'm not extremely familiar with Python so, from the little I've gleaned, this SHOULD work.
def Test1(xCord, yCord): coords = aqConvert.IntToStr(xCord) + ','+aqConvert.IntToStr(yCord) Aliases.CoordinatesTextBox.SetText(coords)
I'm not incredibly familiar with python so the syntax may be off. Basically, you're going to need to concatenate those as strings... yes, I know they are integers, but SetText takes a string parameter so you're going to need to convert them to strings and then concatenate the strings.
It MIGHT look something like this
def Test1(): a = 35 b = 50 coords = aqConvert.IntToStr(a) + ','+aqConvert.IntToStr(b) Aliases.CoordinatesTextBox.SetText(coords)
Robert - excellent! That worked!
Taking this one step further, how would I setup Test1 so that I could pass in a and b as parameters ? I would like to be able to write Test1(35,50) and have it enter 35,50 into the textbox field.
I THINK it would simply be something like below... again, I'm not extremely familiar with Python so, from the little I've gleaned, this SHOULD work.
def Test1(xCord, yCord): coords = aqConvert.IntToStr(xCord) + ','+aqConvert.IntToStr(yCord) Aliases.CoordinatesTextBox.SetText(coords)