xbrowse ToCalc() oSheet:SetString error ?

xbrowse ToCalc() oSheet:SetString error ?

Postby ShumingWang » Mon Sep 26, 2011 8:15 am

Hi,
Xbrowse METHOD ToCalc()
oSheet:GetCellByPosition( nCol-1, nRow-1 ):SetString = oCol:cHeader

Error description: (DOS Error -2147352573) WINOLE/1006 Argument error: _SETSTRING

Best regards!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: xbrowse ToCalc() oSheet:SetString error ?

Postby Antonio Linares » Sat Jul 28, 2012 10:32 am

Did someone find the solution to this error ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: xbrowse ToCalc() oSheet:SetString error ?

Postby Enrico Maria Giordano » Sat Jul 28, 2012 11:45 am

Please check the value of nCol and nRow. They must range from 0 upward (I don't know what the maximum value is).

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: xbrowse ToCalc() oSheet:SetString error ?

Postby anserkk » Mon Jul 30, 2012 5:21 am

Please test after changing the line 7152 xbrowse.prg

FROM
Code: Select all  Expand view
     oSheet:GetCellByPosition( nCol-1, nRow-1 ):SetString = oCol:cHeader

TO
Code: Select all  Expand view
     oSheet:GetCellByPosition( nCol-1, nRow-1 ):SetString(oCol:cHeader)


Please comment out the line 7184

Code: Select all  Expand view
OTHERWISE
//     oSheet:GetColumns():GetByIndex( nCol-1 ):NumberFormat:="@"
 

Please let us know the results.

Regards

Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: xbrowse ToCalc() oSheet:SetString error ?

Postby ShumingWang » Mon Jul 30, 2012 10:19 am

Yes!
THis change works fine!
Thanks !
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: xbrowse ToCalc() oSheet:SetString error ?

Postby Antonio Linares » Mon Jul 30, 2012 11:34 am

Anser,

many thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: xbrowse ToCalc() oSheet:SetString error ?

Postby Biel EA6DD » Mon Nov 26, 2012 6:17 pm

Hi Antonio,
I have the same problem with FW 12.09 (Error description: (DOS Error -2147352573) WINOLE/1006 Argument error: _SETSTRING) .

The proposed changes by Anser are working ok for me, avoiding erros. Will be nice if u can include these changes in the lib. TKS
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Biel EA6DD
 
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca

Re: xbrowse ToCalc() oSheet:SetString error ?

Postby Antonio Linares » Wed Dec 12, 2012 10:44 am

Biel, Anser,

Added, many thanks for the reminder! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

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