Unable to copy letterfont size, increment by five points and paste into letterfont size again

Hi everyone :slight_smile:

I am at my wits end trying to make this work. I’m trying to copy a string(?) value from a letter font window in notepad, then modify this string value to integer, and then add the number(integer?) 5 to the number that is in the letterfont size, and then paste that new updated number back into the letter font size.

Here is the program I’m working with, notepad (the format is in icelandic) and the error I run into while copying, adding, and pasting it again into the same window.

Does anyone know how I can possibly make this work? T_T
Thank you for your time in advance,

Best regards,
Happy Coder

@Happy_Code_Happy_Life
Welcome to UiPath Community
Which language code you are using?
I think it’s vb code
Just put assign activity and give the code like
Fontsize=(Cint(fontsize)+5). ToString
Write it in output panel
Check whether it is giving value or not

Thank you Sangeetha for checking this out with me. I’m a total beginner to uipath so I’m having trouble understanding how to make this work. Is this what you meant by assign activity?

I added the code “Fontsize=(Cint(fontsize)+5). ToString” as a “default” value to the variable FontSize - before I had also tried putting it the output/text window and it gave a compile error.

I don’t know thow to check if something is giving value in uipath. Is there anyway to check with an object explorer perhaps or must I write in a check/display point?

Not in default section.add assign activity from activity panel and put it before type into activity.using write line activity print the fontsize variable in output panel.just give fontsize variable in type into activity

Hi again,
I’m having trouble debugging this, this is what I have so far:

I’m really often getting these compile errors or assign errors or option strict errors.

@Happy_Code_Happy_Life

Please show me the properties of get visible text activity and test whether the output is coming out from the activity.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.