Page 1 of 1
DCSAY / GET question
Posted: Sat Jun 12, 2010 10:32 am
by BruceN
This is probably a no-brainer for you wizards out there...
I am trying to have data from a dbf file display and update as the record changes. I want the data display to look like a 'say' (just text over the background) not a 'get' (square box with data in it).
I tried using the grastring on a dcsay, but it isn't getting refreshed with the new value. Simple example attached.
I'm using xbase 355 and express 254 for this.
(In example. just click 'search' button and that changes value of variable (m_serno), but grastring say still shows old value
Re: DCSAY / GET question
Posted: Sat Jun 12, 2010 1:22 pm
by bwolfsohn
Bruce,
if i remember properly, you can't have live info in a grastring.. needs to be a dcsay inside a codeblock
i do it this way:
@ xx,yy DCSAY {||myalias->myfield}
that will update on a refresh
Brian
Re: DCSAY / GET question
Posted: Sat Jun 12, 2010 4:07 pm
by BruceN
THAT WORKS!!!!! I wish I knew that a while ago... could have made things MUCH slicker.
mucho thankso....
Re: DCSAY / GET question
Posted: Sat Jun 12, 2010 7:17 pm
by BruceN
Related question....
How would you do that with a DCMULTILINE?
@ 8,15 DCMULTILINE {||calls->c_problem} SIZE 50,5 gives a syntax error
Re: DCSAY / GET question
Posted: Sat Jun 12, 2010 8:37 pm
by bwolfsohn
BruceN wrote:Related question....
How would you do that with a DCMULTILINE?
@ 8,15 DCMULTILINE {||calls->c_problem} SIZE 50,5 gives a syntax error
DCMULTILINE cContents ID "CCONTENTS"
DC_GetObject(GetList,'CCONTENTS'):setData(cNewContents)
Re: DCSAY / GET question
Posted: Sat Jun 12, 2010 9:38 pm
by rdonnay
It looks like I need to add support for a code block.
I'll put it on my list.
Re: DCSAY / GET question
Posted: Sun Jun 13, 2010 5:09 am
by BruceN
OK.. now I feel real good. It wasn't some stupid thing I was doing, and I found an 'oversight' in your library. Gee, I may have actually contributed something that will help others!
Re: DCSAY / GET question
Posted: Sun Jun 13, 2010 7:39 am
by bwolfsohn
BruceN wrote:OK.. now I feel real good. It wasn't some stupid thing I was doing, and I found an 'oversight' in your library. Gee, I may have actually contributed something that will help others!
Bruce,
Even a blind squirrel occasionally finds an acorn
I've felt that way many a time..
Re: DCSAY / GET question
Posted: Mon Jun 14, 2010 12:02 pm
by BruceN
And I DEFINATELY qualify as the progamming equivilent of a blind squirrel.
If you took everythnig I know about programming and shove it up a gnat's ass it would rattle around like a pea in a boxcar!
b