Search found 1191 matches

by skiman
Thu Aug 23, 2012 11:54 pm
Forum: Xbase++ Support
Topic: ERROR WITH DBCLOSEALL()
Replies: 7
Views: 13806

Re: ERROR WITH DBCLOSEALL()

Hi Bob,
For instance it may show a file opened that has 400 records in it but the index shows 3,000,000. Very weird.
This seems as an index problem. I suppose your users are using Windows 7? I would try the SMB2 solution of Alaska.
by skiman
Thu Aug 23, 2012 12:46 am
Forum: eXpress++ Support
Topic: Inscription over the DCBROWSE window with data from DCADDBUT
Replies: 12
Views: 22032

Re: Inscription over the DCBROWSE window with data from DCAD

Hi, Use aliasnames to make your code readable. IF M_KodPr > 0 .AND. M_Znach <> 0 SELECT InfPortCls APPEND BLANK REPLACE Kod_pr WITH M_KodPr REPLACE Name WITH M_Name REPLACE Znach WITH M_Znach ENDIF DC_GetProgress(oProgress, RecNo(), nMax) SELECT (Ar_Model[M_CurrInf]) DBSKIP(1) ENDDO DC_GetProgress(o...
by skiman
Wed Aug 22, 2012 11:01 am
Forum: eXpress++ Support
Topic: Inscription over the DCBROWSE window with data from DCADDBUT
Replies: 12
Views: 22032

Re: Inscription over the DCBROWSE window with data from DCAD

Hi, Why are you doing the following? DCADDBUTTON CAPTION Ar_Model[1] ; SIZE K+LEN(Ar_Model[1]) ; ACTION {||InfPortCls1(), DC_GetRefresh(GetList)}; PARENT oToolBar ; TOOLTIP 'Генерация информационного портрета в модели: '+Ar_Model[1] Instead of infportscls1() you can use infportscls(1). This way you ...
by skiman
Thu Aug 16, 2012 8:28 am
Forum: eXpress++ Support
Topic: Refresh of DCBROWSE
Replies: 1
Views: 4172

Re: Refresh of DCBROWSE

Hi,

Don't bother.

After posting my message I saw that I was using oBrowse and oPickBrowse.
by skiman
Thu Aug 16, 2012 8:19 am
Forum: eXpress++ Support
Topic: Refresh of DCBROWSE
Replies: 1
Views: 4172

Refresh of DCBROWSE

Hi, I have a problem with the refresh of a DCBROWSE. It's a browse of an array. I have a DCGET which has in the VALID the following: aadd(aData, { getvalue, xxx }) ,; oBrowse:gobottom(),oBrowse:forceStable() ,; oBrowse:refreshall(),DC_GetRefresh(GetList),.T. } I want the browse to display the last e...
by skiman
Tue Aug 14, 2012 9:35 am
Forum: Xbase++ Support
Topic: Excell remains active
Replies: 4
Views: 9337

Re: Excell remains active

Thanks Roger,

Problem is solved.

Finding the last row of a sheet isn't very simple to find. In case anyone ever needs this, the following seems to work correctly:

oUsedRange := oSheet:usedrange
nMaxLines := oUsedrange:rows:count()
by skiman
Tue Aug 14, 2012 7:11 am
Forum: Xbase++ Support
Topic: Excell remains active
Replies: 4
Views: 9337

Excell remains active

Hi,

I'm using activeX to read some XLS files.

When the import is done, I have a 'oExcel:Destroy()'. If I check with Taskmanager, it looks as Excel remains active after this destroy.

Some hints to prevent this? Or correct way to stop Excel?
by skiman
Thu Jul 26, 2012 12:48 am
Forum: eXpress++ Support
Topic: DcBrowse - Tagging
Replies: 11
Views: 16126

Re: DcBrowse - Tagging

Hi, Using a field to TAG looks as a bad idea to me. In a multi-user environment, you can never be sure who has tagged the record. I'm tagging with an array, in which I put the record numbers. In the ITEMSELECTED you call a function which checks if the record number is in your array or not. I never u...
by skiman
Mon Jul 16, 2012 2:00 am
Forum: eXpress++ Support
Topic: Sample acceleration
Replies: 3
Views: 7534

Re: Sample acceleration

Hi,

Never use a filter in this case.

Create an index on the two files with your key field.

Alias2->(dbseek(....))
do while alias->field == alias2->field
..
alias2->(dbskip(1))
enddo

Also take a look at dc_scope.
by skiman
Sat Jul 14, 2012 1:58 am
Forum: eXpress++ Support
Topic: Questions of zero level
Replies: 96
Views: 123968

Re: Questions of zero level

Hi,

Sure the file doesn't exist by a previous test? Always check before dbcreate.