Search found 158 matches

by GeneB
Tue Jan 27, 2015 11:48 am
Forum: eXpress++ Support
Topic: Decimal and zeros added to text when using DC_Excel2Array
Replies: 38
Views: 54977

Re: Decimal and zeros added to text when using DC_Excel2Arra

Roger,
I wrote my users a 'quick fix' workaround if this is a problem for them, but there is still an exposure for me.
Any progress on this?
Thanks.
by GeneB
Tue Jan 20, 2015 10:19 am
Forum: eXpress++ Support
Topic: Decimal and zeros added to text when using DC_Excel2Array
Replies: 38
Views: 54977

Re: Decimal and zeros added to text when using DC_Excel2Arra

Thank you, Dieter, but I'm the one that posted that contribution. What I posted creates a dbf file with the structure you pass and adds data to the dbf file from the spreadsheet regardless of the data type, but this is a different problem. If the data in the spreadsheet cell is formatted as text dat...
by GeneB
Mon Jan 19, 2015 4:59 pm
Forum: eXpress++ Support
Topic: Decimal and zeros added to text when using DC_Excel2Array
Replies: 38
Views: 54977

Decimal and zeros added to text when using DC_Excel2Array

When converting a spreadsheet to an array using DC_Excel2Array, a column that is fomatted as text but contains only numeric characters has a decimal and many zeros added to every cell in the column.
What is the way to correct this.
This is happening in both build 258 and 260.
Thanks.
GeneB
by GeneB
Tue Jul 22, 2014 6:45 am
Forum: eXpress++ Support
Topic: Correct use of DC_GETOPTDEFAULT
Replies: 9
Views: 10648

Re: Correct use of DC_GETOPTDEFAULT

It appears that nominbutton and nomaxbutton are the only defaults that won't hold their values in the above example. I have set their value with a user function for each call of DCREAD, which allows the user to select the buttons or to hide the buttons, so I'll stay with that unless something easier...
by GeneB
Mon Jul 21, 2014 4:17 pm
Forum: eXpress++ Support
Topic: Correct use of DC_GETOPTDEFAULT
Replies: 9
Views: 10648

Re: Correct use of DC_GETOPTDEFAULT

Of course.
However, making that change in test.prg doesn't change the outcome.
by GeneB
Mon Jul 21, 2014 12:49 pm
Forum: eXpress++ Support
Topic: Correct use of DC_GETOPTDEFAULT
Replies: 9
Views: 10648

Re: Correct use of DC_GETOPTDEFAULT

Yes, I am using DC_AutoRestoreWindow() But... In the test program below, if I set the system defaults the min/max buttons are hidden. But if I then add an OPTIONS to the DCREAD, the min/max buttons are not hidden. This is the case whether the window is modal or not. #include "dcdialog.ch" FUNCTION M...
by GeneB
Mon Jul 21, 2014 9:15 am
Forum: eXpress++ Support
Topic: Correct use of DC_GETOPTDEFAULT
Replies: 9
Views: 10648

Re: Correct use of DC_GETOPTDEFAULT

Thank you both. That explains why it wouldn't work. Few of my windows are modal. I found that I can use Tom's SetDefOptions() just prior to DCREAD GUI in each window and it works for that window. Was tedious to change every DCREAD, but now inside SetDefOptions I have a system side user selectable op...
by GeneB
Fri Jul 18, 2014 9:14 pm
Forum: eXpress++ Support
Topic: Correct use of DC_GETOPTDEFAULT
Replies: 9
Views: 10648

Correct use of DC_GETOPTDEFAULT

I'm trying to remove all min/max buttons. If I use just DC_GetOptDefaults() or use an OPTIONS CLAUSE in DCREAD they are removed in a window. If I use NOMINBUTTON and NOMAXBUTTON in DC_GetOptDefaults() and also use an OPTIONS clause in the DCREAD they are not removed. What is the correct way to use D...
by GeneB
Tue Jan 07, 2014 9:29 pm
Forum: eXpress++ Support
Topic: Set Focus in DCBrowseCol
Replies: 9
Views: 11533

Re: Set Focus in DCBrowseCol

Thank you both for your help. Adding oGet:home() was the solution. I now use the following: VALID {|oGet,cItem,o| ; cItem := oGet:Get:VarGet() ; , cItem := IF(OkItem(cItem), cItem, SPACE(20) ) ; , oGet:Get:VarPut(cItem) ; , oGet:Get:UpdateBuffer() ; , oGet:home() ; , oInput:refreshCurrent() ; , IF(E...