RE: [OT] Complete Browser Window Image Capture?
Even better is a program called GIMP (GNU Image Manipulation Program) that's open source and free. I've used it on Linux, but it's also got binaries for running on Windows as well. It's almost as full featured as Photo Shop. You can find out more information and download it here: http://www.gimp.org/index.html -Original Message- From: Larry Hiscock [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:53 AM To: U2 Users Discussion List Subject: RE: [OT] Complete Browser Window Image Capture? You could try using a better paint program ;-) Paint Shop Pro comes to mind. It's got all the feature of high end programs like Photoshop, but it's under $100 Larry Hiscock Western Computer Services http://www.wcs-corp.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of George Gallen Sent: Thursday, April 15, 2004 8:31 AM To: Ardent List Subject: [OT] Complete Browser Window Image Capture? ok. I'm trying to document one of our applications. It uses the web browser as the front end. One of the pages is longer than the window. Anyone know of any utilities that will allow me to convert this into an image? I tried capturing top, capturing bottom, and combining them in PCPaint, but I lost alot of quality. So, now I'm on a trek to find an application to capture the entire window as one long image. Thanks George George Gallen Senior Programmer/Analyst Accounting/Data Division [EMAIL PROTECTED] ph:856.848.1000 Ext 220 SLACK Incorporated - An innovative information, education and management company http://www.slackinc.com -- 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 -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
BETWEEN in a CASE structure
Before I just go off and do this, I thought I'd throw the question out there... In a CASE construct in UniBasic, can you use the BETWEEN keyword to test against a range. For example, I've got a large number of values I'm testing for and several of them are contiguous. Would something like CASE val BETWEEN 6000 6009 be correct or would I need to do something like Case (val = 6000 AND val = 6009) be what I need. Thanks. -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
Subroutine string manipulation not doing what expected
Given the following snippet of code: FOR PLC = 1 TO PART.LIST.COUNT SEARCH.VALUE = DESC.LISTPLC RETURN.VALUE := SEARCH.VALUE : @VM NEXT PLC ROLLSTOCK=RETURN.VALUE I get the following output: P337 P RPVC 0200x20.00 TNT201 P BOX 19:08 15:08 13:08 BX PLAC 20:08 15:08 11:14 However, a simple change to the code to only add a few digits of DESC.LISTPLC like so: FOR PLC = 1 TO PART.LIST.COUNT SEARCH.VALUE = DESC.LISTPLC IF SEARCH.VALUE[1,1]='*' THEN SEARCH.VALUE = SEARCH.VALUE[4,4] END ELSE SEARCH.VALUE = SEARCH.VALUE[3,4] END RETURN.VALUE := SEARCH.VALUE : @VM NEXT PLC ROLLSTOCK=RETURN.VALUE I get the following outupt...not what I was expecting: 37 P My intention is to grab 4 characters out of DESC.LISTPLC, starting at character 4 if the string starts with an asterix or 3 if it doesn't. Can anyone see what I'm doing wrong here? Thanks. -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: Looking for associated multi-value algorithm...
Just to address a couple of your comments... The reason I use SPECIAL so much is the file I'm reading this information from is SPECIAL.PRICE. The fields I'm referencing are from something similar to a sales quote. I'd expect the quantity numbers to rarely match. The fields I'm referencing are Part Number, From Qty and Sales Price. So there could be 5 iterations of part number 12345 with From Qtys of 0, 1000, 2000, 4000 and 1 and Prices of 0.35200, 0.34200, 0.33200, 0.31200 and 0.29200. From experience, I know that I can't count on each of these triads being in any particular order, except for the fact that each mv will be in the same order as the other 2 for any given record. This is information living in my ERP system. -Original Message- From: Mark Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 5:46 PM To: U2 Users Discussion List Subject: Re: Looking for associated multi-value algorithm... Perhaps the most glaring problem here is the level of the LOCATE. Since SPECIAL.PARTS is a value and thus possibly multi-valued, the ,STARTPOS indicator suggests to the LOCATE to look at the first subvalue of the value'd. Somehow, especially since STARTPOS isn't previously defined, it become zero and 1,0 is the same as 1 which may accidentally satisfiy the LOCATE. Remove the commaSTARTPOS from the in the LOCATE and the STARTPOS=SPECIAL+1 as they don't contribute anything. Also, this looks like a FIFO/LIFO algorithm. What are the failures if the qtys don't match. The LOCATE should eliminate the FOR...NEXT loop unless you have the PART.NBR in the 12 more than once. In any case, the FOR...NEXT is is useless. If the PART.NBR is in 12 more than once, use FOR...NEXT and do a simple equals test on 12. I don't believe that LOCATE can find occurrences of PART.NBR after the first one it finds. At least using numbers inside the . Perhaps LOCATE X in Y1,STARTPOS on the outside. I don't use it. FInally, if it's any contribution (and it's my purely non-technical opinion). Remove all the extraneous uses of the prefix SPECIAL. That makes it hard to read as all the variables start with SPECIAL and it's hard to identify their purpose quickly. I'm sure I'll get flamed for this, but it does make it more readable. PARTS=SPECIAL.REC12 C.PARTS=DCOUNT(PARTS,VM) QTYS=SPECIAL.REC14 ; PRICES=SPECIAL.REC16 QTEMP=0 FOR I=1 TO C.PARTS IF PARTS1,I=PART.NBR THEN QTY=QTYS1,I IF QTY QTY.REQUESTED AND QTY QTEMP THEN DATA.OUT=OCONV(PRICES1,I,MDP)R#12 QTEMP=QTY END END NEXT I my 2 cents. I'm looking for an algorithm for searching through a group of associated multi-value fields. The fields are F12 (PartsList), F14 (From Qty) and F16 (Unit Price). I can't depend on these being in any certain order, just that the associated fields will be in identical order. What I want to return is the Unit Price (F16) given PART.NBR and QTY.REQUESTED. I've got a code snippet of what I think will work, but I'd like to get some feedback on it...it won't work because, there's a better way of doing this, etc. Thanks. SPECIAL.PARTS = SPECIAL.REC12 SPECIALCOUNT = DCOUNT(SPECIAL.PARTS,VM) SPECIAL.FROM.QTY.TEMP = 0 FOR SPECIALPART = 1 TO SPECIALCOUNT LOCATE PART.NBR IN SPECIAL.PARTS1,STARTPOS SETTING SPECIAL ELSE EXIT SPECIAL.FROM.QTY=SPECIAL.REC14,SPECIAL IF SPECIAL.FROM.QTYQTY.REQUESTED AND SPECIAL.FROM.QTY=SPECIAL.FROM.QTY.TEMP THEN SPECIAL.FROM.QTY = SPECIAL.REC14,SPECIAL SPECIAL.PART.PRICE = SPECIAL.REC16,SPECIAL TEMP.OUT = OCONV(SPECIAL.PART.PRICE,MDP) R#12 SPECIAL.FROM.QTY.TEMP = SPECIAL.FROM.QTY END STARTPOS = SPECIAL + 1 FIRST = 0 NEXT SPECIALPART DATA.OUT=TEMP.OUT RETURN -- 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 -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: Looking for associated multi-value algorithm...
There can, and usually are, multiple instances of the same part number. What makes a row unique is part number + from qty. Thanks for pointing out the doubling up of the SPECIAL.FROM.QTY assignment though. -Original Message- From: Jeff Fitzgerald [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 4:28 PM To: 'U2 Users Discussion List' Subject: RE: Looking for associated multi-value algorithm... Well, the first thing I notice is that your for/next counter, SPECIALPART, isn't used anywhere... Using LOCATE will search for the PART.NBR in the whole SPECIAL.PARTS field, so the for/next isn't needed. Next, I notice that this assignment: SPECIAL.FROM.QTY=SPECIAL.REC14,SPECIAL is duplicated, once just before the IF and once just after the THEN. One of them can probably be dropped. Hope this helps some Jeff Fitzgerald Fitzgerald Long, Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 3:18 PM To: [EMAIL PROTECTED] Subject: Looking for associated multi-value algorithm... I'm looking for an algorithm for searching through a group of associated multi-value fields. The fields are F12 (PartsList), F14 (From Qty) and F16 (Unit Price). I can't depend on these being in any certain order, just that the associated fields will be in identical order. What I want to return is the Unit Price (F16) given PART.NBR and QTY.REQUESTED. I've got a code snippet of what I think will work, but I'd like to get some feedback on it...it won't work because, there's a better way of doing this, etc. Thanks. SPECIAL.PARTS = SPECIAL.REC12 SPECIALCOUNT = DCOUNT(SPECIAL.PARTS,VM) SPECIAL.FROM.QTY.TEMP = 0 FOR SPECIALPART = 1 TO SPECIALCOUNT LOCATE PART.NBR IN SPECIAL.PARTS1,STARTPOS SETTING SPECIAL ELSE EXIT SPECIAL.FROM.QTY=SPECIAL.REC14,SPECIAL IF SPECIAL.FROM.QTYQTY.REQUESTED AND SPECIAL.FROM.QTY=SPECIAL.FROM.QTY.TEMP THEN SPECIAL.FROM.QTY = SPECIAL.REC14,SPECIAL SPECIAL.PART.PRICE = SPECIAL.REC16,SPECIAL TEMP.OUT = OCONV(SPECIAL.PART.PRICE,MDP) R#12 SPECIAL.FROM.QTY.TEMP = SPECIAL.FROM.QTY END STARTPOS = SPECIAL + 1 FIRST = 0 NEXT SPECIALPART DATA.OUT=TEMP.OUT RETURN -- 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
How to accomplish this from UniObjects
I'm attempting to hijaack a UniBasic subroutine to call from an external program using UniObjects, but it has some requirements I'm not sure how to implement. If anyone has any thoughts, please feel free to post them. Here's the comments in the subroutine... * The calling program must include the MFG.LAYOUTS item CM.AMCS and initialize * the following variables: * PC_CM.REC - the bill to customer record assigned to the data record * PC_SHIP.CM.REC - the ship-to customer record assigned to the data record * PRICE_CODE_TYPE - one of the values assigned to CM.Price_Code_Type * BASE_TYPE - for records such as sales quotes where the default is * first to the SQP.CONSTANTS, then to the SOP.CONSTANTS -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: How to accomplish this from UniObjects
That sounds doable. I was hoping to not have to modify the original sub, and this approach should do just that. I was just unsure as to whether I could do some kind of fake $INCLUDE on the client side via the UniObjects interface. Hoping beyond hope, I know, but I had to ask. -Original Message- From: Pingilley, Ron [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 10:33 AM To: 'U2 Users Discussion List' Subject: RE: How to accomplish this from UniObjects Jason, Make a driver subroutine that accepts parameters via the UniObjects call, has the $INCLUDE needed for the MFG.LAYOUTS item, and does the initializing (possibly based on what you passed through the call). Then this driver can call the real UniBasic subroutine. It's an extra CALL layer, but would allow the original routine to remain unchanged. --Ron P. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 9:53 AM To: [EMAIL PROTECTED] Subject: How to accomplish this from UniObjects I'm attempting to hijaack a UniBasic subroutine to call from an external program using UniObjects, snip * The calling program must include the MFG.LAYOUTS item CM.AMCS and initialize * the following variables: * PC_CM.REC - the bill to customer record assigned to the data record snip -- 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: When is developing with UniObjects the correct approach?
From my experience, I really haven't encountered a situation where I'd recomment not using UniObjects when accessing a U2 database from an outside application. I've heard people say you shouldn't use it directly from ASP because of threading issues, but I've successfully gotten around that by insulating the UniObjects objects within my own COM objects. ASP calls my COM object, my COM objects creates a UniObjects object, does what it needs, closes and releases the object, life is good. I've never even actually tried instantiating the UniObjects directly from ASP to know for sure it's a problem...just went with what others had told me. For straight data access where ODBC is fine, UniData's ODBC works fine. It's just a bit of a PITA to set up initially. I think the biggest benefit of using UniObjects is the ability to utilize existing subroutines in your U2 system. Even going forward, I find it easier to do a lot of my business rules in U2 subs and call those subs from UniObjects. Makes for a pretty elegant n-tiered development environment. Anyway, that's my $.02 -Original Message- From: Karjala Koponen [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 1:45 PM To: [EMAIL PROTECTED] Subject: When is developing with UniObjects the correct approach? Can someone lay out, in relatively simple terms for a simple guy, when using UniObjects is the correct approach to developing an application using one of the U2 databases? And, perhaps, when UniObjects would seem attractive but is not, in reality, a good choice? And, yes, I am sure that reality has lots of 'it depends ...'. Thanks, Karjala -- 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: Using OpenOffice with UniVerse/Unidata - request for U2 users to be involved
As much as I hate to defend Microsoft...and I do hate defending Microsoft...they have patents on their implementation of XML, not XML in general. This has no effect on XML. It's akin to someone patenting a method of casting a die out of aluminum. That patent doesn't affect aluminum, nor does it affect the casting of aluminum dies except for protecting the methodology laid out in the patent. As for MS Office being bloatware, I can't defend that. -Original Message- From: Farrell McGovern [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 9:52 AM To: U2 Users Discussion List Subject: Re: Using OpenOffice with UniVerse/Unidata - request for U2 users to be involved Ian Stuart wrote: Although I have requested IBM to look at some of the issues associated with OOo and U2 it would appear that the 'not invented here' syndrome prevents them from doing anything constructive; this is not a criticism, just an observation. I am surprised though that with IBM really pushing the Linux strategy that OOo is not seen as an alternative to MS Office for Linux on the desktop. Actually, it's more of this: As part of its initiative to put Linux on the desktop, IBM Corp. wants to migrate Microsoft Corp.'s Office suite to Linux. Microsoft said it's not involved and suggests that IBM might do it by emulation. from: http://www.infoworld.com/article/04/02/13/HNlinuxoffice_1.html I don't think this is a good move...MS-Office is bloatware, and as MS patents it's XML formats (the Patent Office is so stoopid! Tomorrow, I will patent Air, and start charging everyone on Earth usage fees!), many may move away from it, if only for interoperablity sake. But that's just my personal opinions. We have someone here is is working on OOo and integrating it with our Unvierse product, Medformix under our version of Linux, MfxLinux. You can email him at [EMAIL PROTECTED] He doesn't get onto mailing lists. ttyl Farrell -- Politicians should read science fiction, not westerns and detective stories. -- Sir Arthur C. Clarke Farrell J. McGovern Crowell Systems Linux Systems Admin.Toll Free (US and Canada) 1-800-366-4564 [EMAIL PROTECTED] http://crowellsystems.com -- 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