Inscription over the DCBROWSE window with data from DCADDBUT

This forum is for eXpress++ general support.
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Inscription over the DCBROWSE window with data from DCAD

#11 Post by Eugene Lutsenko »

Yes, it is clear. Reserves still are... And whether there is a possibility to set a pseudonym not directly in the program text, and in the form of value of a variable or value of an element of the array?

I want to make, that the editor based on DCBROWSECOL and an anchor of Roger:

Code: Select all

STATIC FUNCTION FieldAnchor( j )
RETURN {|x|x:=FIELDGET(j), IIF(Empty(x),'',Str(x,8,3))}
worked not with one database, and with several same bases. In this regard there is a question of, whether can DCBROWSECOL work in general without the indication of a pseudonym. In "anchor" we see that can but if to write so directly to DCBROWSECOL, there is an error of compilation. But whether then probably from the function caused on pressing of the button to change the current database from which DCBROWSECOL works?

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

Re: Inscription over the DCBROWSE window with data from DCAD

#12 Post by rdonnay »

This should work for you:

Code: Select all

STATIC FUNCTION FieldAnchor( j, cAlias )

RETURN {|x|x:=(cAlias)->(FIELDGET(j)), IIF(Empty(x),'',Str(x,8,3))}
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Inscription over the DCBROWSE window with data from DCAD

#13 Post by Eugene Lutsenko »

Thanks! When you look at your programs, everything is it seems simply made, it is strange even that I didn't guess.

Post Reply