Search found 30 matches: otb

Return to advanced search

Re: Eliminate Editing Icons XBROWSE MySql

Thanks for the advice. Double Click does open the edit screen but editing is disabeld because of the .t. in oTb:=oCn:RowSet( cQuery,.t. ) Using the code in my second posting, double click will not any more open edit screen. Better you use this version. Note: Dbl-click to open ...
by nageswaragunupudi
Tue Nov 07, 2023 9:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Eliminate Editing Icons XBROWSE MySql
Replies: 6
Views: 420

Re: Eliminate Editing Icons XBROWSE MySql

Thanks for the advice.

Double Click does open the edit screen but editing is disabeld because of the .t. in oTb:=oCn:RowSet( cQuery,.t. )
by PAUL SIMM
Tue Nov 07, 2023 9:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Eliminate Editing Icons XBROWSE MySql
Replies: 6
Views: 420

Eliminate Editing Icons XBROWSE MySql

I need to Browse a MySql table in Read only mode. oCn :=maria_Connect( cHost,cUser,cDb,cPwd ) cQuery:="SELECT * FROM EVENTOS" oTb:=oCn:RowSet( cQuery,.t. ) xbrowser oTb TITLE "Eventos " oCn:Close() Works and is readonly but the ADD + EDIT and DELETE Icons are shown at the ...
by PAUL SIMM
Mon Nov 06, 2023 11:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Eliminate Editing Icons XBROWSE MySql
Replies: 6
Views: 420

Re: xbrowse command not working properly -- MR. RAO

Does oTb:FieldGet( cFieldName ) work? Are you using FWH2012 ? If so, try making the following modifications to xbrowse.prg and include in your link script. Replace line 1297       elseif ! Empty( ::oMysql ) .AND. ::oMysql:IsKindOf( ...
by Compuin
Wed Feb 23, 2022 8:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse command not working properly -- MR. RAO
Replies: 21
Views: 1433

Re: xbrowse command not working properly -- MR. RAO

Does oTb:FieldGet( cFieldName ) work? Are you using FWH2012 ? If so, try making the following modifications to xbrowse.prg and include in your link script. Replace line 1297       elseif ! Empty( ::oMysql ) .AND. ::oMysql:IsKindOf( ...
by nageswaragunupudi
Wed Feb 23, 2022 7:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse command not working properly -- MR. RAO
Replies: 21
Views: 1433

Re: xbrowse command not working properly -- MR. RAO

Can I also assume that: 1. oTb:RecCount() --> number of rows? 2. oTb:RecNo() --> current row/record number? 3. oTb:GoTo( n ) --> Moves the record pointer to nth row? 4. oTb:Skip( +n or -n ) --> skips the record pointer by n ...
by Compuin
Wed Feb 23, 2022 6:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse command not working properly -- MR. RAO
Replies: 21
Views: 1433

Re: xbrowse command not working properly -- MR. RAO

Can I also assume that:

1. oTb:RecCount() --> number of rows?
2. oTb:RecNo() --> current row/record number?
3. oTb:GoTo( n ) --> Moves the record pointer to nth row?
4. oTb:Skip( +n or -n ) --> skips the record pointer by n or -n rows?

How did you define columns?
by nageswaragunupudi
Wed Feb 23, 2022 6:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse command not working properly -- MR. RAO
Replies: 21
Views: 1433

Re: xbrowse command not working properly -- MR. RAO

... know the methods of this class. So xbrowse does not know. Now, let us make this work. Please let me know: What are the methods to 1. GoTop (eg: oTb:GoTop() ) 2. GoBottom 3. GoTo( nthRecord ) 4. Bof() 5. Eof() How do we access and assign field values? Is it similar to other classes like x := ...
by Compuin
Wed Feb 23, 2022 5:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse command not working properly -- MR. RAO
Replies: 21
Views: 1433

Re: xbrowse command not working properly -- MR. RAO

... know the methods of this class. So xbrowse does not know. Now, let us make this work. Please let me know: What are the methods to 1. GoTop (eg: oTb:GoTop() ) 2. GoBottom 3. GoTo( nthRecord ) 4. Bof() 5. Eof() How do we access and assign field values? Is it similar to other classes like x := ...
by nageswaragunupudi
Wed Feb 23, 2022 12:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse command not working properly -- MR. RAO
Replies: 21
Views: 1433

Column width of the Word table

Hi.

II want to get the column width of the Word table

oTb:Item(1):Columns:Item(1):Width

but get an error: Error Word.Application:ACTIVEDOCUMENT:TABLES:ITEM:COLUMNS/9 "Item". That is, Columns:Item() is not defined. How do I solve this problem ?
by Natter
Fri Dec 25, 2020 2:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Column width of the Word table
Replies: 1
Views: 299

Re: BASE/39 Write not allowed in MariaDB

Hi, I think I found my mistake. in oTb_YAPILAN:D_BOS(YENIKAYIT)  oRec:SetDefault("YPL_BNK1", 3)  This procedure set my default variables to table fieldnames. I thought SetDefault is valid for FWMARIAROWSET like TDATAROW. SetDefault also sets the fieldname as a readonly variable in...
by MarioG
Sat Sep 19, 2020 8:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: BASE/39 Write not allowed in MariaDB
Replies: 18
Views: 1637

TARRAYDATA + MEMO Fields (solved)

Hi Guys, I'm creating an object TARRAYDATA from a table where I have a memo field . Something like this: oTb := TArrayData():New( oBD,"SELECT * FROM vfarpt02 WHERE crelat = '0001' '" ) IF I try to do xBrowse( oTb ) , all memo fields are showed in xbrowse ...
by vilian
Mon Jul 20, 2020 5:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TARRAYDATA + MEMO Fields (solved)
Replies: 4
Views: 947

Re: BASE/39 Write not allowed in MariaDB

Hi, I think I found my mistake. in oTb_YAPILAN:D_BOS(YENIKAYIT)  oRec:SetDefault("YPL_BNK1", 3)  This procedure set my default variables to table fieldnames. I thought SetDefault is valid for FWMARIAROWSET like TDATAROW. SetDefault also sets the fieldname as a readonly variable in ...
by Horizon
Mon May 04, 2020 8:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BASE/39 Write not allowed in MariaDB
Replies: 18
Views: 1637

Re: Tabla MySql en Array y xBrowse

... #include "xbrowse.ch" #include "fivewin.ch" PROCEDURE main() local oWnd, oBrw, oCol local oCon, oTb, oCur, oDataBase // Objetos de Eagle1 local cHost := "127.0.0.1" local cUser := "root" local cPassword := "" local ...
by Compuin
Wed Jun 07, 2017 4:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Tabla MySql en Array y xBrowse (RESUELTO)
Replies: 15
Views: 2268

Re: Tabla MySql en Array y xBrowse

Te falta la apertura:

oCursor := TMSACursor():New( oTb ) // Para la segunda
oCursor:open() // <------------------------------------------
by xmanuel
Wed Jun 07, 2017 10:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Tabla MySql en Array y xBrowse (RESUELTO)
Replies: 15
Views: 2268
Next

Return to advanced search