listbox to xbrowse

listbox to xbrowse

Postby Marc Vanzegbroeck » Sat Apr 02, 2016 8:31 am

Hi,

Since i convering my programs from an (older) FWH32 to FWH64, I also want to change from listbox to xbrowse.

I Have a little question about changing the configuration, online.

Now I was using
Code: Select all  Expand view
sGetlist[6]:bline = &('{|| '+show_kolom()+'  }')
sGetlist[6]:aheaders =  show_hoofd()
sGetlist[6]:aColsizes = show_len()
sGetlist[6]:aJustify  = show_jus()
sGetlist[6]:lmchange = .t.
 


for my headers, justify and Columnsize.
What parameters do I haveto use for xbrowse?

Thank you.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: listbox to xbrowse

Postby Marc Vanzegbroeck » Sat Apr 02, 2016 1:46 pm

Hi,

I change by program, and use addcol()
This is working file when I do this before the browse is displayed, but when I do it while it is shown, I get this error after refreshing the browse.

Code: Select all  Expand view
Application
===========
   Path and name: c:\_vmsdata\FWH64\projects\EPKSDoc\EPKSDOC.exe (64 bits)
   Size: 7,988,869 bytes
   Compiler version: Harbour 3.2.0dev (r1603181642)
   FiveWin  Version: FWH 16.02
   Windows version: 6.1, Build 7601 Service Pack 1

   Time from start: 0 hours 0 mins 40 secs
   Error occurred at: 04/02/16, 15:38:07
   Error description: Error BASE/1081  Argument error: +
   Args:
     [   1] = U  
     [   2] = N   2

Stack Calls
===========
   Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:LASTDISPLAYPOS( 0 )
   Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINT( 0 )
   Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:DISPLAY( 0 )
   Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 0 )
   Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT( 0 )
   Called from: .\source\classes\WINDOW.PRG => _FWH( 0 )
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: listbox to xbrowse

Postby cnavarro » Sat Apr 02, 2016 1:55 pm

Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: listbox to xbrowse

Postby Marc Vanzegbroeck » Sat Apr 02, 2016 2:02 pm

Hi,

the addcol() is working fine for creating by browse, but i want to add some columns while displaying the browse.
Then I get this error.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: listbox to xbrowse

Postby Marc Vanzegbroeck » Sat Apr 02, 2016 2:13 pm

Hi,

I found the problem!
I have to do a setado() again, after adding the column, and after adding that extra field in my recordset :D
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: listbox to xbrowse

Postby cnavarro » Sat Apr 02, 2016 2:16 pm

Ok, great

He would only comment that after of an insert or add column, should make a call oBrw:Refresh (.T.)
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 110 guests