G-Man:

UniData doesn't have the ASSIGNED function. You'll have to either use UNASSIGNED or create some subroutine or function to do this. Keep in mind, however, that you __DON'T__ want to to use the UNASSIGNED to test if a file is open, like you do in D3; you'll want to use the FILEOPEN function.

HTH,

Bill

------------------------------------------------------------------------
Tony Gravagno said the following on 7/14/2010 12:50 PM:
This is dumb, sorry.  In my cross-platform code I have a check to
see if the platform is Unidata, and if so, I say:
   IF UNASSIGNED(VAR) THEN ...
for all other MV platforms I use:
   IF NOT(ASSIGNED(VAR)) THEN ...

I just noticed that in some code I wrote two years ago that I had
removed the DBMS check and all platforms are using IF
NOT(ASSIGNED()).  Unfortunately (slapping myself) there's no
comment in the code to support why that change was made.

Did they introduce support for ASSIGNED() in some v7.2 release of
Unidata - or maybe that was just a bad change?  I don't see this
in any release notes.  I'd just like to know if/when it was
introduced so that I know where I should (not) use ASSIGNED() in
new development.  For this product (NebulaXLite that creates
Excel workbooks) I'm inclined to continue to use UNAssigned since
I don't want to have to check which release of Unidata someone
might be using.

Thanks.
Tony Gravagno
Nebula Research and Development
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to