dcsay called from a function inside the valid condition

This forum is for eXpress++ general support.
Post Reply
Message
Author
unisoft
Posts: 7
Joined: Thu Mar 26, 2015 4:24 am

dcsay called from a function inside the valid condition

#1 Post by unisoft »

Hi,

What is the simplest way to make the DCsay called from the valid condition show on the active screen ?

Regards

i.e.

@ 1,1 DCsay "Code " get m->code valid { || getname(m->code) }
.....
DCREAD GUI


function getname
parameter mcode
seek mcode
....
@ 2,2 DCsay dbffile->name
return

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: dcsay called from a function inside the valid condition

#2 Post by Wolfgang Ciriack »

Code: Select all

local myname:=space(20)
@ 1,1 DCSAY "Code " get m->code valid { || myname:=getname(m->code), dc_getrefresh(oName), .T. }
@ 2,1 DCSAY {|| myname } OBJECT oName
.....
DCREAD GUI

function getname(code)
dbffile->(dbseek(code))
....
return dbffile->name
_______________________
Best Regards
Wolfgang

unisoft
Posts: 7
Joined: Thu Mar 26, 2015 4:24 am

Re: dcsay called from a function inside the valid condition

#3 Post by unisoft »

Thanks for the hint, if this the simplest coding.

Regards

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

Re: dcsay called from a function inside the valid condition

#4 Post by rdonnay »

if this the simplest coding.

In the world of GUI, object oriented, applications this is considered a simple solution.

You cannot just draw stuff on the screen the way you could in Clipper text-based applications.
The eXpress train is coming - and it has more cars.

Post Reply