Search found 8 matches

by kennedyv
Fri Jul 29, 2011 9:07 am
Forum: FiveWin for Harbour/xHarbour
Topic: ODBC
Replies: 6
Views: 1828

Re: ODBC

Assuming you are using FiveWin's TODBC class use its :execute() method passing the SQL command as its first parameter - all other parameters are optional. This method returns .T. if the comand succeded or .F. if it failed. If the SQL command failed an error message is displyaed if :lShowError is set...
by kennedyv
Fri Jul 29, 2011 8:53 am
Forum: FiveWin for Harbour/xHarbour
Topic: wbrowse
Replies: 12
Views: 2269

Re: wbrowse

DispVals() is not receiving the oBrw parameter

In the sample program

replace

oBrw:bLine := { |o| DispVals(aArrayData,o) }

with

oBrw:bLine := { |o| DispVals(aArrayData,oBrw) }

Also, ensure that oBrw has been created and is passed t the function in which this line appears.

Vincent
by kennedyv
Thu Jul 28, 2011 4:17 pm
Forum: FiveWin for Harbour/xHarbour
Topic: wbrowse
Replies: 12
Views: 2269

Re: wbrowse

Hi Colin

OK. Let me know how things go. I've done a lot of work with arrays in TWBrowse - it can be tricky.

Vincent
by kennedyv
Thu Jul 28, 2011 10:42 am
Forum: FiveWin for Harbour/xHarbour
Topic: wbrowse
Replies: 12
Views: 2269

Re: wbrowse

Can you send me the Application and Stack Calls sections from your error.log file. At a guess, it sounds like this may be a parameter passing issue. In the meantime, a few pointers which might help: - DispVals() assumes a 2-dimensional array as follows: aArrayData[nRow][nCol] - :aColSizes must be se...
by kennedyv
Wed Jul 27, 2011 3:22 pm
Forum: FiveWin for Harbour/xHarbour
Topic: wbrowse
Replies: 12
Views: 2269

Re: wbrowse

Have a look at the sample code below. I am assuming you browsing a 2-dimensional array. In the sample each array element represents a line in the browse while each subarray represents a column, eg. aArrayData[nRow][nCol] First thing to do is create a dummy browse using @ 0,0 LISTBOX oBrw FIELDS &quo...
by kennedyv
Wed Jul 27, 2011 2:23 pm
Forum: FiveWin for Harbour/xHarbour
Topic: wbrowse
Replies: 12
Views: 2269

Re: wbrowse

Is it the number of rows or the number of columns that change?
by kennedyv
Wed Jul 27, 2011 10:10 am
Forum: FiveWin for Harbour/xHarbour
Topic: Cursor
Replies: 18
Views: 2396

Re: Cursor

You need make a copy of the original FiveWin source in file SOURCE\CLASSES\TGET.PRG and amend methods KeyDown and GotFocus Replace the line that reads CreateCaret( ::hWnd, 0, 2, ::nGetChrHeight() ) with CreateCaret( ::hWnd, 0, 6, ::nGetChrHeight() - 1 ) and vice versa. Now compile and link the new T...
by kennedyv
Wed Feb 09, 2011 5:01 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Supporting CHM files across a network share
Replies: 7
Views: 2281

Re: Supporting CHM files across a network share

Windows maintains a number of environment variables which might prove useful. Use the GetEnv() funtion to access these. eg GenEnv("ALLUSERSPROFILE") GetEnv("APPDATA") GetEnv("CommonProgramFiles") GetEnv("HOMEDRIVE")+GetEnv("HOMEPATH") GetEnv("US...