Re: [U2] Include Vs Call - Software Maintenance
We use functions heavily - having an include for each project with up an over a hundred deffun's - and I only have two issues/complaints with them. First the need to have deffuns and second, the spurious warning messages we get at compile time for internal returns not having a return value . I mean they don't return anything and IMNSHO shouldn't have one. ( We use return (dum) as a workaround ) -- mats Mark Johnson wrote: snip This causes me to think of the complement to subs and that is functions. Functions are quite useful in VB (et al) yet don't show up at all in legacy code and don't get that much airtime here on this forum. I've only ran into them once on UD when hooking into Redback. Every time I write a SUB that really is a function in purpose, I tend to name it GET.PRICE or GET.USER or GET.PRINTER etc. So are functions a kept secret in MV programming or has no-one had any issues with them? I'd like to know so I could either get better with them or ignore them and continue with subs. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] Sorting UNIQUE
Barry, I haven't tested this to prove it out with total certainty, but IIRC everytime I've used the saving unique clause the results have come out sorted in either left justified alphanumeric or right justified numeric ascending order based on whether or not the dictionary/field specified after the saving unique clause is set to left or right justified. joe - Original Message - From: Barry Brevik [EMAIL PROTECTED] To: U2-users (E-mail) u2-users@listserver.u2ug.org Sent: Thursday, May 19, 2005 9:11 PM Subject: [U2] [UV] Sorting UNIQUE Running UV 9.6.1.3 on Win2K. I was doing a SELECT FILENAME SAVING UNIQUE F45, again rueing how you can not use SSELECT or BY when SAVING UNIQUE... ...when I noticed that the resulting lists appear to be alphanumerically sorted in ascending order anyway!! This makes sense to me because I would think the logic that determines unique-ness would have to sort the data to make that determination. This happens to be exactly what I'm after. But, since I am putting this code into programs, can I count on sorted results at all times? Is it guaranteed? I can't seem to find this in documentation. TIA, Barry --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Include Vs Call - Software Maintenance
The nice thing about functions is that you can return the error code of your function giving you the following syntax IF myfunc(var1,var2,var3) THEN * process errors END which i prefer to CALL mysub(var1,var2,var3,error) IF error THEN * process errors END and beware that parameters passed through to your function is still passed 'by reference' like in a subroutine, and not 'by value', so your function is able to alter all passed parameters if you want to restrict your function from altering the passed parameters you still need to enclose them in () best regards from 'grey rainy' Denmark Jeff wrote this : Functionally speaking, why would I use a function which can return a single argument when I can use a subroutine which can return 1 or more? In terms of code reuse, there are often times when I've written a subroutine that returns a single argument, only to go back months later and add more return args. A subroutine would still need to be changed, but I feel the perceived amount of work I have to do is less. Perhaps it's just my perception... -- Jeff Butera, Ph.D. Frie Funktionfrer - faglig organisation og tvfrfaglig a-kasse - www.f-f.dk *** Denne email og alle filer vedlagt som bilag kan indeholde fortroligt materiale, der kun er beregnet for adressaten, og maa ikke udleveres eller kopieres til uvedkommende. Har De ved en fejltagelse modtaget denne email, bedes De venligst omgaaende meddele os dette pr. telefon : 6313 8550. Paa forhaand tak. *** This email and any files transmitted with it may contain confidential information intended for the addressee(s) only. The information is not to be surrendered or copied to unauthorised persons. If you have received this communication in error, please notify us immediately by telephone: +45 6313 8550. Thank you. *** --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Include Vs Call - Software Maintenance
Mats, Check out the NO.RETURN.WARN compiler option. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mats Carlid Sent: Friday, 20 May 2005 2:18 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Include Vs Call - Software Maintenance We use functions heavily - having an include for each project with up an over a hundred deffun's - and I only have two issues/complaints with them. First the need to have deffuns and second, the spurious warning messages we get at compile time for internal returns not having a return value . I mean they don't return anything and IMNSHO shouldn't have one. ( We use return (dum) as a workaround ) -- mats DISCLAIMER: Disclaimer. This e-mail is private and confidential. If you are not the intended recipient, please advise us by return e-mail immediately, and delete the e-mail and any attachments without using or disclosing the contents in any way. The views expressed in this e-mail are those of the author, and do not represent those of this company unless this is clearly indicated. You should scan this e-mail and any attachments for viruses. This company accepts no liability for any direct or indirect damage or loss resulting from the use of any attachments to this e-mail. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] I'm in an Array quandry, any suggestions...
[EMAIL PROTECTED] wrote: In a message dated 5/18/2005 11:50:38 PM Pacific Daylight Time, [EMAIL PROTECTED] writes: OK, sure. But readnext doesn't really work on an array but on a select list. Ah but that's not so. You can SELECT myVAR You can SELECT myVAR to LIST5 You can SELECT myVAR to MyLIST and then you *can* in fact READNEXT your array. Selecting the variable turns a dynamic arry into a list type variable. Will Johnson --- Will, try myVar = 1:@FM:2 SELECT myVar myVar1 = 3 READNEXT X THEN PRINT X the result is 1 thus readnext _doesn't_ read my array.. But of course you may user readnext to step thru an array with this technique -- if you keep in mind that it is an old image of the array that you processing - and mostly it doesn't matter as the array doesn't change. -- mats --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Include Vs Call - Software Maintenance
don't forget that sub 'return' values can be used inline using SUBR() : IF SUBR(mysub,var1,var2,var3) THEN * process errors END -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Claus Derlien Sent: Friday, May 20, 2005 03:31 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Include Vs Call - Software Maintenance The nice thing about functions is that you can return the error code of your function giving you the following syntax IF myfunc(var1,var2,var3) THEN * process errors END which i prefer to CALL mysub(var1,var2,var3,error) IF error THEN * process errors END and beware that parameters passed through to your function is still passed 'by reference' like in a subroutine, and not 'by value', so your function is able to alter all passed parameters if you want to restrict your function from altering the passed parameters you still need to enclose them in () best regards from 'grey rainy' Denmark Jeff wrote this : Functionally speaking, why would I use a function which can return a single argument when I can use a subroutine which can return 1 or more? In terms of code reuse, there are often times when I've written a subroutine that returns a single argument, only to go back months later and add more return args. A subroutine would still need to be changed, but I feel the perceived amount of work I have to do is less. Perhaps it's just my perception... -- Jeff Butera, Ph.D. Frie Funktionfrer - faglig organisation og tvfrfaglig a-kasse - www.f-f.dk *** Denne email og alle filer vedlagt som bilag kan indeholde fortroligt materiale, der kun er beregnet for adressaten, og maa ikke udleveres eller kopieres til uvedkommende. Har De ved en fejltagelse modtaget denne email, bedes De venligst omgaaende meddele os dette pr. telefon : 6313 8550. Paa forhaand tak. *** This email and any files transmitted with it may contain confidential information intended for the addressee(s) only. The information is not to be surrendered or copied to unauthorised persons. If you have received this communication in error, please notify us immediately by telephone: +45 6313 8550. Thank you. *** --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] [UV] UniObjects - database license expired
Hi all, Having a couple of hours to spare I decided it was time I got my head around UniObjects but I'm having problems connecting to the database I'm trying to connect to a UV 9.6.2 database on a Linux server and UniObjects is returning error 39121 (Database license has expired) I've been through a couple of error codes so far (Unirpc not running , user limit reached) both of which were true at the time so I'm reasonably confident that I'm connecting to the right place, I just don't understand why it thinks the license has expired The main universe license expires on 1/1/2500 , as do the -UCI, -UVADM and -UVODBC packages CONFIG doesn't show the IC package but all the files in the IC cpio archive on CD are installed in the correct place Uniobjects is the latest version from the 10.1a Client CD I'm obviously missing something pretty simple but I can't see it, can anybody else ? Thanks Piers --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] I'm in an Array quandry, any suggestions...
In a message dated 5/20/2005 2:47:20 AM Pacific Daylight Time, [EMAIL PROTECTED] writes: myVar = 1:@FM:2 SELECT myVar myVar1 = 3 READNEXT X THEN PRINT X Right but that's easy to fix. Instead of SELECT myVar Use SELECT myVar to myListVar or SELECT myVar to 3 And then instead of READNEXT X you use READNEXT X FROM myListVar or READNEXT X FROM 3 And your problem vanishes. It is always true that if you change an array after the select then its not reading the array. My example way back in this thread was that you can step through an array using Readnext, not that it solves every possible configuration of that :) Will --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] UniObjects - database license expired
I think we had this happen once when the version of uniobjects we installed was not the 'same' as the version of universe we had installed. I think you can't just use the latest version of uniobjects, it has to be the right one for your universe version. -Dianne Piers Angliss wrote: Hi all, Having a couple of hours to spare I decided it was time I got my head around UniObjects but I'm having problems connecting to the database I'm trying to connect to a UV 9.6.2 database on a Linux server and UniObjects is returning error 39121 (Database license has expired) I've been through a couple of error codes so far (Unirpc not running , user limit reached) both of which were true at the time so I'm reasonably confident that I'm connecting to the right place, I just don't understand why it thinks the license has expired The main universe license expires on 1/1/2500 , as do the -UCI, -UVADM and -UVODBC packages CONFIG doesn't show the IC package but all the files in the IC cpio archive on CD are installed in the correct place Uniobjects is the latest version from the 10.1a Client CD I'm obviously missing something pretty simple but I can't see it, can anybody else ? Thanks Piers --- --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] UniObjects - database license expired
I'm trying to connect to a UV 9.6.2 database on a Linux server and I believe that at 9.6 an additional license was required to use UniObjects. You probably don't have that license installed. Upgrade to 10.X, buy an additional license for UniObjects or download one of the PE additions and install it on your pc for playtime fun... --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Domino / Universe connectivity
A large Universe user has a public web site maintained with Domino Designer. They are looking for the best way to create a B2B/B2C portal which allows their trading partners to login and get status info from their Universe app. Data includes delivery status, open invoices, etc. Of their several thousand clients, they expect about 40 companies to actively use the interface on a daily, 24 hour basis. Pertinent technologies: They have WebSphere but they are not a Java shop per-se. Their site serves up .NSF pages but they are not real pros with Domino Designer. They do not have RedBack. They do not use SB+ or any other 4GL RAD. They are not using any other connectivity components. They are concerned about security issues and are leery of Microsoft/IIS but they have no problem with .NET behind a secured login, so access to these new pages would be restricted through an NSF login page, but any technology behind that is open for discussion. I understand Domino Designer has a DCE interface to Universe but I'm not familiar with it (and not particularly fond of DCE if that's a traditional DCE connection). I'm currently considering ASP.NET pages connecting to uv via UO.NET or mv.NET. This would allow a lot of freedom for expansion to support Web Services, access by smart devices, etc.. I'm also considering DesignBais, which connects via UO and is excellent for this sort of intranet/extranet interface, as well as being friendly for end-user developers who are not familiar with .NET. I don't want the end-user to be locked into technology that they don't understand or make them dependent on consultants, so a solution that they can learn quickly and maintain on their own (like DesignBais) would be ideal in this regard. Those are my personal choices but my mind is open for opinions from people with a better understanding of this Lotus/Domino/WebSphere environment. I'm looking for someone who is familiar with this sort of environment and suggestions for a best approach. What is the DCE connection to Universe, where does it come from, and are there any docs available? Can anyone recommend a more direct connectivity method that a user of Domino Designer can use without involving .NET or third party tools? Any other suggestions and offers for services welcome. Thanks. Tony Gravagno, Nebula Research and Development TG @ removethisNebula-RnD .com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Include Vs Call - Software Maintenance
main-program change and I then re-compile the sub, then the other main-program (which depends on the sub) could get whacked. It is more of a pain to maintain programs that depend on a shared include than maintaing a common subroutine. One way to limit the impact is to plan for new parameters being passed to your subroutine. You can have an unused DIM Matrix of a certain size (like 20 or so). If you need later on to pass opened files or other variables, you can simply use the unused fields in the Matrix. Existing programs won't neccessarely need to be modified as the number of parameters passed hasn't changed. You only need to take into account that the new parameters may not have been filled out. I've seen some dumb things in shared includes and/or commons such as variables called X or I. These values tend to get changed when someone needs a FOR loop. Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Domino / Universe connectivity
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Gravagno Sent: Saturday, 21 May 2005 5:21 AM To: u2-users@listserver.u2ug.org Subject: [U2] Domino / Universe connectivity A large Universe user has a public web site maintained with Domino Designer. They are looking for the best way to create a B2B/B2C portal which allows their trading partners to login and get status info from their Hi Tony Visual Studio .Net and Uniobjects .Net allows you to set up very easy web services. For B2B that could be a good way to go. If you are looking at ASP .Net and want security, then I would recommend Win2003 and IIS 6 that comes with it. This is highly secured compared to previous releases. Again ASP .Net works with UniObjects .Net. Regards David Jordan --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Domino / Universe connectivity
David Jordan wrote: Visual Studio .Net and Uniobjects .Net allows you to set up very easy web services. For B2B that could be a good way to go. If you are looking at ASP .Net and want security, then I would recommend Win2003 and IIS 6 that comes with it. This is highly secured compared to previous releases. Again ASP .Net works with UniObjects .Net. Thanks David, but I guess I didn't convey my perspective. I'm a competent .NET developer with credentials in that area totally outside of MV, and we (Nebula RD) have plenty of .NET resources for development with and without MV. The thing that has me on the fence at the moment is finding the proper way to integrate a .NET (or other connectivity) solution with a Domino Web Server, .nsf pages written in Domino Designer, etc.. I'm not familiar with how Domino does server-side includes, how they call to databases or COM/automation, etc. Now I do like your idea about using Web Services to get into Universe, but I have no idea yet of how to get Domino to request web services. I'll research that. Without another firm option, all I can think of is to have someone login to an nsf page and then completely hand over control to ASP.NET. I'm also open to information about WebSphere as a middle-tier conduit, sort of like RedBack, but I don't know if IBM has connected those dots yet with Universe. Thanks again. Tony, Nebula RD Tech Editor, C#Builder KickStart, SAMS Publishing Tech Editor for C# articles for various .NET magazines Author Web Services and .NET series of articles for Spectrum Magazine .NET development and training services available No experience with Domino or Lotus Notes --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Domino / Universe connectivity
UniVerse has a websphere api, although consider the performance requirements as IBM mentioned it is not a good alternative for pooling processes. Is the Domino Server, a Lotus Notes Domino Server or is it something else. Regards David Jordan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Gravagno Sent: Saturday, 21 May 2005 3:03 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Domino / Universe connectivity David Jordan wrote: Visual Studio .Net and Uniobjects .Net allows you to set up very easy web services. For B2B that could be a good way to go. If you are looking at ASP .Net and want security, then I would recommend Win2003 and IIS 6 that comes with it. This is highly secured compared to previous releases. Again ASP .Net works with UniObjects .Net. Thanks David, but I guess I didn't convey my perspective. I'm a competent .NET developer with credentials in that area totally outside of MV, and we (Nebula RD) have plenty of .NET resources for development with and without MV. The thing that has me on the fence at the moment is finding the proper way to integrate a .NET (or other connectivity) solution with a Domino Web Server, .nsf pages written in Domino Designer, etc.. I'm not familiar with how Domino does server-side includes, how they call to databases or COM/automation, etc. Now I do like your idea about using Web Services to get into Universe, but I have no idea yet of how to get Domino to request web services. I'll research that. Without another firm option, all I can think of is to have someone login to an nsf page and then completely hand over control to ASP.NET. I'm also open to information about WebSphere as a middle-tier conduit, sort of like RedBack, but I don't know if IBM has connected those dots yet with Universe. Thanks again. Tony, Nebula RD Tech Editor, C#Builder KickStart, SAMS Publishing Tech Editor for C# articles for various .NET magazines Author Web Services and .NET series of articles for Spectrum Magazine .NET development and training services available No experience with Domino or Lotus Notes --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/