Forum Discussion
- vajindarladdadFrequent ContributorHi,
Yes , there is method to fetch the text from the text control.
Use the "Text" property of the control , it returns all the text contained within the control.
I hope this has been of some help.
Hi,
You may create a Property checkpoint for the wText property and set the comparison condition to Contains. Another way is to write your own comparison in one of script languages.
- praneshmNew Contributor
Use the .TEXTCONTENT property to fetch the value of the Object, say a textbox or a label or any object of your interest(if applicable)
- praneshmNew Contributor
Use the below code to read from the entire text file;
Sub TextfileRead
Dim tobj, FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
Set tobj = FSO.OpenTextFile("C:\SampleText.txt",1)
Do Until tobj.AtEndOfStream
content = tobj.Readline
Msgbox content
Loop
Set tobj = Nothing
Set FSO = Nothing
End Sub
- sanjay0288Frequent ContributorHi,
Using wText i was able to fetch the entire string present in the text file. I need to validate only if string xyz is present or not. How to do that?