?
Solved

file management powerbuilder

Posted on 2011-09-07
6
Medium Priority
?
487 Views
Last Modified: 2013-12-26
using FindFirstFileW we can search files  but how to search  file contains a word using  powerbuilder  .. any body having idea ?
0
Comment
Question by:digitecherp
2 Comments
 
LVL 1

Accepted Solution

by:
carcarah earned 1500 total points
ID: 36999524
First of all, we have to establish one thing here: Any function (internal or your function -- doesn't matter which) always have to load the list of files and read the name of each one.
So, I advise you to create a function working with a listbox to load the whole directory list and use the Pos ( string1, string2 {, start } ) to find the string.

String ls_filespec, ls_nm
Integer li_total, li_counter

ls_filespec = "*.*"
lb_files.DirList(ls_filespec, 0)
li_total = lb_files.totalitems()
FOR li_counter = 1 to li_total
      ls_nm = Mid(lb_arquivos.text(li_counter , 2, 3)
        if Pos ( ls_nm, "word you want") <> 0 then       ddlb_match.AddItem(ls_nm)
NEXT
0
 

Author Closing Comment

by:digitecherp
ID: 37505542
ok
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question