2017년 6월 22일 목요일

Can't compare text in a textbox with a label requested by web component


Can't compare text in a textbox with a label requested by web component, however the text seems to be the same. The text requested is saved in .csv format onto a server and requested by the app when screen initialized. It is set 'showing', so you can check it running the app. Does anyone know why it doesn't exept it? It works with numbers, but doesn't work with letters.





--
remove these 4 blocks and try again
--
Hello, thanks for your swift answer, I already tried, doesn't work.. :( Do you think there is sg with the format in the saved .csv? maybe it doesn't recognize it as text?I have no idea, help me pls!!

--
Hello, thanks for your swift answer, I already tried, doesn't work.. :(
Do you think there is sg with the format in the saved .csv? maybe it doesn't recognize it as text?I have no idea, help me pls!!

to find out, what is going on, use "Do it": right click onto the blocks in your Button1.Click event and select "Do it"
in case this does not help, post a screenshot including the Do it result

PS: Please keep the discussion in the forum. Thank you!

--
If you mean this, the result:
pic.attached 
do it result: false



--
do you have any idea?Still wrong.

-- 
I would click DO IT onto these 2 blocks...

--
Sorry, missunderstood. Here it is. Seems to be the same


--
there might be an invisible new line character \n at the end of label1.text
try to remove it with the replace all block: replace \n by empty string (a text with nothing in it)
replace all label1.text
                    \n
                    <empty string>

replace all

Returns a new text string obtained by replacing all occurrences of the substring with the replacement.

--
what should I put into segment and replacement than. I am not sure I understand..


--
If u were so kind to paste the blocks how they look like, i'd appreciate! How can it happen to have empty line? how can I avoid it in excell (before saving the file.csv)

-- 
Okay, it seems to be good now but still doesn't work!



--
alternatively use the trim block instead

trim

Removes any spaces leading or trailing the input string and returns the result.

--
IT WORKS!!!!!
THANK YOU VERY MUCH!

You were very helpful, didn't give up :) I have another quick question if you don't mind, is it possible to have full screen in the app (to remove the blue upper line from the pages?If yes, how?

--
new queston = new thread...
use AppToMarket!

--
Nice!!

All right, thank You again!

--

댓글 없음:

댓글 쓰기