From dthmpsn1 at illinois.edu Wed Jun 1 04:40:54 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Wed, 1 Jun 2011 06:40:54 -0500 (CDT) Subject: Supergetpassword anomalies Message-ID: <20110601064054.CRG79385@expms1.cites.uiuc.edu> >When I try using SuperGetPassword in an >.Initialize procedure, I get the following two >error messages: "SetPerameterError: Parameter 1 >is not a valid variable." Then: "Parameter does >not exist." > >Here's the relevant code: > >fileglobal fPassword >fPassword="" >supergetpassword fPassword > >if fPassword="Sunt lacrimae rerum" > //message "Correct" > shortcall openUp >else > Message "Sorry, wrong password. Try again." > supergetpassword fPassword > if fPassword ? ""Sunt lacrimae rerum" > Message "Wrong again." > supergetpassword fPassword > if fPassword ? ""Sunt lacrimae rerum" > Message "Strike three." > stop > else > shortcall openUp > endif > else > shortcall openUp > endif >else > shortcall openUp >endif >stop > >What's going on here? I think parameter 1 is the >fileglobal variable fPassword, and it looks ok to >me. When I run this code from the procedure >itself in debug mode, it works fine. (But in >order to run it that way, the database has to >already be open.) >-- In order for the .Initialize procedure to run at all, the database must already be open. It sounds like you have set the database to open without windows, and the password is to open a window. The dialog for SuperGetPassword is a form in one of the custom statement libraries. When that form opens, the custom statement library becomes the active database. When the form closes, the window behind it becomes the active window. Normally, this would put you back in the database where you were before the form opened, but since that database has no open windows, it will be some other database, or no database at all. If your database isn't active, its FileGlobal variables won't be in scope. Try using a local variable as your parameter instead. Its value can be transferred later to a FileGlobal if necessary. Before attempting to open a window in your database, be sure to make that database active in a secret window. For the benefit of those that like to view their email by thread, please don't hit reply, and change the subject. If it's not really a reply, start a new message.. The way you did it, you made this part of the Recursion Depth thread. Dave From jayschille at gmail.com Wed Jun 1 09:05:58 2011 From: jayschille at gmail.com (Jay Schille) Date: Wed, 1 Jun 2011 09:05:58 -0700 Subject: Supergetpassword anomalies In-Reply-To: <20110601064054.CRG79385@expms1.cites.uiuc.edu> References: <20110601064054.CRG79385@expms1.cites.uiuc.edu> Message-ID: > > >In order for the .Initialize procedure to run at all, the database >must already be open. It sounds like you have set the database to >open without windows, and the password is to open a window. > >The dialog for SuperGetPassword is a form in one of the custom >statement libraries. When that form opens, the custom statement >library becomes the active database. When the form closes, the >window behind it becomes the active window. Normally, this would put >you back in the database where you were before the form opened, but >since that database has no open windows, it will be some other >database, or no database at all. If your database isn't active, its >FileGlobal variables won't be in scope. > >Try using a local variable as your parameter instead. Its value can >be transferred later to a FileGlobal if necessary. Before attempting >to open a window in your database, be sure to make that database >active in a secret window. > >For the benefit of those that like to view their email by thread, >please don't hit reply, and change the subject. If it's not really a >reply, start a new message.. The way you did it, you made this part >of the Recursion Depth thread. > >Dave >_______________________________________________ >Qna mailing list >Qna at provue.com >http://provue.com/mailman/listinfo/qna Thanks, Dave. Good to know. My e-mail application (long-in-the-tooth Eudora) displays the subject but not always the thread. -- Jay Schille From JC at JamesCook.biz Thu Jun 2 09:32:54 2011 From: JC at JamesCook.biz (James Cook) Date: Thu, 2 Jun 2011 12:32:54 -0400 Subject: Cross Tab Field Names Message-ID: I've experienced an ongoing problem with the field names in cross tabs. When printed, the names are missing, truncated and/or mis-aligned with the fields themselves. When I've reported it as a bug, ProVUE has been unable to reproduce it. Since my customers are also experiencing this same trouble, I'd be interested in knowing if anyone else has seen it. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From ballewijn at gmail.com Thu Jun 2 02:41:26 2011 From: ballewijn at gmail.com (Sylvia van der Heijden) Date: Thu, 2 Jun 2011 11:41:26 +0200 Subject: Question Message-ID: <48C799E3-4EFA-4DD2-9BF8-955A5F86103C@gmail.com> Thank you. This helps, but there is a lot of work to do. May I give another example. In a text field (called text) an amount 1234,56 is taken out as a string on a local (called A for the occasion) A=text["0-9","-"][1,"-0-9"] When you put this amount in a cell of a numeric field called number number=val(A) the cents are not longer recognized, the cell shows 1234,00 You have to transform the amount for which I also used a replacement number=val(replace(A,",",".")) Then the cell shows 1234,56. It seems a paradox that you have to change a comma to a point before the full amount is recognized In older panoramas all this work is not necessary Is there (another) solution for this problem Sylvia Op 27 mei 2011, om 17:42 heeft BillArleneBush at cs.com het volgende geschreven: > In a message dated 5/26/11 6:34:30 PM, qna-request at provue.com writes: > > << Subject: Question > > In my database an given large amount, using #.,## in the design, is > written: 1.234.567,89 like Apple does that for customers in Europa. >> > > If you want a comma replaced by a period and a period replaced by a comma, > may be the follow code will be a hint. First the comma is replaced by the > character c, then the period replaced by a comma, and then the c is replaced > by a period. Use in copy or paste procedures. > > Local amount,result > amount="1.234.567,89" > result =replacemultiple(amount,",\.\c", "c\,\." ,"\") > message result ; 1,234,567.89 > > Bill Bush > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert at ameeti.net Thu Jun 2 12:47:05 2011 From: robert at ameeti.net (Robert Ameeti) Date: Thu, 2 Jun 2011 12:47:05 -0700 Subject: Cross Tab Field Names In-Reply-To: References: Message-ID: Yep. Been there. At 12:32 PM -0400, 6/2/11, James Cook wrote: >I've experienced an ongoing problem with the >field names in cross tabs. When printed, the >names are missing, truncated and/or mis-aligned >with the fields themselves. > >When I've reported it as a bug, ProVUE has been unable to reproduce it. > >Since my customers are also experiencing this >same trouble, I'd be interested in knowing if >anyone else has seen it. -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist Never eat more than you can lift. -- Miss Piggy <><><><><><><><><><><><> From robert at ameeti.net Thu Jun 2 12:50:50 2011 From: robert at ameeti.net (Robert Ameeti) Date: Thu, 2 Jun 2011 12:50:50 -0700 Subject: Cross Tab Field Names In-Reply-To: References: Message-ID: I've found that my making a movie works wonders. I use Snapz Pro X to make the movie showing these kinds of issues. Rarely do I then need to say anything more nor do I even need to submit a sample file. If I can duplicate a problem, then a movie is the answer. At 12:32 PM -0400, 6/2/11, James Cook wrote: >I've experienced an ongoing problem with the >field names in cross tabs. When printed, the >names are missing, truncated and/or mis-aligned >with the fields themselves. > >When I've reported it as a bug, ProVUE has been unable to reproduce it. > >Since my customers are also experiencing this >same trouble, I'd be interested in knowing if >anyone else has seen it. -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist Difference between a virus and Windows? Viruses never fail. <><><><><><><><><><><><> From cdpublishing at qwestoffice.net Fri Jun 3 11:32:46 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Fri, 3 Jun 2011 11:32:46 -0700 Subject: hinky map? Message-ID: <035F700B-F792-4B1B-904F-FE6A8F67E844@qwestoffice.net> I use the openmapwindow statement occasionally, but recently it has developed short term memory loss...it does open to the proper map location on the first click, but once open, any click to zoom in or out moves to a different and incorrect map location... debug local Lstreet,Lcity,Lstate,Lpostalcode,Lcountry Lstreet=Address Lcity=City Lstate=St Lpostalcode=ZIP openmapwindow Lstreet, Lcity, Lstate, Lpostalcode, "", 500, 600, "" 18411 Gothard, huntington beach, ca 92648 seems to show properly on first click (Gothard /Ellis intersection), but bigger or smaller goes to the intersection of Orange Avenue/Main Street...... why? Thanks, Craig McPherson -------------- next part -------------- An HTML attachment was scrubbed... URL: From kilaws at gmail.com Fri Jun 3 11:44:51 2011 From: kilaws at gmail.com (Ken Laws) Date: Fri, 3 Jun 2011 11:44:51 -0700 Subject: Not My Fault Message-ID: Hi! I got a shock this morning when my database wouldn't open. "You have encountered an error that is not your fault (Hunter fn)." The alert box could only throw me back to my Mac OS 10.5.8 Finder. Restarting the Finder made no difference. I downloaded the lastest Panorama version, but found the same behavior. Fortunately, I knew how to use openplain from another database to pry the file open -- but all attempts to save a new copy failed, as all copies had the same problem. Or, if I deleted my .Initialize procedure, a new problem: Panorama would open but the data file would not. No error message, but no data. I got around the problem by opening an old version of the database and copying in the 15 or so procedures that I had edited since then. This new version appears to be working. Any idea what caused the problem? Is there a simpler way to get a damaged file working again? And, while I'm here, is there a way to get Panorama to actually save a file when I give the Save command? I've been writing some textfilter code, and textfilter crashes if it encounters any error in its procedure. Restoring after the crash often opens a state several edits before the crash, even when I have done multiple Saves since that point. Very frustrating. Do I really have to close and reopen the file before doing each test run, to ensure an up-to-date save? The same problem has happened in other circumstances, sometimes losing data that I've entered -- not a good feature in a database program. -- Ken Laws Palo Alto, CA From dthmpsn1 at illinois.edu Fri Jun 3 13:16:40 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 3 Jun 2011 15:16:40 -0500 (CDT) Subject: Not My Fault In-Reply-To: References: Message-ID: <20110603151640.CRI68168@expms1.cites.uiuc.edu> >And, while I'm here, is there a way to get Panorama to actually >save a file when I give the Save command? I've been writing some >textfilter code, and textfilter crashes if it encounters any error in >its procedure. >Restoring after the crash often opens a state several edits before >the crash, even when I have done multiple Saves since that point. It sounds like you have set your Total Recall preferences for a fairly long time interval. Total Recall saves the state of Panorama's RAM at the interval you specify. When you restore after a crash, you are loading that data back into RAM. That data may or may not be more up to date than your most recent save of a particular database. Dave From devine at sonic.net Fri Jun 3 17:13:43 2011 From: devine at sonic.net (J.T. Devine) Date: Fri, 3 Jun 2011 17:13:43 -0700 Subject: hinky map? In-Reply-To: <035F700B-F792-4B1B-904F-FE6A8F67E844@qwestoffice.net> References: <035F700B-F792-4B1B-904F-FE6A8F67E844@qwestoffice.net> Message-ID: <2B5624C3-FCD6-451A-9DBB-E27CB272DEE1@sonic.net> Exploring this a little bit (out of curiosity) I think I see where the problem is and a temporary solution, but beware as I don't know what problems the fix may cause in other areas. Whoever created this custom statement will have to chime in. The problem is that when you click on any zoom level in the initial map the resized map looses the street address and just goes to the center of the city (Zipcode?) in question. Here's a workaround: When you first run your procedure and get the initial map it is at zoom level 2. The form is called "Map" in a database called "_InternetLib". Those zoom levels on the left edge of the window are a SuperMatrix that is tied to a procedure called MAPACTION. If you open that procedure from the View menu, you'll see it has a shortcall subroutine. In that subroutine is this line: savewebmap mappath+mapid+".gif", 10-wZoomLevel , ? (wMapURL<>"",wMapURL,wAddress) , wCity , wState , wZip , "",wMapURL, rheight(maprect), rwidth(maprect) It's the "?(wMapURL<>"",wMapURL,wAddress)" part that seems to be the problem. For reasons I do not understand, the windowglobal variable "wMapURL" is always "-", therefore not empty and therefore the address stored in the variable "wAddress" is not passed on to the refreshed map. If you change that line in the subroutine to: savewebmap mappath+mapid+".gif", 10-wZoomLevel , wAddress , wCity , wState , wZip , "",wMapURL, rheight(maprect), rwidth(maprect) things seem to work correctly. Again, I don't know what or if this causes other problems, but it works for me for now. Procede with caution! J.T. Devine devine at sonic.net On Jun 3, 2011, at 11:32 AM, Craig McPherson wrote: > I use the openmapwindow statement occasionally, but recently it has > developed short term memory loss...it does open to the proper map > location on the first click, but once open, any click to zoom in or > out moves to a different and incorrect map location... > > debug > local Lstreet,Lcity,Lstate,Lpostalcode,Lcountry > Lstreet=Address > Lcity=City > Lstate=St > Lpostalcode=ZIP > openmapwindow Lstreet, Lcity, Lstate, Lpostalcode, "", 500, 600, "" > > 18411 Gothard, huntington beach, ca 92648 > seems to show properly on first click (Gothard /Ellis intersection), > but bigger or smaller goes to the intersection of Orange Avenue/Main > Street...... > > why? > > Thanks, > > Craig McPherson > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From barryk at caravanbeads.net Sat Jun 4 12:33:41 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Sat, 4 Jun 2011 15:33:41 -0400 Subject: embedded text Message-ID: Is there a way either with a formula find and replace or a text funnel to delete text within parentheses in strings like this: Op Cobalt (Like DB 726) Miyuki Tila Bead | 100 grams so that the output would be: Op Cobalt Miyuki Tila Bead | 100 grams I'd like something that would clear out both the parentheses plus whatever text they contain which would vary. Thanks, bk Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ *** My daughter Heather's new business: http://www.chrononautmercantile.com/ From gary at yonaites.com Sat Jun 4 13:05:37 2011 From: gary at yonaites.com (Gary Yonaites) Date: Sat, 4 Jun 2011 13:05:37 -0700 Subject: embedded text In-Reply-To: References: Message-ID: Here two solutions I tested to remove the parentheses, the enclosed text and the extra space that would be left by just removing what you indicated. local string string="Op Cobalt (Like DB 726) Miyuki Tila Bead | 100 grams" Message string[1,"-("][1,-3] +string["-)",-1][2,-1] Message tagstrip(string," (",")") The first funnel gets everything up to the "(" character and then removes it and the leading space. The appended text funnel gets everything from the ")" character to the end and then removes the leading ")" character. The tagstrip( function is set to remove the leading space before the parentheses text together with that text. The tagstrip is the simplest method. Gary gary at yonaites.com On Jun 4, 2011, at 12:33 PM, Barry Kahn wrote: > Is there a way either with a formula find and replace or a text funnel to delete text within parentheses in strings like this: > > Op Cobalt (Like DB 726) Miyuki Tila Bead | 100 grams > > so that the output would be: > > Op Cobalt Miyuki Tila Bead | 100 grams > > I'd like something that would clear out both the parentheses plus whatever text they contain which would vary. > > Thanks, > bk > > > > > Barry Kahn > Caravan Beads, Inc. > 915 Forest Ave > Portland ME 04103 > 800-230-8941 > fax: 207-874-2664 > www.caravanbeads.net > barryk at caravanbeads.net > > *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ > > *** My daughter Heather's new business: http://www.chrononautmercantile.com/ > > > > > > > > > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From barryk at caravanbeads.net Sat Jun 4 18:23:39 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Sat, 4 Jun 2011 21:23:39 -0400 Subject: embedded text In-Reply-To: References: Message-ID: <124A9A9D-148B-415E-A2FE-DD7328E7EDD8@caravanbeads.net> Thanks Gary. The tagstrip function is a great little tool! b > Here two solutions I tested to remove the parentheses, the enclosed text and the extra space that would be left by just removing what you indicated. > > local string > string="Op Cobalt (Like DB 726) Miyuki Tila Bead | 100 grams" > Message string[1,"-("][1,-3] +string["-)",-1][2,-1] > Message tagstrip(string," (",")") > > The first funnel gets everything up to the "(" character and then removes it and the leading space. The appended text funnel gets everything from the ")" character to the end and then removes the leading ")" character. The tagstrip( function is set to remove the leading space before the parentheses text together with that text. The tagstrip is the simplest method. > > Gary > gary at yonaites.com > > On Jun 4, 2011, at 12:33 PM, Barry Kahn wrote: > >> Is there a way either with a formula find and replace or a text funnel to delete text within parentheses in strings like this: >> >> Op Cobalt (Like DB 726) Miyuki Tila Bead | 100 grams >> >> so that the output would be: >> >> Op Cobalt Miyuki Tila Bead | 100 grams >> >> I'd like something that would clear out both the parentheses plus whatever text they contain which would vary. >> >> Thanks, >> bk >> >> >> >> >> Barry Kahn >> Caravan Beads, Inc. >> 915 Forest Ave >> Portland ME 04103 >> 800-230-8941 >> fax: 207-874-2664 >> www.caravanbeads.net >> barryk at caravanbeads.net >> >> *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ >> >> *** My daughter Heather's new business: http://www.chrononautmercantile.com/ >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net From kilaws at gmail.com Sat Jun 4 18:37:21 2011 From: kilaws at gmail.com (Ken Laws) Date: Sat, 4 Jun 2011 18:37:21 -0700 Subject: Not My Fault In-Reply-To: <20110603151640.CRI68168@expms1.cites.uiuc.edu> References: <20110603151640.CRI68168@expms1.cites.uiuc.edu> Message-ID: Thanks, Dave! I hadn't learned about Total Recall. (All these new-fangled doodads...) So the problem is that I chose "Continue previous session" instead of starting a new session, and Panorama restored from a two-minute RAM checkpoint instead of the file version I had saved. To help the unaware such as myself, perhaps the RAM checkpoint should be updated with every explict Save command (by default). If that's not always the best action, a parameter could be set to prevent the combined update. (Not quite the same thing as turning off Total Recall.) An alternative fix for my confusion would be to change the option message to "Restore from Total Recall checkpoint," since old fogies like myself associate checkpoints with infrequent saves. The current wording sounds more like Panorama somehow saved its active session state as it crashed. (Never mind whether that's possible...). Anyway, you've given me the help I needed. -- Ken On Fri, Jun 3, 2011 at 1:16 PM, David Thompson wrote: >>And, while I'm here, is there a way to get Panorama to actually >>save a file when I give the Save command? ?I've been writing some >>textfilter code, and textfilter crashes if it encounters any error in >>its procedure. >>Restoring after the crash often opens a state several edits before >>the crash, even when I have done multiple Saves since that point. > > It sounds like you have set your Total Recall preferences for a fairly long time interval. Total Recall saves the state of Panorama's RAM at the interval you specify. When you restore after a crash, you are loading that data back into RAM. That data may or may not be more up to date than your most recent save of a particular database. > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > From jim at provue.com Mon Jun 6 09:53:03 2011 From: jim at provue.com (James Rea) Date: Mon, 6 Jun 2011 09:53:03 -0700 Subject: Not My Fault In-Reply-To: Message-ID: On 6/4/11 at 6:37 PM, kilaws at gmail.com (Ken Laws) wrote: >I hadn't learned about Total Recall. (All these new-fangled doodads...) >So the problem is that I chose "Continue previous session" instead of >starting a new session, and Panorama restored from a two-minute >RAM checkpoint instead of the file version I had saved. > >To help the unaware such as myself I'm a bit puzzled by this. Total Recall defaults to saving Panorama's state every 10 seconds -- if it was set to two minutes you would have had to have explicitly changed the setting. But if you did that, you would be aware of Total Recall. The idea of updating the saved total recall state every time there is an explicit save is an interesting one, though, I will consider that for a future update. Jim From FUNLIFE at centurytel.net Wed Jun 8 18:49:30 2011 From: FUNLIFE at centurytel.net (funlife) Date: Wed, 8 Jun 2011 18:49:30 -0700 Subject: Pan Files Changed to Classic In-Reply-To: References: Message-ID: <3A42E10A-77E5-4F8D-8A3D-9A22086F8F28@centurytel.net> I am running OSX 10.6.7. This morning I was working on a Panorama file and saved it. Have it backed up and backed up and backed up on time machine. This afternoon I went to work on the same file. Could not find it anywhere. Then I noticed that not one of my Panorama files worked. The icon was blank awhile back then it looked right, the was it should, and now they are all classic icons. Obviously I can not open any Panorama database. I have made some progress. If I click on an icon and do command "i" it tells me it is going to open in Panorama. I click on the arrow and change it to open in Panorama default and now everything is fine. What on earth did I do to make Panorama think I wanted to always open in classic? I really have no knowledge that I changed anything. I am a pretty low level user and to not try to do much of anything. Panorama just keeps rolling along. I am using Pan V. John Axtell 509-937-2224 From kjmeyer at mac.com Wed Jun 8 22:46:27 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Thu, 09 Jun 2011 08:46:27 +0300 Subject: Pan Files Changed to Classic In-Reply-To: <3A42E10A-77E5-4F8D-8A3D-9A22086F8F28@centurytel.net> References: <3A42E10A-77E5-4F8D-8A3D-9A22086F8F28@centurytel.net> Message-ID: <6DAD6D5B-A2F2-4311-9A53-4FB76F1DDF0D@mac.com> Am 09.06.2011 um 04:49 schrieb funlife: > I am running OSX 10.6.7. ? > I am using Pan V. John, you probably noticed for the first time a well known problem between Panorama 5 and Mac OS X Snow Leopard. It is more or less a cosmetic problem. I think, what you call "classic" icon is not the icon Panorama used in the Classic (OS 9) environment, it is the generic document icon. Maybe you have lost the ability to open your files with a double click, but you always can drag your document files on Panorama's icon (in the Finder or in the dock; it might appear as a generic application icon, too.) or open them from the File menu within Panorama. Panorama 6 was completely built as a native application, so you will not see those generic icons with Panorama 6 anymore. Kurt From bruce_de_benedictis at mac.com Wed Jun 8 22:59:55 2011 From: bruce_de_benedictis at mac.com (Bruce De Benedictis) Date: Wed, 08 Jun 2011 22:59:55 -0700 Subject: Pan Files Changed to Classic In-Reply-To: <3A42E10A-77E5-4F8D-8A3D-9A22086F8F28@centurytel.net> Message-ID: It could have been a random glitch that changed the listing of what should open a given file. However, I would run all of the Disk Utility diagnostic checks on my system if something like that happened to me, just to be safe. I would repair permissions, and verify the disk. If something was wrong with the disk, I would restart in Safe Mode (hold the shift key until just after the chime) and see if that fixes it, and if not, start up with the System Install disk and use the Disk Utility to repair it. (Actually, I keep a hard drive with an up-to-date system on it for that purpose.) This is not Panorama-specific advice. I do this whenever there is a puzzling anomaly, or a power failure, or anything else that I think may cause trouble. Bruce De Benedictis > I am running OSX 10.6.7. > > This morning I was working on a Panorama file and saved it. Have it backed up > and backed up and backed up on time machine. > > This afternoon I went to work on the same file. Could not find it anywhere. > Then I noticed that not one of my Panorama files worked. > > The icon was blank awhile back then it looked right, the was it should, and > now they are all classic icons. > > Obviously I can not open any Panorama database. > > I have made some progress. If I click on an icon and do command "i" it tells > me it is going to open in Panorama. I click on the arrow and change it to open > in Panorama default and now everything is fine. > > What on earth did I do to make Panorama think I wanted to always open in > classic? > > I really have no knowledge that I changed anything. I am a pretty low level > user and to not try to do much of anything. Panorama just keeps rolling along. > I am using Pan V. > > John Axtell > > 509-937-2224 > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From ray at apresmidi.net Wed Jun 8 09:08:02 2011 From: ray at apresmidi.net (Ray Spears) Date: Wed, 8 Jun 2011 09:08:02 -0700 Subject: Procedure contains one or more incorrect steps In-Reply-To: References: Message-ID: I've been getting this message a lot lately. The time just now: I opened a subroutine, just looked at it, didn't change anything; then when I tried to perform the procedure that called that subroutine, it gave me the error message. I opened up that procedure and tried to run it by pressing on the arrow key same message Then I pressed the compile key no errors of course, nothing had changed Now it runs. This is happening a few times a day. I try to run a procedure, it tells me it has incorrect steps, I open the procedure and recompile, and then it runs. This bug is new, didn't ever happen to me before the current version (6.0.0 Build 94356) Ray From vjdif at prodigy.net Sun Jun 12 19:04:56 2011 From: vjdif at prodigy.net (Vic DiFranco) Date: Sun, 12 Jun 2011 21:04:56 -0500 Subject: Procedure contains one or more incorrect steps Message-ID: Hello Ray, I just saw your message to the forum. I too have experienced very odd behavior with macros with the latest build. In a recent case, I have a macro that has worked well for YEARS. Suddenly, the macro failed. The failure was a never-ending cascade of summary records being added to the file. The macro does generate summary records in a loop, but the command "removeallsummaries" removes them before the next loop iteration. I figured that a subtle program error, on my part, was responsible. So I single-stepped through the macro, expecting to find the offending step. But the macro worked perfectly in single-step mode. I closed the procedure window to allow the macro to run full speed - again the failure. It worked perfectly in single-step (the removeallsummaries command executed), but in full speed, that command apparently was ignored. It was late, and I could do no more at that time. But the next day, I re-opened the file to trouble-shoot -- and everything was working fine again. No failure, in single-step or full speed mode. Looks like closing the file and re-opening it cleared the problem. Panorama is one of my favorite programs, and I am not complaining about it. But the current version has a number of very subtle and frustrating bugs. Jim may even know about some of them, but if they can't be replicated, he can't correct them. But I'm sure there is something the matter with the compiler. Best regards, Vic DiFranco From alfred at seqair.com Sun Jun 12 19:26:40 2011 From: alfred at seqair.com (Alfred Scott) Date: Sun, 12 Jun 2011 22:26:40 -0400 Subject: Procedure contains one or more incorrect steps In-Reply-To: References: Message-ID: On Jun 12, 2011, at 10:04 PM, Vic DiFranco wrote: > Panorama is one of my favorite programs, and I am not complaining about it. But the current version has a number of very subtle and frustrating bugs. Jim may even know about some of them, but if they can't be replicated, he can't correct them. But I'm sure there is something the matter with the compiler. I'll just mention that with PowerCADD and WildTools, we have achieved unprecedented reliability and at the same time we get crash reports that are simply inexplicable. This problem sounds similar. Sometimes in a situation like this, you can try to change something, if only to insert a do-nothing statement (add 2 + 2). It will not hurt anything, and if it fixes the problem, then count your lucky stars and move on. Alfred From bruce_de_benedictis at mac.com Sun Jun 12 22:04:52 2011 From: bruce_de_benedictis at mac.com (Bruce De Benedictis) Date: Sun, 12 Jun 2011 22:04:52 -0700 Subject: Procedure contains one or more incorrect steps In-Reply-To: Message-ID: There are weird things that happen with all applications. Quitting them and restarting often fixes them. It may be something that happens in the OS, or a conflict with another running application, or a bunch of other things. Computing is like that. It might even be a good idea to restart your computer every week or so, to avoid these things. If something is really critical, and has to run constantly, the best bet is to run it on its own separate machine, and run nothing else. If you are serving Panorama databases, that is probably the way to go, but do your development elsewhere, and expect that your development machine to be less reliable. Bruce De Benedictis > On Jun 12, 2011, at 10:04 PM, Vic DiFranco wrote: > >> Panorama is one of my favorite programs, and I am not complaining about it. >> But the current version has a number of very subtle and frustrating bugs. Jim >> may even know about some of them, but if they can't be replicated, he can't >> correct them. But I'm sure there is something the matter with the compiler. > > I'll just mention that with PowerCADD and WildTools, we have achieved > unprecedented reliability and at the same time we get crash reports that are > simply inexplicable. This problem sounds similar. > > Sometimes in a situation like this, you can try to change something, if only > to insert a do-nothing statement (add 2 + 2). It will not hurt anything, and > if it fixes the problem, then count your lucky stars and move on. > > Alfred > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From jim at provue.com Mon Jun 13 09:43:25 2011 From: jim at provue.com (James Rea) Date: Mon, 13 Jun 2011 09:43:25 -0700 Subject: Procedure contains one or more incorrect steps In-Reply-To: Message-ID: On 6/12/11 at 7:04 PM, vjdif at prodigy.net (Vic DiFranco) wrote: >Panorama is one of my favorite programs, and I am not >complaining about it. But the current version has a number of >very subtle and frustrating bugs. Jim may even know about some >of them, but if they can't be replicated, he can't correct >them. But I'm sure there is something the matter with the compiler. I am not aware of any problems with the compiler. I can't imagine any reason why the latest build would be any less reliable than any other version, the compiler itself has not changed. For what it's worth, I've personally written about 15 to 20 thousand lines of code in Panorama's programming language over the last 18 months -- a new project I've been working on this year has 7,400 lines of brand new code written in the past ten weeks. So I've been compiling a *lot*. Have not ever seen either of these problems (I think Ray and Vic are reporting different issues). One point to keep in mind is that is is possible for a procedure to work differently in single step mode than when running full speed. For example, Panorama can automatically skip statements after a selection fails, but this doesn't work when single stepping (actually I'm not sure about this, I think that may have been fixed in 6.0). In Ray's case, not sure what is happening, but a couple of possibilities come to mind. Does your subroutine contain any execute statements? If so, the error message may not be coming from the subroutine itself, but from the code that is being executed, which is not checked by pressing the compile key. Some statements also use execute internally. It's even possible now for this error to come from a custom function that is used either in a procedure or in a form. Panorama's development environment has many layers. If something mysterious is going on, it usually means that you are not looking at the layer where the problem is actually occurring. Jim Rea From scott at prototek.net Mon Jun 13 10:04:26 2011 From: scott at prototek.net (Scott Taylor) Date: Mon, 13 Jun 2011 10:04:26 -0700 Subject: Procedure contains one or more incorrect steps In-Reply-To: Message-ID: Jim, can you expand on this a bit? I have also noticed that single stepping doesn?t always give the same outcome as full running, and I?d like to be able to understand where its limits are. What do you mean by ?automatically skip statements after a selection fails?? Scott > > From: James Rea > Subject: RE: Procedure contains one or more incorrect steps > > One point to keep in mind is that is is possible for a procedure > to work differently in single step mode than when running full > speed. For example, Panorama can automatically skip statements > after a selection fails, but this doesn't work when single > stepping. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at provue.com Mon Jun 13 10:36:09 2011 From: jim at provue.com (James Rea) Date: Mon, 13 Jun 2011 10:36:09 -0700 Subject: Procedure contains one or more incorrect steps In-Reply-To: Message-ID: On 6/13/11 at 10:04 AM, scott at prototek.net (Scott Taylor) wrote: >What do you mean by ?automatically >skip statements after a selection fails?? See "Handling Empty Selections" on page 558 of the "Formulas & Programming" book. Jim From cdpublishing at qwestoffice.net Tue Jun 14 09:34:07 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Tue, 14 Jun 2011 09:34:07 -0700 Subject: don't be a tease... Message-ID: <7A687F1A-6E44-4F08-B5F8-C25DC4F4F6F8@qwestoffice.net> Jim Rea wrote: For what it's worth, I've personally written about 15 to 20 thousand lines of code in Panorama's programming language over the last 18 months -- a new project I've been working on this year has 7,400 lines of brand new code written in the past ten weeks. ...whatcha working on?? ;-) Craig McPherson From scott at prototek.net Tue Jun 14 09:53:04 2011 From: scott at prototek.net (Scott Taylor) Date: Tue, 14 Jun 2011 09:53:04 -0700 Subject: Procedure contains one or more incorrect steps In-Reply-To: Message-ID: Well, I have no idea what this book is or how to find it. First I?ve ever heard of it. > > From: James Rea > Reply-To: "Panorama Questions & Answers \(Discussion\)" > Date: Mon, 13 Jun 2011 10:36:09 -0700 > To: "Panorama Questions & Answers (Discussion)" > Subject: Re: Procedure contains one or more incorrect steps > > On 6/13/11 at 10:04 AM, scott at prototek.net (Scott Taylor) wrote: > >> >What do you mean by ?automatically >> >skip statements after a selection fails?? > > See "Handling Empty Selections" on page 558 of the "Formulas & Programming" > book. > Jim > _______________________________________________ > > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From conable.1 at osu.edu Tue Jun 14 09:57:55 2011 From: conable.1 at osu.edu (William Conable) Date: Tue, 14 Jun 2011 09:57:55 -0700 Subject: Procedure contains one or more incorrect steps In-Reply-To: References: Message-ID: <4DF79313.1090801@osu.edu> An HTML attachment was scrubbed... URL: From cdpublishing at qwestoffice.net Tue Jun 14 10:03:05 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Tue, 14 Jun 2011 10:03:05 -0700 Subject: Panorama documentation and help files In-Reply-To: References: Message-ID: Wizards/Documentation/Help & Documentation should pop up a list of .pdf documentation documents for Panorama. If you don't know about it already, also see the invaluable Programming Reference and Screencasts choices as well. On Jun 14, 2011, at 9:53 AM, Scott Taylor wrote: > Well, I have no idea what this book is or how to find it. First I?ve ever heard of it. >> >> From: James Rea >> Reply-To: "Panorama Questions & Answers \(Discussion\)" >> Date: Mon, 13 Jun 2011 10:36:09 -0700 >> To: "Panorama Questions & Answers (Discussion)" >> Subject: Re: Procedure contains one or more incorrect steps >> > >> On 6/13/11 at 10:04 AM, scott at prototek.net (Scott Taylor) wrote: >> >> >What do you mean by ?automatically >> >skip statements after a selection fails?? >> >> See "Handling Empty Selections" on page 558 of the "Formulas & Programming" book. >> Jim >> _______________________________________________ >> >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott at prototek.net Tue Jun 14 10:12:58 2011 From: scott at prototek.net (Scott Taylor) Date: Tue, 14 Jun 2011 10:12:58 -0700 Subject: Panorama documentation and help files In-Reply-To: Message-ID: Thanks for the guidance Bill and Craig. I?m not running ver 6 so those don?t show up for me, but now I know where to go for them. I do know the Programming Reference, and I agree with your ?invaluable? description. Scott > > From: Craig McPherson > Reply-To: "Panorama Questions & Answers \(Discussion\)" > Date: Tue, 14 Jun 2011 10:03:05 -0700 > To: "Panorama Questions & Answers \(Discussion\)" > Subject: Re: Panorama documentation and help files > > Wizards/Documentation/Help & Documentation should pop up a list of .pdf > documentation documents for Panorama. > If you don't know about it already, also see the invaluable Programming > Reference and Screencasts choices as well. > > > > On Jun 14, 2011, at 9:53 AM, Scott Taylor wrote: > >> Well, I have no idea what this book is or how to find it. First I?ve ever >> heard of it. >>> >>> From: James Rea >>> Reply-To: "Panorama Questions & Answers \(Discussion\)" >>> Date: Mon, 13 Jun 2011 10:36:09 -0700 >>> To: "Panorama Questions & Answers (Discussion)" >>> Subject: Re: Procedure contains one or more incorrect steps >>> >> >>> On 6/13/11 at 10:04 AM, scott at prototek.net (Scott Taylor) wrote: >>> >>>> >What do you mean by ?automatically >>>> >skip statements after a selection fails?? >>> >>> See "Handling Empty Selections" on page 558 of the "Formulas & Programming" >>> book. >>> Jim >>> _______________________________________________ >>> >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ray at apresmidi.net Tue Jun 14 10:10:52 2011 From: ray at apresmidi.net (Ray Spears) Date: Tue, 14 Jun 2011 10:10:52 -0700 Subject: Another "Procedure" Issue In-Reply-To: References: Message-ID: In all previous versions I can remember, when you were editing a procedure, there was a "Fields" menu from which you could select the name of a field --- as there still is in the "Formula Fill?" dialog, for example. But it's gone now. Put it back! Typing is so 1980! (unless you have autofill) Speaking of menus not being there, I still run into the problem of menus disappearing, all the defined procedures will just be gone sometimes. Clicking on any field and hitting "enter" twice makes them come back, but still... From jim at provue.com Tue Jun 14 13:43:52 2011 From: jim at provue.com (James Rea) Date: Tue, 14 Jun 2011 13:43:52 -0700 Subject: don't be a tease... In-Reply-To: <7A687F1A-6E44-4F08-B5F8-C25DC4F4F6F8@qwestoffice.net> Message-ID: On 6/14/11 at 9:34 AM, cdpublishing at qwestoffice.net (Craig McPherson) wrote: >...whatcha working on?? Yeah, that was a bit of a tease ... just checking to see if anyone is awake out there :) I'm not quite ready to pull off the wrapper, but hopefully QNA readers will get a first look at what I've been doing in the next week or so. Jim From cdpublishing at qwestoffice.net Tue Jun 14 13:49:28 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Tue, 14 Jun 2011 13:49:28 -0700 Subject: Another "Procedure" Issue In-Reply-To: References: Message-ID: <3EFA6CC8-AE30-4F6B-8F2E-92D78697B938@qwestoffice.net> Have you tried right-clicking when writing your procedure? Craig McPherson On Jun 14, 2011, at 10:10 AM, Ray Spears wrote: > > In all previous versions I can remember, when you were editing a procedure, there was a "Fields" menu from which you could select the name of a field --- as there still is in the "Formula Fill?" dialog, for example. But it's gone now. Put it back! Typing is so 1980! (unless you have autofill) > > Speaking of menus not being there, I still run into the problem of menus disappearing, all the defined procedures will just be gone sometimes. Clicking on any field and hitting "enter" twice makes them come back, but still... > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From jim at provue.com Tue Jun 14 13:50:26 2011 From: jim at provue.com (James Rea) Date: Tue, 14 Jun 2011 13:50:26 -0700 Subject: Another "Procedure" Issue In-Reply-To: Message-ID: On 6/14/11 at 10:10 AM, ray at apresmidi.net (Ray Spears) wrote: >In all previous versions I can remember, when you were editing >a procedure, there was a "Fields" menu from which you could >select the name of a field --- as there still is in the >"Formula Fill?" dialog, for example. But it's gone now. It's not gone, just moved to a context menu. Just right click anywhere in the procedure text to insert field names, form names, procedure names, and much more. Very handy. Jim From rays at apresmidi.net Tue Jun 14 14:15:21 2011 From: rays at apresmidi.net (Ray Spears) Date: Tue, 14 Jun 2011 14:15:21 -0700 Subject: Just discovered "CallingProcedure", wish I hadn't Message-ID: Does anyone use this? Has it been tested lately? I can't reproduce it in a simple file, but right now I have a procedure, the first thing it does is call another procedure, and that procedure says message "Calling Procedure = " + CALLINGPROCEDURE() and it the message says: Calling Procedure = CALLINGPROCEDURE is returning "" when it ought to be returning the name of the procedure that called it. I can't make this happen in a file that contains only two simple routines, though From rays at apresmidi.net Tue Jun 14 14:16:10 2011 From: rays at apresmidi.net (Ray Spears) Date: Tue, 14 Jun 2011 14:16:10 -0700 Subject: cool thank you In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From stbtom at gmail.com Tue Jun 14 18:41:02 2011 From: stbtom at gmail.com (Tom Reis) Date: Tue, 14 Jun 2011 18:41:02 -0700 Subject: License Message-ID: I have a personal license on a laptop that I want to change to a full single user license (not on any other computer). How do I do this? Thanks, Tom Reis -------------- next part -------------- An HTML attachment was scrubbed... URL: From nacnuddd at gmail.com Tue Jun 14 20:42:08 2011 From: nacnuddd at gmail.com (David Duncan) Date: Wed, 15 Jun 2011 13:42:08 +1000 Subject: Procedure contains one or more incorrect steps In-Reply-To: References: Message-ID: On Tue, Jun 14, 2011 at 2:43 AM, James Rea wrote: > Panorama can automatically skip statements after a selection fails, but this > doesn't work when single stepping (actually I'm not sure about this, I think > that may have been fixed in 6.0). I didn't know about this, and always try and remember to use If info("empty") after a selection. Do you remember in which Panorama version -- or how long ago -- this auto feature was added? David Duncan From jim at provue.com Tue Jun 14 22:00:28 2011 From: jim at provue.com (James Rea) Date: Tue, 14 Jun 2011 22:00:28 -0700 Subject: License In-Reply-To: Message-ID: On 6/14/11 at 6:41 PM, stbtom at gmail.com (Tom Reis) wrote: >I have a personal license on a laptop that I want to change to a full single >user license (not on any other computer). How do I do this? Is this the only computer you are using Panorama on? If so, let us know the serial number (please contact us directly, not on this forum) and we can make that switch for you. If you still need to use the personal use license on other computers, you'll need to purchase a new serial number. Jim From jim at provue.com Tue Jun 14 22:01:41 2011 From: jim at provue.com (James Rea) Date: Tue, 14 Jun 2011 22:01:41 -0700 Subject: Procedure contains one or more incorrect steps In-Reply-To: Message-ID: On 6/15/11 at 8:42 PM, nacnuddd at gmail.com (David Duncan) wrote: >Panorama can automatically skip statements after a selection fails, but this >doesn't work when single stepping (actually I'm not sure about this, I think >that may have been fixed in 6.0). >I didn't know about this, and always try and remember to use If >info("empty") after a selection. Do you remember in which Panorama >version -- or how long ago -- this auto feature was added? Yes, I think version 2.0 or perhaps even in 1.0. Definitely it did this *before* info("empty") was added. Jim Rea From botengapanorama at gmail.com Wed Jun 15 01:02:55 2011 From: botengapanorama at gmail.com (dr. A.S.J. Botenga) Date: Wed, 15 Jun 2011 10:02:55 +0200 Subject: Question Message-ID: <3C16F36C-5F77-462B-9D6E-C08B54D1155C@gmail.com> Sorry,I used the wrong e-mailadress and therefore I imagine I didn't get any answer, so once again, Thank you. This helps, but there is a lot of work to do. May I give another example. In a text field (called text) an amount 1234,56 is taken out as a string on a local (called A for the occasion) A=text["0-9","-"][1,"-0-9"] When you put this amount in a cell of a numeric field called number number=val(A) the cents are not longer recognized, the cell shows 1234,00 You have to transform the amount for which I also used a replacement number=val(replace(A,",",".")) Then the cell shows 1234,56. It seems a paradox that you have to change a comma to a point before the full amount is recognized In older panoramas all this work is not necessary Is there (another) solution for this problem Sylvia Op 27 mei 2011, om 17:42 heeft BillArleneBush at cs.com het volgende geschreven: > In a message dated 5/26/11 6:34:30 PM, qna-request at provue.com writes: > > << Subject: Question > > In my database an given large amount, using #.,## in the design, is > written: 1.234.567,89 like Apple does that for customers in Europa. >> > > If you want a comma replaced by a period and a period replaced by a comma, > may be the follow code will be a hint. First the comma is replaced by the > character c, then the period replaced by a comma, and then the c is replaced > by a period. Use in copy or paste procedures. > > Local amount,result > amount="1.234.567,89" > result =replacemultiple(amount,",\.\c", "c\,\." ,"\") > message result ; 1,234,567.89 > > Bill Bush > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From designer at quickdata.com Wed Jun 15 01:23:57 2011 From: designer at quickdata.com (Paul) Date: Wed, 15 Jun 2011 01:23:57 -0700 Subject: Question In-Reply-To: <3C16F36C-5F77-462B-9D6E-C08B54D1155C@gmail.com> References: <3C16F36C-5F77-462B-9D6E-C08B54D1155C@gmail.com> Message-ID: <4DF86C1D.3090402@quickdata.com> It looks like this might have something to do with a "country" setting or some localization that (before) told Panorama the coma was like a decimal point. That "preference" may not be set in the current version. By the way, if that is the only number in the text string, the StriptoNum(texthere) function would be more understandable as to your intent and yield the same result. Paul QuickData On 6/15/11 1:02 AM, dr. A.S.J. Botenga wrote: > Sorry,I used the wrong e-mailadress and therefore I imagine I didn't > get any answer, so once again, > > Thank you. This helps, but there is a lot of work to do. May I give > another example. > In a text field (called text) an amount 1234,56 is taken out as a > string on a local (called A for the occasion) > > /A=text["0-9","-"][1,"-0-9"]/ > > When you put this amount in a cell of a numeric field called number > > /number=val(A)/ > > the cents are not longer recognized, the cell shows 1234,00 > You have to transform the amount for which I also used a replacement > > /number=val(replace(A,",","."))/ > > Then the cell shows 1234,56. It seems a paradox that you have to > change a comma to a point before the full amount is recognized > In older panoramas all this work is not necessary > Is there (another) solution for this problem > > Sylvia > > Op 27 mei 2011, om 17:42 heeft BillArleneBush at cs.com > het volgende geschreven: > >> In a message dated 5/26/11 6:34:30 PM, qna-request at provue.com >> writes: >> >> << Subject: Question >> >> In my database an given large amount, using #.,## in the design, is >> written: 1.234.567,89 like Apple does that for customers in Europa. >> >> >> If you want a comma replaced by a period and a period replaced by a >> comma, >> may be the follow code will be a hint. First the comma is replaced >> by the >> character c, then the period replaced by a comma, and then the c is >> replaced >> by a period. Use in copy or paste procedures. >> >> Local amount,result >> amount="1.234.567,89" >> result =replacemultiple(amount,",\.\c", "c\,\." ,"\") >> message result ; 1,234,567.89 >> >> Bill Bush >> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From botengapanorama at gmail.com Wed Jun 15 02:25:56 2011 From: botengapanorama at gmail.com (Dr. A.S.J. Botenga) Date: Wed, 15 Jun 2011 11:25:56 +0200 Subject: Question In-Reply-To: <4DF86C1D.3090402@quickdata.com> References: <3C16F36C-5F77-462B-9D6E-C08B54D1155C@gmail.com> <4DF86C1D.3090402@quickdata.com> Message-ID: <9EA1505E-4EC5-4452-96D2-4E70D2CA1C03@gmail.com> Op 15 jun 2011, om 10:23 heeft Paul het volgende geschreven: > Is there a way to change these settings > It looks like this might have something to do with a "country" setting or some localization that (before) told Panorama the coma was like a decimal point. That "preference" may not be set in the current version. > There were three amounts in this string, but perhaps there is another way to take these out separately > By the way, if that is the only number in the text string, the StriptoNum(texthere) function would be more understandable as to your intent and yield the same result. > > Paul > QuickData > > On 6/15/11 1:02 AM, dr. A.S.J. Botenga wrote: >> >> Sorry,I used the wrong e-mailadress and therefore I imagine I didn't get any answer, so once again, >> >> Thank you. This helps, but there is a lot of work to do. May I give another example. >> In a text field (called text) an amount 1234,56 is taken out as a string on a local (called A for the occasion) >> >> A=text["0-9","-"][1,"-0-9"] >> >> When you put this amount in a cell of a numeric field called number >> >> number=val(A) >> >> the cents are not longer recognized, the cell shows 1234,00 >> You have to transform the amount for which I also used a replacement >> >> number=val(replace(A,",",".")) >> >> Then the cell shows 1234,56. It seems a paradox that you have to change a comma to a point before the full amount is recognized >> In older panoramas all this work is not necessary >> Is there (another) solution for this problem >> >> Sylvia >> >> Op 27 mei 2011, om 17:42 heeft BillArleneBush at cs.com het volgende geschreven: >> >>> In a message dated 5/26/11 6:34:30 PM, qna-request at provue.com writes: >>> >>> << Subject: Question >>> >>> In my database an given large amount, using #.,## in the design, is >>> written: 1.234.567,89 like Apple does that for customers in Europa. >> >>> >>> If you want a comma replaced by a period and a period replaced by a comma, >>> may be the follow code will be a hint. First the comma is replaced by the >>> character c, then the period replaced by a comma, and then the c is replaced >>> by a period. Use in copy or paste procedures. >>> >>> Local amount,result >>> amount="1.234.567,89" >>> result =replacemultiple(amount,",\.\c", "c\,\." ,"\") >>> message result ; 1,234,567.89 >>> >>> Bill Bush >>> >>> >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >> >> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From soccerdoc at aol.com Wed Jun 15 08:51:15 2011 From: soccerdoc at aol.com (soccerdoc at aol.com) Date: Wed, 15 Jun 2011 11:51:15 -0400 Subject: where did my data go? Message-ID: <8CDF98B31697E26-E60-6D44@webmail-d019.sysops.aol.com> hello rudimentary issue had dbase of information made a few design sheet changes, saved next generation now all my populated data fields are empty still shows 56 visible/56 total in bottom left corner, but all fields are empty had .b version but same no difference if i reverted to last save jed -------------- next part -------------- An HTML attachment was scrubbed... URL: From soccerdoc at aol.com Wed Jun 15 09:40:54 2011 From: soccerdoc at aol.com (soccerdoc at aol.com) Date: Wed, 15 Jun 2011 12:40:54 -0400 Subject: more issues with dbase Message-ID: <8CDF99220FA12FE-E60-7EC9@webmail-d019.sysops.aol.com> now the whole database seems to have gone silly. I made a copy of the original database, put it into another folder, as a test, I began to enter data in the form that was previously created. I entered the letter "O" for Ohio as that was one of the predetermined choices. The choice Ohio did not come up (even though it is still a choice that is in the design sheet ), then after hitting the tab key rest of the form gets populated with the letter "O". -------------- next part -------------- An HTML attachment was scrubbed... URL: From kjmeyer at mac.com Thu Jun 16 00:34:13 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Thu, 16 Jun 2011 10:34:13 +0300 Subject: Question In-Reply-To: <3C16F36C-5F77-462B-9D6E-C08B54D1155C@gmail.com> References: <3C16F36C-5F77-462B-9D6E-C08B54D1155C@gmail.com> Message-ID: Am 15.06.2011 um 11:02 schrieb dr. A.S.J. Botenga: > Is there (another) solution for this problem Sylvia, you could insert a customnumbers statement in your procedure. This makes sure the val( function recognizes the number with its decimals. fileglobal fgA fgA=FieldText["0-9","-"][1,"-0-9"] customnumbers ",;1.2;;" FieldNumber=val(fgA) Kurt -------------- next part -------------- An HTML attachment was scrubbed... URL: From artdoc at calweb.com Thu Jun 16 11:33:40 2011 From: artdoc at calweb.com (Steve Tyron) Date: Thu, 16 Jun 2011 11:33:40 -0700 Subject: Here's a way to use Pano on an iPad! Message-ID: <4DFA4C84.3070502@calweb.com> No, I'm not kidding. Here's the deal: My one big use of Panorama (other than my own stuff) has been to supply database and such to a single business. The owner, John, uses a Mac, his office people have to use PCs for some PC-centric estimating programs, but yes, they have Pano on the Office Manager's PC. About two months ago John took an interest in sending sales people out to show off some presentation material. The bad news was that he bought an iPad to start with, and his salesman loaded a WMF video and was not happy that it failed to run! (tip: Apple iPad wont run Windows videos.) John returned the iPad for a future credit, called me for some help. All I could do was throw in the towel and suggest we investigate Filemaker Pro for the ability to use FM GO app on an iPad! I used to us FMPro and really didn't care for it, but that was pre Pano for Windows. Well, I saw my first business reason to get an iPad, so I ordered one, bought FM Go, and that in turn required a full FMPro application. Now, several weeks later, I miss working in Pano but I have built files and contracts in FMPro. But wait,..there's more! I came across an app for the iPad that let's me control my iMac. I can use the iPad to view sites that use Flash...and the Flash works. I just opened my Pano files (from my iPad), found my invoice list and updated some information. When I went to my desktop Mac, there was Pano displaying my updated list. Now I have to admit, this won't let me get back to having my customer's sales team using Pano, but if you have a wifi connection, or of course a data package, you can use SplashTop to communicate with a remote computer. This morning we sat in John's office and worked files on his Mac, then he tapped into the PC downstairs! Yes, it's crazy to open PC files and work with them...from an iPad. I have looked at other remote methods and they are in the hundreds. SplashTop is....$2. Not a typo: two dollars! The bit of software for the Mac or Windows box? Free! This is an app that you will want if you use an iPad. As long as the home unit is up and running and the iPad can connect to a wifi network, you can access your files from downtown or Detroit. And today John is at the local county fair, running a looping video demo* from his iPad to an Apple TV device, playing on a 32" Vizio screen. All powered by the solar equipment he sells. Not bad. *the video, with soundtrack, was made with iMovie. I hope this is helpful. It wasn't meant as a sales pitch. Steve From nacnuddd at gmail.com Thu Jun 16 21:42:33 2011 From: nacnuddd at gmail.com (David Duncan) Date: Fri, 17 Jun 2011 14:42:33 +1000 Subject: 32,756-byte procedure size limit Message-ID: I have written a number of procedures that exceeded the reliable procedure size limit of 32,756 bytes. None seemed to behave badly but since I have been aware of this limit I have reduced them all to a safe size (when I notice them).. I have always wondered why the compiler doesn't report oversized procedures. I supposed it was because calculating the procedure size would have slowed it down, but now realise there's reason to believe that the compiler routinely calculates the size of the procedure anyway. So why not alert the user to oversize procedures? David Duncan From botengapanorama at gmail.com Fri Jun 17 07:12:03 2011 From: botengapanorama at gmail.com (Dr. A.S.J. Botenga) Date: Fri, 17 Jun 2011 16:12:03 +0200 Subject: Question In-Reply-To: References: <3C16F36C-5F77-462B-9D6E-C08B54D1155C@gmail.com> Message-ID: <41DA807C-BA28-4009-B79C-AAF954FF15C8@gmail.com> Op 16 jun 2011, om 09:34 heeft Kurt J. Meyer het volgende geschreven: Thank you, Kurt, I will introduce this. You might have encountered the same problem. I was hoping for a more basic solution that somehow in Panorama itself a change could be made, as apparently was the fact in older Panorama's. Further I forgot to inform Paul (QuickData) that striptonum only takes out numbers. Sylvia >> Is there (another) solution for this problem > > Sylvia, > > you could insert a customnumbers statement in your procedure. > This makes sure the val( function recognizes the number with its decimals. > > fileglobal fgA > fgA=FieldText["0-9","-"][1,"-0-9"] > customnumbers ",;1.2;;" > FieldNumber=val(fgA) > > Kurt > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at provue.com Fri Jun 17 10:17:42 2011 From: jim at provue.com (James Rea) Date: Fri, 17 Jun 2011 10:17:42 -0700 Subject: 32,756-byte procedure size limit In-Reply-To: Message-ID: On 6/17/11 at 9:42 PM, nacnuddd at gmail.com (David Duncan) wrote: >I have written a number of procedures that exceeded the reliable >procedure size limit of 32,756 bytes. None seemed to behave badly I think your procedures probably were no where near the limit. How did you determine the size of the procedure? If you used the memory usage window, that does not display the relevant number. The limit is the number of characters in the *source* of the procedure. The memory usage window shows the total amount of memory used by the procedure, which includes both the source and the compiled version. To find out the actual source code length, open the View Wizard and open the Source>Get Info dialog. I think you'll find your procedures were comfortable below the 32k limit before you made any changes. The compiler does not actually calculate the source code length, though it trivially could. Actually, the compiler couldn't care less what the source code length is, it would happily compile a 1 megabyte procedure (though it would take a while!). It's the editor that chokes. If you had really exceeded the 32k limit you would know it before you ever got to compile, because the editor screen goes nuts. I've added code over the years that is supposed to prevent you from adding text when you are near the limit, but apparently that code doesn't work reliably. Really the editor code itself should have those checks -- the editor is part of the operating system. But it's part of the old, OS9 part of the OS, so I don't see Apple ever fixing it. The best solution would be to rip out this editor and use the OS X version of Apple's text editor. This should remove the 32k limit and also allow for smooth text display in the editor. The current text editor is pretty deeply embedded in Panorama, though, so this is a really major project, probably on the order of months of work. That said, it's pretty close to the top of the to-do list at this point, and may be the next major Panorama project to be tackled. Jim From gary at yonaites.com Fri Jun 17 10:30:33 2011 From: gary at yonaites.com (Gary Yonaites) Date: Fri, 17 Jun 2011 10:30:33 -0700 Subject: 32,756-byte procedure size limit In-Reply-To: References: Message-ID: <4AD52047-32A9-45A2-B240-7110F1C576B3@yonaites.com> Would this also remove the 32k limit on editing the field contents in the data sheet? I find this more of a problem than the procedure size restriction. Gary gary at yonaites.com On Jun 17, 2011, at 10:17 AM, James Rea wrote: > On 6/17/11 at 9:42 PM, nacnuddd at gmail.com (David Duncan) wrote: > >> I have written a number of procedures that exceeded the reliable >> procedure size limit of 32,756 bytes. None seemed to behave badly > > I think your procedures probably were no where near the limit. How did you determine the size of the procedure? If you used the memory usage window, that does not display the relevant number. The limit is the number of characters in the *source* of the procedure. The memory usage window shows the total amount of memory used by the procedure, which includes both the source and the compiled version. To find out the actual source code length, open the View Wizard and open the Source>Get Info dialog. I think you'll find your procedures were comfortable below the 32k limit before you made any changes. > > The compiler does not actually calculate the source code length, though it trivially could. Actually, the compiler couldn't care less what the source code length is, it would happily compile a 1 megabyte procedure (though it would take a while!). It's the editor that chokes. If you had really exceeded the 32k limit you would know it before you ever got to compile, because the editor screen goes nuts. I've added code over the years that is supposed to prevent you from adding text when you are near the limit, but apparently that code doesn't work reliably. Really the editor code itself should have those checks -- the editor is part of the operating system. But it's part of the old, OS9 part of the OS, so I don't see Apple ever fixing it. > > The best solution would be to rip out this editor and use the OS X version of Apple's text editor. This should remove the 32k limit and also allow for smooth text display in the editor. The current text editor is pretty deeply embedded in Panorama, though, so this is a really major project, probably on the order of months of work. That said, it's pretty close to the top of the to-do list at this point, and may be the next major Panorama project to be tackled. > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From gsletta at gmail.com Fri Jun 17 10:56:08 2011 From: gsletta at gmail.com (Greg Sletterink) Date: Fri, 17 Jun 2011 13:56:08 -0400 Subject: Scrolling in drag and drop Message-ID: <77C11989-D5B8-45D4-82F1-5E3500A1C71F@gmail.com> I am currently using the drag and drop function in a List superobject. The lists that are outputting require a scroll bar to see everything and I was wondering if there was an autoscroll feature that would allow me to drag an item from the top to the bottom without having to drop it halfway down the list Thanks, Greg Sletterink From barryk at caravanbeads.net Fri Jun 17 11:29:16 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Fri, 17 Jun 2011 14:29:16 -0400 Subject: global variables Message-ID: I have data that I access regularly from a variety of Pan databases, so I'm always using lookups. Is there a way to store the lookup data in a global variable? I never use globals but I imagine something like this: I'd put the global in a database that I open every morning. As part of it's .initialize procedures, it would set up a global variable. can I then set the global to equal the results of an arraybuild containing a lookup? And if so, can I then use the name of the global variable in other procedures (including arraybuild statements) instead of including a lookup? Sorry this probably isn't very clear but I've never done this and not sure exactly how to describe it. Thanks, bk Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ *** My daughter Heather's new business: http://www.chrononautmercantile.com/ From jim at provue.com Fri Jun 17 11:56:59 2011 From: jim at provue.com (James Rea) Date: Fri, 17 Jun 2011 11:56:59 -0700 Subject: 32,756-byte procedure size limit In-Reply-To: <4AD52047-32A9-45A2-B240-7110F1C576B3@yonaites.com> Message-ID: On 6/17/11 at 10:30 AM, gary at yonaites.com (Gary Yonaites) wrote: >Would this also remove the 32k limit on editing the field >contents in the data sheet? It's the same issue and the same editor, so yes, when I do one I would also do the other. Jim From dthmpsn1 at illinois.edu Fri Jun 17 13:27:36 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 17 Jun 2011 15:27:36 -0500 (CDT) Subject: global variables In-Reply-To: References: Message-ID: <20110617152736.CRR08671@expms1.cites.uiuc.edu> >I have data that I access regularly from a variety of Pan databases, so I'm always using lookups. Is there a way to store the lookup data in a global variable? I never use globals but I imagine something like this: > >I'd put the global in a database that I open every morning. As part of it's .initialize procedures, it would set up a global variable. > >can I then set the global to equal the results of an arraybuild containing a lookup? > Global variables are used exactly the same way that local, windowglobal and fileglobal variables are used. The synatax is the same. >And if so, can I then use the name of the global variable in other procedures (including arraybuild statements) instead of including a lookup? > If the variable contains the *results* of an arraybuild containing a lookup, I don't see how it would be used instead of the lookup. It would probably be used instead of the entire arraybuild, or you might do an arrayfilter on the array in the variable. Dave From qnaweb at provue.com Sun Jun 19 08:57:46 2011 From: qnaweb at provue.com (Robert Bell) Date: Sun, 19 Jun 2011 08:57:46 -0700 (PDT) Subject: openfiledialog to a specific folder Message-ID: <20110619155746.8350E434D1D@provue.com> I want to be able to use the dialog to open the folder ManyPDFarticles and then I would select one of the PDF articles from inside that folder The hard drive is called BigDrive The folder I want to open with the openfiledialog statement is called ManyPDFarticles. The database is in a folder called FirstLevel which has many other folders in it The path to the folder of articles is BigDrive:FirstLevel:ManyPDFarticles I tried to specify the folder path with the folder( function but it gives me the dialog to FirsLevel and all the folders in it. I would like it to open directly the folder ManyPDFarticles local file,folder,type folder=folder( "BigDrive:FirstLevel:ManyPDFarticles:") openfiledialog folder,file,type,"PDF " if file="" stop /* the user pressed the CANCEL button */ endif Any and all help is greatly appreciated. Robert From gary at yonaites.com Sun Jun 19 10:23:04 2011 From: gary at yonaites.com (Gary Yonaites) Date: Sun, 19 Jun 2011 10:23:04 -0700 Subject: openfiledialog to a specific folder In-Reply-To: <20110619155746.8350E434D1D@provue.com> References: <20110619155746.8350E434D1D@provue.com> Message-ID: One way to be sure you have the proper path is to use the choosefolderdialog statement (note: this is only in version 6). Here is a way to put this info on the clipboard to paste into your code: local folder choosefolderdialog folder clipboard=folderpath(folder) This allows you to choose the exact folder and have the text path put on the clipboard ready for pasting. In an earlier version of Panorama you can use the openfiledialog but you would have to choose a file within the folder you want selected. Gary gary at yonaites.com On Jun 19, 2011, at 8:57 AM, Robert Bell wrote: > local file,folder,type > folder=folder( "BigDrive:FirstLevel:ManyPDFarticles:") > openfiledialog folder,file,type,"PDF " > if file="" > stop /* the user pressed the CANCEL button */ > endif From tgcooper at smithduggan.com Mon Jun 20 04:58:07 2011 From: tgcooper at smithduggan.com (Thomas Cooper) Date: Mon, 20 Jun 2011 07:58:07 -0400 Subject: OS X Lion and Panorama Message-ID: <6DDF5F73-83C1-4E55-8598-4F34477962DC@smithduggan.com> Are there any problems or issues anticipated between Panorama and OS X Lion? Tom Cooper -- Thomas G. Cooper Smith & Duggan LLP 55 Old Bedford Road Lincoln, MA 01773 Phone: 617.228.4446 Mobile: 617.510.6015 From rgbell1 at gmail.com Mon Jun 20 09:25:31 2011 From: rgbell1 at gmail.com (Bob) Date: Mon, 20 Jun 2011 12:25:31 -0400 Subject: openfiledialog to a specific folder In-Reply-To: Message-ID: Hi Gary Thanks for the reply I'm using version 6 of Panorama I didn't know about the choosefolderdialog and that is very useful I used that dialog and it returned BigDrive:FirstLevel:ManyPDFarticles:, so I did have the path correct. I still can only get to FirstLevel with the following statement. Have I made a mistake in using the following?: folder=folder("BigDrive:FirstLevel:ManyPDFarticles:") When I try to use: folder=folderpath("BigDrive:FirstLevel:ManyPDFarticles:") I get Type Mismatch: numeric argument used when text was expected When I try to use: folder=folderpath(BigDrive:FirstLevel:ManyPDFarticles:) I get "cannot compile procedure" in the procedure window Do you see where I have gone wrong? Thanks Robert > One way to be sure you have the proper path is to use the choosefolderdialog > statement (note: this is only in version 6). Here is a way to put this info on > the clipboard to paste into your code: > > local folder > choosefolderdialog folder > clipboard=folderpath(folder) > > This allows you to choose the exact folder and have the text path put on the > clipboard ready for pasting. In an earlier version of Panorama you can use the > openfiledialog but you would have to choose a file within the folder you want > selected. > > Gary > gary at yonaites.com > > On Jun 19, 2011, at 8:57 AM, Robert Bell wrote: > >> local file,folder,type >> folder=folder( "BigDrive:FirstLevel:ManyPDFarticles:") >> openfiledialog folder,file,type,"PDF " >> if file="" >> stop /* the user pressed the CANCEL button */ >> endif > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From jim at provue.com Mon Jun 20 11:27:11 2011 From: jim at provue.com (James Rea) Date: Mon, 20 Jun 2011 11:27:11 -0700 Subject: OS X Lion and Panorama In-Reply-To: <6DDF5F73-83C1-4E55-8598-4F34477962DC@smithduggan.com> Message-ID: On 6/20/11 at 4:58 AM, tgcooper at smithduggan.com (Thomas Cooper) wrote: >Are there any problems or issues anticipated between Panorama and OS X Lion? I haven't tried Lion myself yet, but I have been assured by a person writing a book about Lion that Panorama 6 works fine. On the other hand, Panorama 5.5 and earlier do not work at all (because Lion does not include Rosetta). Jim From gary at yonaites.com Mon Jun 20 11:32:09 2011 From: gary at yonaites.com (Gary Yonaites) Date: Mon, 20 Jun 2011 11:32:09 -0700 Subject: openfiledialog to a specific folder In-Reply-To: References: Message-ID: <3790A59C-F75E-494F-93FE-9596665DE7EB@yonaites.com> It appears from the documentation that you can not preload a folder in the openfiledialog. Upon reading the specs for this statement in the Panorama Reference, it clearly states that the typelist parameter is the only one that you actually will supply, meaning all the others are filled in when the statement executes and the dialog window will open to the last folder in which you have saved that database. I don't see any way to override this. Gary gary at yonaites.com On Jun 20, 2011, at 9:25 AM, Bob wrote: > Hi Gary > Thanks for the reply > I'm using version 6 of Panorama > I didn't know about the choosefolderdialog and that is very useful > > I used that dialog and it returned BigDrive:FirstLevel:ManyPDFarticles:, so > I did have the path correct. I still can only get to FirstLevel with the > following statement. Have I made a mistake in using the following?: > folder=folder("BigDrive:FirstLevel:ManyPDFarticles:") > > When I try to use: > folder=folderpath("BigDrive:FirstLevel:ManyPDFarticles:") > I get Type Mismatch: numeric argument used when text was expected > > When I try to use: > folder=folderpath(BigDrive:FirstLevel:ManyPDFarticles:) > I get "cannot compile procedure" in the procedure window > > Do you see where I have gone wrong? > Thanks > Robert From nacnuddd at gmail.com Mon Jun 20 17:56:59 2011 From: nacnuddd at gmail.com (David Duncan) Date: Tue, 21 Jun 2011 10:56:59 +1000 Subject: 32,756-byte procedure size limit In-Reply-To: References: Message-ID: On Sat, Jun 18, 2011 at 3:17 AM, James Rea wrote: > How did you > determine the size of the procedure? If you used the memory usage window, > that does not display the relevant number. Yes, that's how I got it. I'll check it your way from now on. Thank you for your detailed reply -- fascinating as usual. David From nacnuddd at gmail.com Mon Jun 20 19:56:41 2011 From: nacnuddd at gmail.com (David Duncan) Date: Tue, 21 Jun 2011 12:56:41 +1000 Subject: 32,756-byte procedure size limit In-Reply-To: References: Message-ID: On Sat, Jun 18, 2011 at 3:17 AM, James Rea wrote: > To find out the actual source code length, > open the View Wizard and open the Source>Get Info dialog. I think you'll > find your procedures were comfortable below the 32k limit before you made > any changes. I've just checked a procedure whose size is 31,756 bytes in the memory usage window but only 17,376 bytes in the View Wizard, Source>Get Info dialog. In reality I doubt that I would be able to cope with one procedure of 8 pages in 10 point Geneva, which is approximately how long it would have to be to get to the limit. David From audax at wideband.net.au Mon Jun 20 20:34:17 2011 From: audax at wideband.net.au (Michael Kellock) Date: Tue, 21 Jun 2011 13:34:17 +1000 Subject: Error message: variable doesn't exist in assign( function Message-ID: Why does this give the error message: "Field or variable does not exist: X" ? local X X = "" Field A FormulaFill assign(?(IDN>"",A,""),X) michael From kjmeyer at mac.com Tue Jun 21 00:00:59 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Tue, 21 Jun 2011 09:00:59 +0200 Subject: Error message: variable doesn't exist in assign( function In-Reply-To: References: Message-ID: <6B252CA3-383E-4AFA-85D4-2B123B3C8B58@mac.com> Am 21.06.2011 um 05:34 schrieb Michael Kellock: > Why does this give the error message: "Field or variable does not exist: X" ? > > local X > > X = "" > Field A FormulaFill assign(?(IDN>"",A,""),X) If I read the Panorama Reference correctly, you have to put quotes around the name of the variable: assign(?(IDN>"",A,""),"X") From audax at wideband.net.au Tue Jun 21 01:18:38 2011 From: audax at wideband.net.au (Michael Kellock) Date: Tue, 21 Jun 2011 18:18:38 +1000 Subject: Error message: variable doesn't exist in assign( function In-Reply-To: <6B252CA3-383E-4AFA-85D4-2B123B3C8B58@mac.com> References: <6B252CA3-383E-4AFA-85D4-2B123B3C8B58@mac.com> Message-ID: Thank you Kurt - I see that now from the examples but it should perhaps be mentioned explicitly - and perhaps under the Errors heading. michael On 21/06/2011, at 5:00 PM, Kurt J. Meyer wrote: > > Am 21.06.2011 um 05:34 schrieb Michael Kellock: > >> Why does this give the error message: "Field or variable does not exist: X" ? >> >> local X >> >> X = "" >> Field A FormulaFill assign(?(IDN>"",A,""),X) > > If I read the Panorama Reference correctly, you have to put quotes around the name of the variable: > assign(?(IDN>"",A,""),"X") > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From dthmpsn1 at illinois.edu Tue Jun 21 05:49:31 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Tue, 21 Jun 2011 07:49:31 -0500 (CDT) Subject: Error message: variable doesn't exist in assign( function In-Reply-To: References: <6B252CA3-383E-4AFA-85D4-2B123B3C8B58@mac.com> Message-ID: <20110621074931.CRS69656@expms1.cites.uiuc.edu> It's not necessarily an error to leave the quotes off. I think you will find that this works. Local X, Y Y = "X" Field A FormulaFill assign(?(IDN>"",A,""),Y) That last parameter can be any formula that produces the name of the field or variable. Your error occurred when Panorama looked inside the X variable to find the name of the field or variable, and found nothing there but a blank. Dave ---- Original message ---- >Date: Tue, 21 Jun 2011 18:18:38 +1000 >From: Michael Kellock >Subject: Re: Error message: variable doesn't exist in assign( function >To: "Panorama Questions Answers (Discussion)" > >Thank you Kurt - I see that now from the examples but it should perhaps be mentioned explicitly - and perhaps under the Errors heading. > >michael > > >On 21/06/2011, at 5:00 PM, Kurt J. Meyer wrote: > >> >> Am 21.06.2011 um 05:34 schrieb Michael Kellock: >> >>> Why does this give the error message: "Field or variable does not exist: X" ? >>> >>> local X >>> >>> X = "" >>> Field A FormulaFill assign(?(IDN>"",A,""),X) >> >> If I read the Panorama Reference correctly, you have to put quotes around the name of the variable: >> assign(?(IDN>"",A,""),"X") >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > >_______________________________________________ >Qna mailing list >Qna at provue.com >http://provue.com/mailman/listinfo/qna From jk at acaciasystems.com Tue Jun 21 10:41:11 2011 From: jk at acaciasystems.com (Jeff Kozuch) Date: Tue, 21 Jun 2011 10:41:11 -0700 Subject: Cookie Crumbling In-Reply-To: References: Message-ID: <8C2E7269-B66A-4F42-A15C-AB741E149F5C@acaciasystems.com> I have a procedure that loads cookies for a record, then displays a form depending on the value of one of the cookies. The weird thing is, the cookies only seem to load if the information is sent from the browser twice. In other words, I send the info from a browser that asks for the name of a company, tell Pano to select it from a list of customers, then load their ID and District in cookies. The first time I submit the info, the company name is correct, but the ID and district do not load in the cookies. If I press the back button and do it again, they load perfectly and the proper form is displayed. I have tried clearing the cookies before loading them, loading them twice. but to no avail. Has anybody encountered this before or have any idea why this might not work as expected? Thanks, Jeff ps: Here is the pertinent part of the procedure : webformitem "BCustomer",luser OpenServerFile "Customers" WebSelect ?Company? = "?luser?" and ?PrimaryContact?="Yes" If cgiSelectedRecordCount=0 blah, blah, blah else setcookie "CWelcome",?TeleMktedBy? ;(ID) setcookie "CType",?District? ;District If getcookie("CType")?"1111" cgiPageTitle= "Data Entry" cgiHTML=renderwebform(" Browser Entry","") Else cgiPageTitle= "Data Entry" cgiHTML=renderwebform("Browser Entry2","") Endif Endif Jeff Kozuch President, Acacia Systems Panorama Programming and Training Apple Certified Technical Coordinator Certified Member, Apple Consultants Network jk at acaciasystems.com http://www.acaciasystems.com 562-437-7690 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at provue.com Tue Jun 21 13:44:41 2011 From: jim at provue.com (James Rea) Date: Tue, 21 Jun 2011 13:44:41 -0700 Subject: 32,756-byte procedure size limit In-Reply-To: Message-ID: On 6/21/11 at 7:56 PM, nacnuddd at gmail.com (David Duncan) wrote: >In reality I doubt that I would be able to cope with one >procedure of 8 pages in 10 point Geneva, which is approximately how >long it would have to be to get to the limit. It's a lot more manageable if you use the Mark menu so you can navigate easily. I just had a procedure last week where I ran into the limit, I think only the second time that's ever happened for me. I was able to get around it by reducing the indentation (whitespace). Jim From audax at wideband.net.au Tue Jun 21 16:11:27 2011 From: audax at wideband.net.au (Michael Kellock) Date: Wed, 22 Jun 2011 09:11:27 +1000 Subject: Error message: variable doesn't exist in assign( function In-Reply-To: <20110621074931.CRS69656@expms1.cites.uiuc.edu> References: <6B252CA3-383E-4AFA-85D4-2B123B3C8B58@mac.com> <20110621074931.CRS69656@expms1.cites.uiuc.edu> Message-ID: It takes me back to my Fortran programming days, when I would often get confused between direct and indirect addressing. michael On 21/06/2011, at 10:49 PM, David Thompson wrote: > It's not necessarily an error to leave the quotes off. I think you will find that this works. > > Local X, Y > Y = "X" > Field A > FormulaFill assign(?(IDN>"",A,""),Y) > > That last parameter can be any formula that produces the name of the field or variable. Your error occurred when Panorama looked inside the X variable to find the name of the field or variable, and found nothing there but a blank. > > Dave > > ---- Original message ---- >> Date: Tue, 21 Jun 2011 18:18:38 +1000 >> From: Michael Kellock >> Subject: Re: Error message: variable doesn't exist in assign( function >> To: "Panorama Questions Answers (Discussion)" >> >> Thank you Kurt - I see that now from the examples but it should perhaps be mentioned explicitly - and perhaps under the Errors heading. >> >> michael >> >> >> On 21/06/2011, at 5:00 PM, Kurt J. Meyer wrote: >> >>> >>> Am 21.06.2011 um 05:34 schrieb Michael Kellock: >>> >>>> Why does this give the error message: "Field or variable does not exist: X" ? >>>> >>>> local X >>>> >>>> X = "" >>>> Field A FormulaFill assign(?(IDN>"",A,""),X) >>> >>> If I read the Panorama Reference correctly, you have to put quotes around the name of the variable: >>> assign(?(IDN>"",A,""),"X") >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From nacnuddd at gmail.com Tue Jun 21 17:17:31 2011 From: nacnuddd at gmail.com (David Duncan) Date: Wed, 22 Jun 2011 10:17:31 +1000 Subject: 32,756-byte procedure size limit In-Reply-To: References: Message-ID: On Wed, Jun 22, 2011 at 6:44 AM, James Rea wrote: > It's a lot more manageable if you use the Mark menu so you can navigate > easily. I just had a procedure last week where I ran into the limit, I think > only the second time that's ever happened for me. I was able to get around > it by reducing the indentation (whitespace). I use the mark feature extensively, usually via the contextual menu, and it is invaluable. (Incidentally, I have found that a mark text longer than 31 characters is truncated to 31 visible characters in Mark section of the contextual menu and does not work, that is it does not take you to the mark in the procedure text. The Mark menu in the menu bar truncates to 32 characters and works no matter how much longer the text is.) I've also used the whitespace trick which can be very time consuming in a long procedure. Now I know it was unnecessary in my case? David From meirw at mac.com Tue Jun 21 18:21:29 2011 From: meirw at mac.com (Meir Weingarten) Date: Tue, 21 Jun 2011 21:21:29 -0400 Subject: ExecuteApplescript delimiter issue Message-ID: Hi all, I need to put this into a panorama procedure. How do I tell the procedure that the ?red? curly brackets {} are part of the script and not part of the Executeapplescript command. I know it has to do with delimiters but I don?t no more than that. Thanx Meir Executeapplescript {tell application "System Events" keystroke "v" using {command down} delay 0.5 keystroke "v" using {command down} delay 3 end tell} -------------- next part -------------- An HTML attachment was scrubbed... URL: From dthmpsn1 at illinois.edu Tue Jun 21 20:14:20 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Tue, 21 Jun 2011 22:14:20 -0500 (CDT) Subject: ExecuteApplescript delimiter issue In-Reply-To: References: Message-ID: <20110621221420.CRT18764@expms1.cites.uiuc.edu> > I need to put this into a panorama procedure. > How do I tell the procedure that the "red" curly brackets {} > are part of the script and not part of the Executeapplescript > command. > I know it has to do with delimiters but I don't no more than > that. > > Thanx > Meir > > Executeapplescript {tell application "System Events" > keystroke "v" using {command down} > delay 0.5 > > keystroke "v" using {command down} > delay 3 > > end tell} Use something other than curly brackets to quote the script. Such as Executeapplescript ||| tell application "System Events" keystroke "v" using {command down} delay 0.5 keystroke "v" using {command down} delay 3 end tell ||| or Executeapplescript 'tell application "System Events" keystroke "v" using {command down} delay 0.5 keystroke "v" using {command down} delay 3 end tell' Dave From meirw at mac.com Wed Jun 22 07:29:02 2011 From: meirw at mac.com (Meir Weingarten) Date: Wed, 22 Jun 2011 10:29:02 -0400 Subject: ExecuteApplescript delimiter issue In-Reply-To: <20110621221420.CRT18764@expms1.cites.uiuc.edu> Message-ID: Worked like a charm. Bravo, yet again to this board (and david in this case). Thanx Meir On 6/21/11 11:14 PM, "David Thompson" wrote: >> I need to put this into a panorama procedure. >> How do I tell the procedure that the "red" curly brackets {} >> are part of the script and not part of the Executeapplescript >> command. >> I know it has to do with delimiters but I don't no more than >> that. >> >> Thanx >> Meir >> >> Executeapplescript {tell application "System Events" >> keystroke "v" using {command down} >> delay 0.5 >> >> keystroke "v" using {command down} >> delay 3 >> >> end tell} > > Use something other than curly brackets to quote the script. Such as > > Executeapplescript ||| tell application "System Events" > keystroke "v" using {command down} > delay 0.5 > > keystroke "v" using {command down} > delay 3 > > end tell ||| > > or > > Executeapplescript 'tell application "System Events" > keystroke "v" using {command down} > delay 0.5 > > keystroke "v" using {command down} > delay 3 > > end tell' > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From JC at JamesCook.biz Fri Jun 24 10:34:46 2011 From: JC at JamesCook.biz (James Cook) Date: Fri, 24 Jun 2011 13:34:46 -0400 Subject: Adjusting Memory Message-ID: For some time I've had a procedure that could adjust the memory for Panorama by modifying PanoramaPowerPC.INI, even in Panorama 6 where it's in a package. Panorama 6 also has PanoramaIA32.INI which sets the memory. But for what scenarios? The name would imply 32-bit processors. Is there something else for 64-bit? And is there a way for a procedure to determine which INI is going to be used by Panorama on a given machine. Obviously I can simply adjust both, but is there about to be a PanoramaIA64.INI? -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From dthmpsn1 at illinois.edu Fri Jun 24 11:02:15 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 24 Jun 2011 13:02:15 -0500 (CDT) Subject: Adjusting Memory In-Reply-To: References: Message-ID: <20110624130215.CRU98602@expms1.cites.uiuc.edu> >For some time I've had a procedure that could adjust the memory for Panorama by modifying PanoramaPowerPC.INI, even in Panorama 6 where it's in a package. > >Panorama 6 also has PanoramaIA32.INI which sets the memory. But for what scenarios? The name would imply 32-bit processors. Is there something else for 64-bit? And is there a way for a procedure to determine which INI is going to be used by Panorama on a given machine. > PanoramaPowerPC.INI is for Power PC processors, and PanoramaIA32.INI is for Intel processors. Dave From gary at yonaites.com Fri Jun 24 11:24:00 2011 From: gary at yonaites.com (Gary Yonaites) Date: Fri, 24 Jun 2011 11:24:00 -0700 Subject: Adjusting Memory In-Reply-To: References: Message-ID: <858C1DF9-E988-42ED-B620-C5BDB89A8539@yonaites.com> Should there ever be a PanoramaIA64.INI, you could check to see what mode the machine is running with a unix check. This code checks the System Profiler to see if the line "64-bit Kernel and Extensions: " is set to "No" or "Yes". No means you are in 32-bit mode while yes indicates 64-bit. local result executeunix "system_profiler SPSoftwareDataType",result result=tagdata(result,"Extensions: ", ?,1) message ?(result="No","32-bit mode","64-bit mode") While researching this I found out that my 2010 iMac can run in 64-bit mode but is set to default in 32-bit mode. I can change this in the terminal or via a Panorama procedure using: sudo systemsetup -setkernelbootarchitecture x86_64 (using: sudo systemsetup -setkernelbootarchitecture i386 will set it back to 32-bit). You can also force your computer to start in either mode (if it is supported on your machine!) by holding down the 6 and 4 key at startup or the 3 and 2 key. This page shows what modes are supported and what set to default for Macs . Gary gary at yonaites.com On Jun 24, 2011, at 10:34 AM, James Cook wrote: > > For some time I've had a procedure that could adjust the memory for Panorama by modifying PanoramaPowerPC.INI, even in Panorama 6 where it's in a package. > > Panorama 6 also has PanoramaIA32.INI which sets the memory. But for what scenarios? The name would imply 32-bit processors. Is there something else for 64-bit? And is there a way for a procedure to determine which INI is going to be used by Panorama on a given machine. > > Obviously I can simply adjust both, but is there about to be a PanoramaIA64.INI? > > > -- > James Cook > JC at JamesCook.biz > > Founder of HindSight Ltd. > http://HSLtd.us > > Panorama Tutoring > Custom Panorama Applications > Specializing in Panorama Enterprise for the Web > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From jim at provue.com Fri Jun 24 11:39:51 2011 From: jim at provue.com (James Rea) Date: Fri, 24 Jun 2011 11:39:51 -0700 Subject: Adjusting Memory In-Reply-To: Message-ID: On 6/24/11 at 10:34 AM, JC at JamesCook.biz (James Cook) wrote: >Panorama 6 also has PanoramaIA32.INI which sets the memory. But >for what scenarios? The name would imply 32-bit processors. Is >there something else for 64-bit? Well, you never know, but a 64 bit version of Panorama is a long way off, if ever. One big problem -- if a 64 bit version of Panorama was ever created, it's databases would be incompatible with the current version, and vice versa. Actually, I think a 64 bit version of Panorama would require a complete rewrite from the ground up. That's not a problem, however, as 64 bit Intel processors are designed to run 32 bit applications just fine. Jim From tgross at condoready.com Fri Jun 24 13:11:16 2011 From: tgross at condoready.com (Thomas Gross) Date: Fri, 24 Jun 2011 10:11:16 -1000 Subject: Adding a CR into the Export Wizard Message-ID: <4E04EF64.6020400@condoready.com> Aloha Programming Gurus, I am trying to create an export template using the wizard that will insert a carriage return. The formula is: ?(?Website?>"0?({}+?Company Name?+{}+?+?Phone Number?,?Company Name?+?+?Phone Number?) But the ? were ignored example: Outdoor Pro Shop, Inc707-237-9584 I tried ?(?Website?>"0",{}+?Company Name?+{}+{ }+?Phone Number?,?Company Name?+{ }+?Phone Number?) It cut off the formula at the first CR. I want it to look like this: Outdoor Pro Shop, Inc 707-237-9584 Any suggestions using the Export Wizard? On another note I want to make the list look like this California Outdoor Pro Shop, Inc 707-237-9584 Outdoor Pro Shop, Inc 707-237-9584 Utah Outdoor Pro Shop, Inc 707-237-9584 Outdoor Pro Shop, Inc 707-237-9584 but I think that is only possible with writing a custom procedure. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From dthmpsn1 at illinois.edu Sat Jun 25 11:28:46 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 25 Jun 2011 13:28:46 -0500 (CDT) Subject: Adding a CR into the Export Wizard Message-ID: <20110625132846.CRV39008@expms1.cites.uiuc.edu> > I am trying to create an export template using the wizard > that will insert a carriage return. The formula is: > > ?(<>>"0>>({}+< Name>>+{}+P:+<>,<>+P:+< Number>>) > > But the P: were ignored > > example: > > Outdoor Pro Shop, Inc707-237-9584 > I tried this formula and the carriage returns were included for me. If I opened the file in TextEdit and the file had a .txt extension or preferences were set to ignore rich text commands in HTML files, the phone number appeared on the second line. If the file had a .htm or .html extension, and I opened it in a web browser, the browser ignored the carriage returns, but that's what browsers do. That doesn't mean the carriage return isn't there. If you want the text to appear on separate lines in a web browser, use
tags instead of (or in addition to) carriage returns. Dave From nacnuddd at gmail.com Sun Jun 26 20:00:19 2011 From: nacnuddd at gmail.com (David Duncan) Date: Mon, 27 Jun 2011 13:00:19 +1000 Subject: Openfile feature Message-ID: The openfile statement and the Open File? menu item can replace, or add to, the data records in a file with the selected records in a second file. Brilliant features. Unless I am missing something, however, there is no option to replace with or append ALL the records in the second file (akin to the option provided by arraybuild/arrayselectedbuild). I use the Open File? menu item replace option to update old file versions to new versions for six sites on a regular basis. I have to be constantly alert to the possibility that I may not capture all the data in the second file due to the fact that it may have a subset selected. Although I have included a procedure in these files to select all records and save before closing it is still possible for my users to subvert these unwittingly and they do. My only safe option is to open, select all records and save each file before putting its data into the new version of the file. This is an additional couple of steps that is real drag when many files need to be updated. Would it be a challenging job, or even possible, to add this feature to a future release? David Duncan From JC at JamesCook.biz Mon Jun 27 04:18:02 2011 From: JC at JamesCook.biz (James Cook) Date: Mon, 27 Jun 2011 07:18:02 -0400 Subject: Openfile feature In-Reply-To: References: Message-ID: At 1:00 PM +1000 6/27/11, David Duncan wrote: >My only safe option is >to open, select all records and save each file before putting its data >into the new version of the file. That is the only way, but if you use OpenSecret, SelectAll and Save, the procedure can move through at a fairly good clip. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From glists at maclaboratory.com Mon Jun 27 20:03:34 2011 From: glists at maclaboratory.com (Glenn Kowalski) Date: Mon, 27 Jun 2011 23:03:34 -0400 Subject: Panorama Menu--no way to modify? Message-ID: <4E094486.9000002@maclaboratory.com> Just wanted to verify... there seems to be no way to modify the Panorama Menu in Pan 6 beyond the .CustomAbout procedure. Correct? Thanks. .............. Glenn Kowalski MacLab, Inc. 6930 Carroll Ave, Suite 811 Takoma Park, MD 20912 301-270-8445 x26 www.maclaboratory.com Macintosh Support, Sales, Hosting From jim at provue.com Mon Jun 27 23:16:22 2011 From: jim at provue.com (James Rea) Date: Mon, 27 Jun 2011 23:16:22 -0700 Subject: Panorama Menu--no way to modify? In-Reply-To: <4E094486.9000002@maclaboratory.com> Message-ID: On 6/27/11 at 8:03 PM, glists at maclaboratory.com (Glenn Kowalski) wrote: >Just wanted to verify... there seems to be no way to modify the >Panorama Menu in Pan 6 beyond the .CustomAbout procedure. >Correct? Thanks. That's correct. Actually, I wanted to make this modifiable for some of my own projects, and found that it was impossible except by modifying the resource file and making an internal modification to Panorama, which I actually did for Panorama Sheets and for my other upcoming project (more on that probably later this week). But there is unfortunately no way to customize it on the fly like the other menus. The problem is that this menu is actually generated by the system, not by Panorama. Jim From beauche at roadrunner.com Tue Jun 28 14:51:14 2011 From: beauche at roadrunner.com (George Beauchemin) Date: Tue, 28 Jun 2011 14:51:14 -0700 Subject: Hang Up Modem Command with ABDialer Message-ID: I do virtually all my phone dialing within a Panorama database, using ABDialer version 2.3.1. I simply click a macro button and the phone number is dialed. Occasionally I have the wrong record up and I hit the dial button, or I hit the wrong button (home vs. work, for example). I?d like some fast way to ?hang-up? or kill the modem. Instead I have to wait perhaps 10 or so seconds before I can hang up the phone. Ideally another procedure that I just hit a button or do a hot key command that just stops the dialing. I note here that something similar has been addressed: http://www.provue.com/cgi-bin/Panorama.cgi?qnazone~qnamessage~4432 But I am not using AppleScript. Thank you. George Beauchemin -------------- next part -------------- An HTML attachment was scrubbed... URL: From JC at JamesCook.biz Tue Jun 28 17:12:53 2011 From: JC at JamesCook.biz (James Cook) Date: Tue, 28 Jun 2011 20:12:53 -0400 Subject: Hang Up Modem Command with ABDialer In-Reply-To: References: Message-ID: >I do virtually all my phone dialing within a Panorama database, using ABDialer version 2.3.1. > >I simply click a macro button and the phone number is dialed. Occasionally I have the wrong record up and I hit the dial button, or I hit the wrong button (home vs. work, for example). > >I'd like some fast way to "hang-up" or kill the modem. Instead I have to wait perhaps 10 or so seconds before I can hang up the phone. > >Ideally another procedure that I just hit a button or do a hot key command that just stops the dialing. It's been a while since I've used and have no ability to test it, but I assume modem commands haven't changed. This was my old, reliable hang up script for many years. dialmodem "+++"+?+"ATH0" -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From barryk at caravanbeads.net Tue Jun 28 17:44:12 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Tue, 28 Jun 2011 20:44:12 -0400 Subject: text file location Message-ID: <07FCD1AA-F795-4538-AF71-A404C8AF23B0@caravanbeads.net> I have a database which loads a text file on startup. Is there a way for a procedure to check possible locations for the text file and choose the correct one by itself? So for example: First the procedure looks for our network server. If it finds it, it would open the text file that lives there. If the network server isn't available, it would try to open a local backup copy of the text file that I would keep in the same folder for development/testing purposes. And in a 3rd instance, I might be running a windows copy of PAN under VM. Is there a best/simplest way to do this so the procedure would, I guess, check each option for availability and then use the first one that works? And how does it check? Thanks, bk PS So the first example would have this: openfile "&Dell_Shared:bin_locs_etc.txt" The local copy would be: openfile "bin_locs_etc.txt" And the 3rd would be: openfile "&\\vmware-host\Shared Folders\Dell_Shared:bin_locs_etc.txt" Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ *** My daughter Heather's new business: http://www.chrononautmercantile.com/ From JC at JamesCook.biz Tue Jun 28 18:31:38 2011 From: JC at JamesCook.biz (James Cook) Date: Tue, 28 Jun 2011 21:31:38 -0400 Subject: text file location In-Reply-To: <07FCD1AA-F795-4538-AF71-A404C8AF23B0@caravanbeads.net> References: <07FCD1AA-F795-4538-AF71-A404C8AF23B0@caravanbeads.net> Message-ID: What you want is fileexists( . You can see if the file exists in one place, if not check somewhere else and so on. Once you find it, use OpenFile >I have a database which loads a text file on startup. Is there a way for a procedure to check possible locations for the text file and choose the correct one by itself? So for example: > >First the procedure looks for our network server. If it finds it, it would open the text file that lives there. > >If the network server isn't available, it would try to open a local backup copy of the text file that I would keep in the same folder for development/testing purposes. > >And in a 3rd instance, I might be running a windows copy of PAN under VM. > >Is there a best/simplest way to do this so the procedure would, I guess, check each option for availability and then use the first one that works? And how does it check? > >Thanks, >bk > >PS > >So the first example would have this: openfile "&Dell_Shared:bin_locs_etc.txt" > >The local copy would be: openfile "bin_locs_etc.txt" > >And the 3rd would be: openfile "&\\vmware-host\Shared Folders\Dell_Shared:bin_locs_etc.txt" -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From barryk at caravanbeads.net Tue Jun 28 20:07:05 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Tue, 28 Jun 2011 23:07:05 -0400 Subject: text file location In-Reply-To: References: <07FCD1AA-F795-4538-AF71-A404C8AF23B0@caravanbeads.net> Message-ID: <08114192-4F49-4B3B-9036-7E3E80BC47B2@caravanbeads.net> Thanks James. Can you tell me how to format it? If I have this path for example: Macintosh HD:Users:barrykahn:Desktop:PAN f:order.txt I put some version of this: If fileexists( and then what? I just tried various versions based on looking at the Pan reference example but they all show a "missing right parenthesis" error truly for me the devil is always in the details... thanks bk > > What you want is fileexists( . You can see if the file exists in one place, if not check somewhere else and so on. Once you find it, use OpenFile > > >> I have a database which loads a text file on startup. Is there a way for a procedure to check possible locations for the text file and choose the correct one by itself? So for example: >> >> First the procedure looks for our network server. If it finds it, it would open the text file that lives there. >> >> If the network server isn't available, it would try to open a local backup copy of the text file that I would keep in the same folder for development/testing purposes. >> >> And in a 3rd instance, I might be running a windows copy of PAN under VM. >> >> Is there a best/simplest way to do this so the procedure would, I guess, check each option for availability and then use the first one that works? And how does it check? >> >> Thanks, >> bk >> >> PS >> >> So the first example would have this: openfile "&Dell_Shared:bin_locs_etc.txt" >> >> The local copy would be: openfile "bin_locs_etc.txt" >> >> And the 3rd would be: openfile "&\\vmware-host\Shared Folders\Dell_Shared:bin_locs_etc.txt" > > > -- > James Cook > JC at JamesCook.biz > > Founder of HindSight Ltd. > http://HSLtd.us > > Panorama Tutoring > Custom Panorama Applications > Specializing in Panorama Enterprise for the Web > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net From cdpublishing at qwestoffice.net Tue Jun 28 20:10:49 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Tue, 28 Jun 2011 20:10:49 -0700 Subject: text file location In-Reply-To: <08114192-4F49-4B3B-9036-7E3E80BC47B2@caravanbeads.net> References: <07FCD1AA-F795-4538-AF71-A404C8AF23B0@caravanbeads.net> <08114192-4F49-4B3B-9036-7E3E80BC47B2@caravanbeads.net> Message-ID: <343333C6-8A2D-44CA-8A23-257BDBDA36CC@qwestoffice.net> doncha hate that? I always just add a few right parenses until it works. ;-P Craig McPherson On Jun 28, 2011, at 8:07 PM, Barry Kahn wrote: > Thanks James. Can you tell me how to format it? > > If I have this path for example: > > Macintosh HD:Users:barrykahn:Desktop:PAN f:order.txt > > I put some version of this: > > If fileexists( and then what? I just tried various versions based on looking at the Pan reference example but they all show a "missing right parenthesis" error > > truly for me the devil is always in the details... > > thanks > bk > > > >> >> What you want is fileexists( . You can see if the file exists in one place, if not check somewhere else and so on. Once you find it, use OpenFile >> >> >>> I have a database which loads a text file on startup. Is there a way for a procedure to check possible locations for the text file and choose the correct one by itself? So for example: >>> >>> First the procedure looks for our network server. If it finds it, it would open the text file that lives there. >>> >>> If the network server isn't available, it would try to open a local backup copy of the text file that I would keep in the same folder for development/testing purposes. >>> >>> And in a 3rd instance, I might be running a windows copy of PAN under VM. >>> >>> Is there a best/simplest way to do this so the procedure would, I guess, check each option for availability and then use the first one that works? And how does it check? >>> >>> Thanks, >>> bk >>> >>> PS >>> >>> So the first example would have this: openfile "&Dell_Shared:bin_locs_etc.txt" >>> >>> The local copy would be: openfile "bin_locs_etc.txt" >>> >>> And the 3rd would be: openfile "&\\vmware-host\Shared Folders\Dell_Shared:bin_locs_etc.txt" >> >> >> -- >> James Cook >> JC at JamesCook.biz >> >> Founder of HindSight Ltd. >> http://HSLtd.us >> >> Panorama Tutoring >> Custom Panorama Applications >> Specializing in Panorama Enterprise for the Web >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > Barry Kahn > Caravan Beads, Inc. > 915 Forest Ave > Portland ME 04103 > 800-230-8941 > fax: 207-874-2664 > www.caravanbeads.net > barryk at caravanbeads.net > > > > > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From barryk at caravanbeads.net Tue Jun 28 20:16:13 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Tue, 28 Jun 2011 23:16:13 -0400 Subject: text file location In-Reply-To: <343333C6-8A2D-44CA-8A23-257BDBDA36CC@qwestoffice.net> References: <07FCD1AA-F795-4538-AF71-A404C8AF23B0@caravanbeads.net> <08114192-4F49-4B3B-9036-7E3E80BC47B2@caravanbeads.net> <343333C6-8A2D-44CA-8A23-257BDBDA36CC@qwestoffice.net> Message-ID: Tried that but no luck. I do hope that the parentheses need to balance out...if that leg is off the stool, I'm going to topple over and never get up again. b > doncha hate that? I always just add a few right parenses until it works. > ;-P > Craig McPherson > On Jun 28, 2011, at 8:07 PM, Barry Kahn wrote: > >> Thanks James. Can you tell me how to format it? >> >> If I have this path for example: >> >> Macintosh HD:Users:barrykahn:Desktop:PAN f:order.txt >> >> I put some version of this: >> >> If fileexists( and then what? I just tried various versions based on looking at the Pan reference example but they all show a "missing right parenthesis" error >> >> truly for me the devil is always in the details... >> >> thanks >> bk >> >> >> >>> >>> What you want is fileexists( . You can see if the file exists in one place, if not check somewhere else and so on. Once you find it, use OpenFile >>> >>> >>>> I have a database which loads a text file on startup. Is there a way for a procedure to check possible locations for the text file and choose the correct one by itself? So for example: >>>> >>>> First the procedure looks for our network server. If it finds it, it would open the text file that lives there. >>>> >>>> If the network server isn't available, it would try to open a local backup copy of the text file that I would keep in the same folder for development/testing purposes. >>>> >>>> And in a 3rd instance, I might be running a windows copy of PAN under VM. >>>> >>>> Is there a best/simplest way to do this so the procedure would, I guess, check each option for availability and then use the first one that works? And how does it check? >>>> >>>> Thanks, >>>> bk >>>> >>>> PS >>>> >>>> So the first example would have this: openfile "&Dell_Shared:bin_locs_etc.txt" >>>> >>>> The local copy would be: openfile "bin_locs_etc.txt" >>>> >>>> And the 3rd would be: openfile "&\\vmware-host\Shared Folders\Dell_Shared:bin_locs_etc.txt" >>> >>> >>> -- >>> James Cook >>> JC at JamesCook.biz >>> >>> Founder of HindSight Ltd. >>> http://HSLtd.us >>> >>> Panorama Tutoring >>> Custom Panorama Applications >>> Specializing in Panorama Enterprise for the Web >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >> >> Barry Kahn >> Caravan Beads, Inc. >> 915 Forest Ave >> Portland ME 04103 >> 800-230-8941 >> fax: 207-874-2664 >> www.caravanbeads.net >> barryk at caravanbeads.net >> >> >> >> >> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net From dthmpsn1 at illinois.edu Tue Jun 28 20:26:32 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Tue, 28 Jun 2011 22:26:32 -0500 (CDT) Subject: text file location In-Reply-To: <08114192-4F49-4B3B-9036-7E3E80BC47B2@caravanbeads.net> References: <07FCD1AA-F795-4538-AF71-A404C8AF23B0@caravanbeads.net> <08114192-4F49-4B3B-9036-7E3E80BC47B2@caravanbeads.net> Message-ID: <20110628222632.CRX09952@expms1.cites.uiuc.edu> >Thanks James. Can you tell me how to format it? > >If I have this path for example: > >Macintosh HD:Users:barrykahn:Desktop:PAN f:order.txt > Case fileexists(folder("Macintosh HD:Users:barrykahn:Desktop:PAN f:"), "order.txt") OpenFile "Macintosh HD:Users:barrykahn:Desktop:PAN f:order.txt" Case etc. EndCase Put the Case statements in order of preference. The first one whose condition is true will be executed, and any that follow will be skipped, whether their conditions are true or not. Dave From barryk at caravanbeads.net Tue Jun 28 20:39:50 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Tue, 28 Jun 2011 23:39:50 -0400 Subject: text file location In-Reply-To: <20110628222632.CRX09952@expms1.cites.uiuc.edu> References: <07FCD1AA-F795-4538-AF71-A404C8AF23B0@caravanbeads.net> <08114192-4F49-4B3B-9036-7E3E80BC47B2@caravanbeads.net> <20110628222632.CRX09952@expms1.cites.uiuc.edu> Message-ID: Thanks Dave. I was close but left out the comma before the file name and that did me in. b >> >> >> If I have this path for example: >> >> Macintosh HD:Users:barrykahn:Desktop:PAN f:order.txt >> > > Case fileexists(folder("Macintosh HD:Users:barrykahn:Desktop:PAN f:"), "order.txt") > OpenFile "Macintosh HD:Users:barrykahn:Desktop:PAN f:order.txt" > > Case etc. > > EndCase > > Put the Case statements in order of preference. The first one whose condition is true will be executed, and any that follow will be skipped, whether their conditions are true or not. > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net From steve at tlwsolutions.com Thu Jun 30 08:33:06 2011 From: steve at tlwsolutions.com (steve middleton) Date: Thu, 30 Jun 2011 11:33:06 -0400 Subject: Text Edit Super Object Variables Message-ID: Hello, Is there a way to programmatically list all the variables associated with Text Edit Super Objects on a specific form? I would like to build an array of the variables. Thanks Steve Middleton -------------- next part -------------- An HTML attachment was scrubbed... URL: From qnaweb at provue.com Thu Jun 30 09:00:58 2011 From: qnaweb at provue.com (Steve Middleton) Date: Thu, 30 Jun 2011 09:00:58 -0700 (PDT) Subject: Text Edit Super Object Variables Message-ID: <20110630160058.A37EA4A284B@provue.com> Hello, Is there a way to programmatically list all the variables associated with Text Edit Super Objects on a specific form? I would like to build an array of the variables. Thanks Steve Middleton From cdpublishing at qwestoffice.net Thu Jun 30 09:21:46 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Thu, 30 Jun 2011 09:21:46 -0700 Subject: Text Edit Super Object Variables In-Reply-To: References: Message-ID: The info("FileVariables") function provides an array of all fileglobal variables, but I don't know if you could get to just the ones in a TESO using IF or CASE statements to identify the name of the TESO as a condition for the array. If the variables were set up as window global variables, using info("windowvariables") might be your answer(?) Craig McPherson On Jun 30, 2011, at 8:33 AM, steve middleton wrote: > Hello, > > Is there a way to programmatically list all the variables associated with Text Edit Super Objects on a specific form? > > I would like to build an array of the variables. > > Thanks > > Steve Middleton > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From JC at JamesCook.biz Thu Jun 30 09:38:16 2011 From: JC at JamesCook.biz (James Cook) Date: Thu, 30 Jun 2011 12:38:16 -0400 Subject: Text Edit Super Object Variables In-Reply-To: <20110630160058.A37EA4A284B@provue.com> References: <20110630160058.A37EA4A284B@provue.com> Message-ID: At 9:00 AM -0700 6/30/11, Steve Middleton wrote: >Is there a way to programmatically list all the variables associated with Text Edit Super Objects on a specific form? > >I would like to build an array of the variables. You can access all of the file's variables as Craig has already pointed out. If you need a specific subset of those variables, such as for a TSO, the trick would be to name them in a manner that an arrayfilter could tell them from others and give you the list. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From jim at provue.com Thu Jun 30 10:02:23 2011 From: jim at provue.com (James Rea) Date: Thu, 30 Jun 2011 10:02:23 -0700 Subject: Text Edit Super Object Variables In-Reply-To: Message-ID: On 6/30/11 at 8:33 AM, steve at tlwsolutions.com (steve middleton) wrote: >Is there a way to programmatically list all the variables associated with >Text Edit Super Objects on a specific form? It is actually possible to get the names of these variables, but it is complicated, much too complicated for me to come up with a step by step explanation here. Technically inclined users should have no problem figuring out how to do this by examining the Form Explorer wizard, which extracts ALL the information about all of the objects in a form, including the variable names. Also, all of the techniques used in this wizard are documented in the Formulas & Programming PDF file. Jim From gary at yonaites.com Thu Jun 30 10:13:30 2011 From: gary at yonaites.com (Gary Yonaites) Date: Thu, 30 Jun 2011 10:13:30 -0700 Subject: Text Edit Super Object Variables In-Reply-To: <20110630160058.A37EA4A284B@provue.com> References: <20110630160058.A37EA4A284B@provue.com> Message-ID: <7B9D9F1F-D482-4EEB-BE69-833ADC8781A3@yonaites.com> You would have to select each one individually and then use objectinfo("#FORMULA") to extract the variable or formula that is set for each. Check out the Panorama Formulas & Programming document on page 677 titled "Text Display SuperObject Internal Data" for the items that can be returned. Page 669 headed "Accessing and Modifying a SuperObject?s Internal Data" gives example of how this data can be retrieved. Here is a loop that I altered from the documentation that will first select all the Text Editors and then cycles thru the selected objects and extracts their variables/formulas. local objectVariables,X objectVariables="" X=1 selectobjects objectinfo("type") contains "Text Editor" loop objectnumber X stoploopif (not info("found")) objectVariables=objectVariables+?+objectinfo("#FORMULA") X=X+1 while forever message objectVariables This was found on page 642 of the Panorama Formulas and Programming pdf. I found that there is a typo as written where the statement selectobjects is shown as objectselect. Gary gary at yonaites.com On Jun 30, 2011, at 9:00 AM, Steve Middleton wrote: > Hello, > > Is there a way to programmatically list all the variables associated with Text Edit Super Objects on a specific form? > > I would like to build an array of the variables. > > Thanks > > Steve Middleton > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From dthmpsn1 at illinois.edu Thu Jun 30 10:40:15 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 30 Jun 2011 12:40:15 -0500 (CDT) Subject: Text Edit Super Object Variables In-Reply-To: References: Message-ID: <20110630124015.CRY21088@expms1.cites.uiuc.edu> > Is there a way to programmatically list all the variables > associated with Text Edit Super Objects on a specific form? > I would like to build an array of the variables. This isn't much different from Gary's procedure, but it does contain a test to see if the TESO is displaying a variable, rather than a field or formula. FileGlobal TESOvariables TESOvariables = "" Local n n=1 selectobjects objectinfo("type") contains "Text Editor" Loop ObjectNumber n stoploopif (not info("found")) /* test for variable, rather than field or formula */ if (objectinfo("#TEXT EDITOR FLAGS") and radix(16, "C0000000")) = radix(16, "80000000") TESOvariables = sandwich("",TESOvariables,?)+objectinfo("#FORMULA") endif n=n+1 While forever Dave From steve at tlwsolutions.com Thu Jun 30 12:14:52 2011 From: steve at tlwsolutions.com (steve middleton) Date: Thu, 30 Jun 2011 15:14:52 -0400 Subject: Text Edit Super Object Variables In-Reply-To: <7B9D9F1F-D482-4EEB-BE69-833ADC8781A3@yonaites.com> References: <20110630160058.A37EA4A284B@provue.com> <7B9D9F1F-D482-4EEB-BE69-833ADC8781A3@yonaites.com> Message-ID: Hi Gary, Thanks for the example but I am getting an error in the editor. I have tried to isolate which line but I can only get the error down to somewhere in the loop section. Steve On Thu, Jun 30, 2011 at 1:13 PM, Gary Yonaites wrote: > You would have to select each one individually and then use > objectinfo("#FORMULA") to extract the variable or formula that is set for > each. Check out the Panorama Formulas & Programming document on page 677 > titled "Text Display SuperObject Internal Data" for the items that can be > returned. Page 669 headed "Accessing and Modifying a SuperObject?s Internal > Data" gives example of how this data can be retrieved. Here is a loop that I > altered from the documentation that will first select all the Text Editors > and then cycles thru the selected objects and extracts their > variables/formulas. > > local objectVariables,X > objectVariables="" > X=1 > selectobjects objectinfo("type") contains "Text Editor" > loop > objectnumber X > stoploopif (not info("found")) > objectVariables=objectVariables+?+objectinfo("#FORMULA") > X=X+1 > while forever > message objectVariables > > This was found on page 642 of the Panorama Formulas and Programming pdf. I > found that there is a typo as written where the statement selectobjects is > shown as objectselect. > > Gary > gary at yonaites.com > > On Jun 30, 2011, at 9:00 AM, Steve Middleton wrote: > > > Hello, > > > > Is there a way to programmatically list all the variables associated with > Text Edit Super Objects on a specific form? > > > > I would like to build an array of the variables. > > > > Thanks > > > > Steve Middleton > > _______________________________________________ > > Qna mailing list > > Qna at provue.com > > http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dthmpsn1 at illinois.edu Thu Jun 30 12:30:05 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 30 Jun 2011 14:30:05 -0500 (CDT) Subject: Text Edit Super Object Variables In-Reply-To: References: <20110630160058.A37EA4A284B@provue.com> <7B9D9F1F-D482-4EEB-BE69-833ADC8781A3@yonaites.com> Message-ID: <20110630143005.CRY28864@expms1.cites.uiuc.edu> > Hi Gary, > Thanks for the example but I am getting an error in the > editor. ?I have tried to isolate which line but I can only > get the error down to somewhere in the loop section. > Steve > It's probably the indented lines. Try using Change to change non breaking spaces (option- space) to spaces. I bet that will fix it. Dave From steve at tlwsolutions.com Thu Jun 30 12:50:32 2011 From: steve at tlwsolutions.com (steve middleton) Date: Thu, 30 Jun 2011 15:50:32 -0400 Subject: Text Edit Super Object Variables In-Reply-To: <20110630143005.CRY28864@expms1.cites.uiuc.edu> References: <20110630160058.A37EA4A284B@provue.com> <7B9D9F1F-D482-4EEB-BE69-833ADC8781A3@yonaites.com> <20110630143005.CRY28864@expms1.cites.uiuc.edu> Message-ID: You are correct. That fixed it. Thanks On Thu, Jun 30, 2011 at 3:30 PM, David Thompson wrote: > > Hi Gary, > > Thanks for the example but I am getting an error in the > > editor. I have tried to isolate which line but I can only > > get the error down to somewhere in the loop section. > > Steve > > > > It's probably the indented lines. Try using Change to change non breaking > spaces (option- > space) to spaces. I bet that will fix it. > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: