Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 15 FEB 2008 10:25:27PM Chang Lee Churn wrote:

I currently , have 2 or more programs that serves the same function: that is to print out labels on Zebra printer.

What differs between them are, that the output is different, meaning it prints to 2 different Zebra printer.

say, I have 2 programs, ABC and DEF. ABC will be the name program, then when I execute program DEF, I'll just pass a parameter into ABC program by this line

CALL ABC(Location)

inside the program DEF , say assigned the value ADMIN_OFFICE into Location.

once the ABC program detected Location is ADMIN_OFFICE, it will print out at printer located in Admin office.

So, the problem here is, when I execute the program ABC, there's no value of Location assigned into ABC program. The ABC program goes haywire because it does not detect any value in variable Location.

how should I design my program that I can re-use it so that I don't have DEF as the duplicate of ABC?


At 16 FEB 2008 05:43AM support@sprezzatura.com wrote:

It depends on the AREV version.

Try

Declare Function Guar_assign

Location=Guar_assign(Location)

of

If Assigned(Location) else Location="

Of

If Unassigned(Location) then Location="

support@sprezzatura.com

The Sprezzatura Group Web Site

World Leaders in all things RevSoft


At 16 FEB 2008 09:02AM Dave Harmacek wrote:

If you are getting a "Variable not assigned a value" error, aka VNAV

then you can use the Unassigned function.

if Unassigned( Location) then Location="

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/52a05570262d1a59852573f10012cf4b.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1