Solved

file management powerbuilder

Posted on 2011-09-07
6
444 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
6 Comments
 
LVL 1

Accepted Solution

by:
carcarah earned 500 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now