DCSAY / GET question

This forum is for eXpress++ general support.
Post Reply
Message
Author
BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

DCSAY / GET question

#1 Post 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
Attachments
test.zip
(1.43 KiB) Downloaded 736 times
There are only 10 kinds of people - those who understand binary and those who don't :)

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: DCSAY / GET question

#2 Post 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
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: DCSAY / GET question

#3 Post by BruceN »

THAT WORKS!!!!! I wish I knew that a while ago... could have made things MUCH slicker.

mucho thankso....
There are only 10 kinds of people - those who understand binary and those who don't :)

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: DCSAY / GET question

#4 Post 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
There are only 10 kinds of people - those who understand binary and those who don't :)

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: DCSAY / GET question

#5 Post 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)
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCSAY / GET question

#6 Post by rdonnay »

It looks like I need to add support for a code block.
I'll put it on my list.
The eXpress train is coming - and it has more cars.

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: DCSAY / GET question

#7 Post 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!
There are only 10 kinds of people - those who understand binary and those who don't :)

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: DCSAY / GET question

#8 Post 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

:lol: :lol:

I've felt that way many a time..
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: DCSAY / GET question

#9 Post 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
There are only 10 kinds of people - those who understand binary and those who don't :)

Post Reply