how to get the field name within a browse

sharkdim

Member
hi ,

i have defined a browse,
but i want to let my program distinguish the fields name in this browse,
but it can not get these information thrw using handle's first-child and handle's:next-sibling like
/**********************/
assign
handle_widget = frm_handle:first-child.
handle_widget = handle_widget:first-child.
do while valid-handle(handle_widget):
....
handle_widget = handle_widget:next-sibling.
end.

/*****************/

could anybody help to solve it?
thanks
yours Nemo
 

enoon

Member
hi ,

i have defined a browse,
but i want to let my program distinguish the fields name in this browse,
but it can not get these information thrw using handle's first-child and handle's:next-sibling like
/**********************/
assign
handle_widget = frm_handle:first-child.
handle_widget = handle_widget:first-child.
do while valid-handle(handle_widget):
....
handle_widget = handle_widget:next-sibling.
end.

/*****************/

could anybody help to solve it?
thanks
yours Nemo

ASSIGN hColumn = hBrowse:FIRST-COLUMN.
MESSAGE hColumn:NAME.

hBrowse - handle to the browse. After thet you can cicle with
Code:
IF VALID-HANDLE(hColumn) THEN hColumn = hColumn:NEXT-COLUMN()
 

sharkdim

Member
ASSIGN hColumn = hBrowse:FIRST-COLUMN.
MESSAGE hColumn:NAME.

hBrowse - handle to the browse. After thet you can cicle with
Code:
IF VALID-HANDLE(hColumn) THEN hColumn = hColumn:NEXT-COLUMN()

thank you for your reply

i have test your way,

like this :
define variable hcolumn as HANDLE.
define variable hbrowse as handle.

hbrowse = browse-1:handle.
hcolumn= hbrowse:first-column.
message hbrowse hcolumn hcolumn:name.
do while valid-handle(hcolumn) :
assign hcolumn = hcolumn:next-column.
end.


but the progress gave me the message is errorid 3135 and 3140 and hcolumn eq ?
valid-handle(hcolumn) = no

how about? can you give me any suggestion?
 
Top