Jump to content
Fivewin Brasil

xBrowse com colunas aleatórias a partir versão 17.05 da fwh


Jmsilva

Recommended Posts

@cnavarro e demais Olá!

O exemplo abaixo funciona corretamente até a versão FWH 10.11 (nov2010), depois que fiz atualização para 17.05  exibe apenas uma coluna.

Compilei com a ver 10.11 está ok, na 17.05 somente uma coluna, gostaria de saber se nas versões pós 17.05 o problema persiste.

Obrigado!

 

/*
 * Project: xbrw
 * File: xbrw.prg
 * Description:
 * Author:
 * Date: 03-04-2018
 */
#include "fivewin.ch"

**===================================================================
Function main()
**===================================================================
Local oDlg,oExec,oBrw,cTitle
Local aVet := {{1,2,3},{4,5,6},{7,8,9}}
Local aVet1 := {{"a","b","c","d"},{"e","f","g","h"},{"i","j","k","l"}}

DEFINE DIALOG oDlg SIZE 680,360 TITLE "Teste xBrowse colunas aleatorias"

@ 2,3 XBROWSE oBrw ;
      SIZE 220, 170 PIXEL ;
      OF oDlg ;
      ARRAY {} AUTOCOLS ;
      LINES
oBrw:CreateFromCode()

@ 080, 270 BTNBMP oExec prompt "Vet" SIZE 60,20 CENTER 2007;
           OF oDlg ACTION oBrw:SetArray(aVet)


@ 140, 270 BTNBMP oExec prompt "Vet1" SIZE 60,20 CENTER 2007;
           OF oDlg ACTION oBrw:SetArray(aVet1)

ACTIVATE DIALOG oDlg CENTER //on init XBrowse(oBrw)


RETURN NIL

 

 

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...