1. jh j
  2. PowerBuilder
  3. Friday, 10 February 2023 02:16 AM UTC

When I have

A Data Window and a button, a sle like this in window. and run this

id        data

ap4    pmgw

pm7   pmgwt

go3    gmtp

aw5    gjp

[Button(Search)] [sle text]

when i type in sleText with go3

and click button then

i want to move row focus to go3

In this case,

How i can get row as integer where go3 is in position

 

sorry for my bad english skill..

Sivaprakash BKR Accepted Answer Pending Moderation
  1. Friday, 10 February 2023 12:36 PM UTC
  2. PowerBuilder
  3. # 1

Simple solution would be

// Button clicked event

ls_temp = sle_search.Text
ls_search_colname = 'id'
ll_row = dw_1.Find('upper(' + ls_search_colname + ') like "' + Upper(ls_temp) + '%"', 1, dw_1.RowCount())
If ll_row > 0 and ll_row <= dw_1.RowCount() Then dw_1.ScrollToRow(ll_row)

HTH

Happiness Always
BKR Sivaprakash

 

 

Comment
  1. jh j
  2. Saturday, 11 February 2023 02:15 AM UTC
Thanks so much!!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.