?
Solved

file management powerbuilder

Posted on 2011-09-07
6
Medium Priority
?
477 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

770 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