Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search text in VB

Status
Not open for further replies.

Eddiehui

Technical User
Jul 30, 2002
5
HK
I have written a program to search the word "Cash" in a report (CR8.5 and VB6). I used the findtext function, but it return false all the time. Please help!! Thanks!!

Dim app As CRAXDDRT.Application
Dim rpt As CRAXDDRT.Report
Dim pg As CRAXDDRT.PageGenerator
Dim ary() As Integer

ReDim ary(-1 To -1)
Set app = New CRAXDDRT.Application
Set rpt = app.OpenReport("C:\a.rpt")
Set pg = rpt.PageEngine.CreatePageGenerator(ary)
MsgBox pg.FindText("Cash", crForward, 1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top