Jump to content
Fivewin Brasil

xBrowse


isaiasodr

Recommended Posts

Sou iniciante na programação com xharbour e FiveWin e estava querendo tirar uma dúvida sobre o xBrowse.

Eu estou usando um vetor para alimentar o xBrowse e em uma determinada posição eu preciso ter a disponibilidade de Edição dos dados.

Só que nessa posição é uma mescla de vetor, string e números. Queria saber se teria como eu criar uma lógica que onde fosse String e número o campo seria EDIT_GET e onde fosse  vetor transformar em um LISTB0X.

Screenshot_2.png

Link to comment
Share on other sites

Bem vindo.

Utilize assim

oBrw:bChange :=<||
If Valtype(aArray[oBrw:nArrayAt,1]) $ "C|N|"
     oBrw:aCols[1]:nEditType := EDIT_GET
Else
     oBrw:aCols[1]:nEditType := EDIT_LISTBOX
     oBrw:aCols[1]:aEditListBound := ;
     oBrw:aCols[1]:aEditListTxt   := aArray[oBrw:nArrayAt,2] // <- assumindo que a 2ª seja um array
Endif
oBrw:Refresh()
>
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...