RE: Timestamp
For those not familiar: SYSTEM(19) on D3: Returns a unique item-id consisting of the current system date in internal format, followed immediately by the current system time in seconds. If more than one item-id is generated in a second, an alpha character is appended to the item-id. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Eugene Perry Sent: Tuesday, April 27, 2004 8:06 PM To: [EMAIL PROTECTED] Subject: Timestamp Hello, On Unidata, is there an equivalent of D3's SYSTEM(19)? Thanks Eugene -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: PDF Manual [Data typing in MV Basic]
Robert: Thanks for the link. I've been tired of Adobe's slowness for years. If you use the above don't forget to install Acrobat reader speedup from: http://www.tnk-bootblock.co.uk/prods/misc/index.php -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: Optimisation ?
Jonathan: Despite the digression about your code, I think the TRIM() function should work just fine. On D3, however, no matter how many leading or trailing @VMs exist, a single @VM remains at the beginning and/or end of the string. This is true even with Glenn's suggestion, TRIM(REC1, @VM, R). This works fine on U2, but if you need to port to D3 you'd need to revert to a modified version of the code you included below. Hope this helps. Bill -Original Message- Behalf Of Jonathan Leckie Sent: Thursday, March 25, 2004 4:29 AM To: [EMAIL PROTECTED] Subject: Optimisation ? I have the following piece of code : IF REC1 £ '' THEN MAX=DCOUNT(REC1,VM) FOR LOP=1 TO MAX IF REC1,LOP = '' THEN REC=DELETE(REC,1,LOP,0) IF LOP = MAX THEN GO 300 LOP=LOP-1 END NEXT LOP END I wonder could this simply be replaced with : IF REC1 £ '' THEN REC1=TRIM(REC1,@VM) GO 300 END Can anyone see any problems with using TRIM to remove trailing, repeated and initial value markers and therefore achieving the same effect without looping through each multi-value? This is on Unidata 3.3.2 incidentally. -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: UniOLEDB and ASP
John: Try opening IIS MMC and navigate to the web site you're interested in. Then right click on the web site, click on properties and select the Web Site tab. In the bottom section you probably have Enable Logging checked so click on the [Properties] button. The location, and name, of the log file(s) should be visible. Hope this helps. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tsombakos, John Sent: Monday, March 22, 2004 5:18 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: UniOLEDB and ASP Thanks. Can you point me to where the log file is being created? IIS is being run as the SYSTEM account, but I don't know where the log file is being written. I've checked c:\temp and c:\winnt\temp. Thanks. -Original Message- Message: 16 Date: Wed, 17 Mar 2004 18:27:50 -0300 (ART) From: Horacio Pellegrino [EMAIL PROTECTED] Subject: Re: UniOLEDB and ASP To: U2 Users Discussion List [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 The problem that you have is that the windows user used by IIS to run the ASP script has not enought permissions to write the log files. You can either let IIS execute as administrator or raise the permissions of the user used BY IIS. Have in mind that that user is NOT the current logged one. Cheers! HP -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: Formating Negative Numbers
Phil: In BASIC: OCONV((wkVal 0), 'S;-;') : ABS(wkVal) R(%6) In AQL (assuming value is in attribute/field 001): DICT FILENAME 'TEST' size = 76 01 S 02 1 03 Value 04 05 06 07 08 AIF 1 '0' THEN 1(S;'-';''):1(MCN)(MR%6) ELSE 1(MR%6) 09 R 10 7 Hope this helps. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Phil Walker Sent: Wednesday, March 10, 2004 8:53 PM To: U2 Users Discussion List Subject: Formating Negative Numbers Does anyone have a quick way to format a negative number in a field filled with zeros such that the '-' sign appears at the front replacing the 1st zero. For example -2using 'R%6' becomes -2 2 using 'R%6' becomes 02 But I would like -2 to become -2 and 2 to remain 02. I know I could write code to do this, but I was wondering if you can do it just using the fmt syntax. Regards, Phil Walker +64 21 336294 [EMAIL PROTECTED] infocusp limited \\ PO Box 77032, Auckland New Zealand \ www.infocusp.co.nz DISCLAIMER: This electronic message together with any attachments is confidential. If you are not the intended recipient, do not copy, disclose or use the contents in any way. Please also advise us by return e-mail that you have received the message and then please destroy. infocusp limited is not responsible for any changes made to this message and / or any attachments after sending by infocusp limited. We use virus scanning software but exclude all liability for viruses or anything similar in this email or any attachment -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: [UV] Variable never assigned a value warning
Marco: A useful alternative, which noone has ever fixed in over 25 years, is the message: [B10] in program MyProgram, Line 106: Variable has not been assigned a value; zero used. or [B10] in program MyProgram, Line 106: Nonnumeric where numeric required; zero used. Why in the world hasn't it been fixed to display: [B10] in program MyProgram, Line 106: InvoiceNo has not been assigned a value; zero used. or [B10] in program MyProgram, Line 106: InvoiceNo = A; Nonnumeric where numeric required; zero used. Stupid questions for the exasperated business developer? Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin Phillips Sent: Wednesday, March 03, 2004 12:42 AM To: U2 Users Discussion List Subject: Re: [UV] Variable never assigned a value warning Marco, The easy answer is no. This would require the compiler to establish all possible paths through a program and determine whether it was possible to arrive at any place that uses a variable without setting it first. Although some compilers (many C compilers for example) make a good attempt at this, there are always cases that cannot be resolved. As a very simple example, consider the following: BEGIN CASE CASE A = 1 B = 'Apple' CASE A = 2 B = 'Orange' CASE A= 3 B = 'Banana' END CASE DISPLAY B Clearly, if A is not 1, 2 or 3 B will not be assigned when we get to the DISPLAY statement. But, the compiler cannot treat this as an error/warning because the author of the program may know that A can only have these values. We do not want to have to set variables explicitly for cases that cannot happen. Incidentally, I find the worryingly common practice of setting all variables to zero / null at the top of a program very annoying as it hides the very useful unassigned variable trap, leaving you thinking your program works when actually it doesn't I am told that a UV user somewhere has asked for this trap to be optional. I wouldn't like to try to support their code! Martin Phillips Ladybridge Systems 17b Coldstream Lane, Hardingstone, Northampton NN4 6DB +44-(0)1604-709200 - Original Message - From: Marco Manyevere [EMAIL PROTECTED] Subject: [UV] Variable never assigned a value warning Hi All, Is it technically or theoretically possible for the BASIC compiler (or any other compiler for that matter) to catch (during compilation) all the situations that might result in the use of unassigned variable at runtime within the scope of the subroutine being compiled? Under what circumstances does the compiler catch or fail to catch such situations? -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: [ADMIN] The aforementioned and promised NAG about OVERQUOTING
Ray: I don't much agree with your analysis. Definitive statements such as ...top-posting still makes things more difficult for just about everybody else and ...there really are no valid reasons to top-post,... and ...Insisting on top-posting...is just plain rude and self serving. are incorrect and to base an analysis on such a flimsy foundation is...well, I think I'll say no more. Bill -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users