Search found 1174 matches

by Tom
Wed Nov 09, 2011 2:55 am
Forum: eXpress++ Support
Topic: ADDBUTTONS AND BUTTONS WITH DCREAD GUI
Replies: 3
Views: 6827

Re: ADDBUTTONS AND BUTTONS WITH DCREAD GUI

Code: Select all

LOCAL aButtons := {}, GetList := {}, GetOptions := {}
aadd(aButtons,{ 'MyButton',50,12,{||MyButtonAction()},nil })
...

DCGET OPTIONS BUTTONS aButtons
DCREAD GUI ... OPTIONS GetOptions BUTTONS DCGUI_BUTTON_CUSTOM
by Tom
Fri Nov 04, 2011 10:13 am
Forum: Xbase++ Support
Topic: Xbase and ADT tables NULL value
Replies: 3
Views: 8667

Re: Xbase and ADT tables NULL value

Add: If you use SQLexpress and nothing else to manage the tables, there is at least no DBE active while dealing with the data. SET NULLVALUE OFF will have no effect.
by Tom
Fri Nov 04, 2011 10:08 am
Forum: Xbase++ Support
Topic: Xbase and ADT tables NULL value
Replies: 3
Views: 8667

Re: Xbase and ADT tables NULL value

Hi, Chris.

a) Use the data dictionary to set default values for those fields OR:
b) use SET NULLVALUE OFF if you have Xbase++ 1.9 or later
by Tom
Fri Oct 28, 2011 6:55 am
Forum: Zen and the art of Software Maintenance
Topic: The Bullshit Paradox
Replies: 5
Views: 17518

Re: The Bullshit Paradox

Don't take life too serious. It will end soon. Try to have as much fun as possible until then. In about 4 billion years, the sun will explode and the earth will vanish. Think about that before you pray ten times a day - or hope for 32 virgin girls in paradise. They will explode aswell. And exploded ...
by Tom
Mon Oct 17, 2011 4:51 am
Forum: eXpress++ Support
Topic: DCBrowse Row First Highlighted
Replies: 6
Views: 11267

Re: DCBrowse Row First Highlighted

I stopped using the POINTER clause of DCBROWSE. If you need an array pointer, use DC_BrowseRow() instead. It seems to me more reliable.
by Tom
Mon Oct 17, 2011 4:49 am
Forum: Zen and the art of Software Maintenance
Topic: Lest we Forget
Replies: 4
Views: 15569

Re: Lest we Forget

to my favorite TV series: Breaking Bad.
"Breaking Bad" is simply brillant. Reminds me of the good old "Six Feet Under" days. Those two, "The Simpsons" and "Sopranos" - I need nothing else on TV.
by Tom
Fri Oct 14, 2011 4:45 am
Forum: eXpress++ Support
Topic: dcget range
Replies: 3
Views: 7571

Re: dcget range

Hi, Zdeno. If the DCGET should only accept a range of values, this is correct: nValue := 1000 aRange := {1000,5000} @ 1,1 DCGET nValue VALID {||nValue >= aRange[1] .and. nValue <= aRange[2]} But the more elegant way would be to use a spinbutton instead. This is the control made for value entries lim...
by Tom
Wed Oct 12, 2011 11:25 am
Forum: eXpress++ Support
Topic: Timeout
Replies: 6
Views: 10659

Re: Timeout

Hi, Fred. DCREAD GUI TIMEOUT < an TimeOut> accepts a numeric value (timeout in seconds) or an array which contains two elements. If an array is used, the first element is the timout in seconds, and the second value is any codeblock. You may place "{||DC_ReadGuiEvent(DCGUI_EXIT_ABORT,GetList)}" there...
by Tom
Wed Oct 12, 2011 1:41 am
Forum: eXpress++ Support
Topic: DCBrowse Row First Highlighted
Replies: 6
Views: 11267

Re: DCBrowse Row First Highlighted

Alternative: If you're browsing a database, just move to the record to be highlighted inside the EVAL clause of DCREAD, put an oBrowse:RefreshAll() behind. If you're browsing an array, set the pointer value in oBrowse:ArrayElement (iVar), also refresh afterwards. But: this may force the browse to sc...
by Tom
Tue Oct 11, 2011 7:34 am
Forum: eXpress++ Support
Topic: SUBCLASS with DCBROWSECOL, but only for the dataarea
Replies: 1
Views: 4991

Re: SUBCLASS with DCBROWSECOL, but only for the dataarea

Forget it, found a better solution.