color on Browse lookup lines.
Kevin Mummau
kevinmummau at gmail.com
Sat Feb 25 06:34:43 PST 2023
I have watched Nancy's videos from the Filepro 2019 conference and I am
trying to put up color on different lines. My goal is to highlight records
that meet certain conditions. by checking two fields in a lookup file as
below in a prc lookup snipit.
My thinking is as the Browse finds a record it runs the prc label
then finds the next lookup record and does that prc label. It appears the
prc is dropping all and my test records that do not meet the unique key
using the Drop All command, so I believe it is going into the prc label.d
ne.
I am making the Lookup dynamic with a waitkey command and want to show the
lookup with records with different highlighting when viewing a browse.
browse header line has "*z *1 *12 *13 etc....."
ie. if: rec(12) ne rec(13)
then: z="\FA"; end
if: rec(12) eq rec(13)
then: z="\F-"; end
another example of then line
then:z="\A1"; end
and then:z="\A-"
I have used the z="\Bn" and the z="\Ca"
Problem. I have my POPUPNORMAL=0x27 but when I run this code I get a black
browse and I cannot seem to change the color as Nancy did in her
presentation. If I move up and down the browse will light up different
records but I am not getting the colors correctly. Not sure what I am
missing, I have looked at my environment variables.
According to show commands the background use 0-7 and the foreground use
8-F for color but 0-7 also shows Background/foreground. It also states:
"\Ann - Sets background and foreground colors. The first "n" is the
background color; the second "n" is the foreground color. If only one "n"
is used, it sets the foreground color, and the background color is set to
black (0).
If you want to reset the background and foreground colors to the default
colors, use a dash for "n" (\A-)." copied from the web manual
I have tried many different commands and different ways, different
color options but still nothing works like I think it should.
I am on a Windows using version 6.0.03.15D6 no gui or windows yet.
Thanks
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20230225/932a8989/attachment.htm>
More information about the Filepro-list
mailing list