![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
sbhenkel
Newbie
Joined: March 03 2017 Status: Offline Points: 39 |
Post Options
Thanks(0)
Quote Reply
Topic: ATMULTILISTBOX is displaying its own codePosted: May 15 2017 at 1:44pm |
|
Is there anything I could be doing to cause ATMULTILISTBOX to display its own code when it displays its box? See image below.
![]() |
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: May 23 2017 at 5:03pm |
|
Hi Steve -
There appears to be a line of code for debugging left in the sample. Please remove this line:
Sorry for the trouble. Thanks, Pete |
|
![]() |
|
mikehmc
Groupie
Joined: June 17 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
Quote Reply
Posted: May 24 2017 at 10:13am |
|
Hi Pete. a gent you know named Loren is showing me code for ATMULTILISTBOX. But we cant find it on our accuterm accounts. is it in a newer version of accuterm then we have running?
we are currently on release 7.1c (7.1.2014). Thanks Mike Mcguane
|
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: May 24 2017 at 10:25am |
|
Hi Mike -
This program was added to the SAMPLES file in release 7.1b. You might want to update the host programs from a newer release of AccuTerm to get updated SAMPLES. Thanks, Pete |
|
![]() |
|
mikehmc
Groupie
Joined: June 17 2004 Status: Offline Points: 43 |
Post Options
Thanks(0)
Quote Reply
Posted: May 25 2017 at 11:40am |
|
Got the samples Pete Thanks. Question on the debugging line left in on this thread. is this sample code fully vetted and tested? or is it just an example?
Thanks Mike
|
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: May 25 2017 at 1:16pm |
|
Hi Mike -
The SAMPLES file contains sample code, not necessarily completely tested or supported. But most of these have been around long enough that I'm pretty confident in their quality. Some were submitted by other users, which is probably where the debugging line in ATMULTILISTBOX originated. Before including any samples in the AccuTerm release I do check them to make sure there are no obvious problems, but missed that one. Thanks, Pete |
|
![]() |
|
pickteam
Newbie
Joined: December 20 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: August 01 2017 at 2:45pm |
|
I'm having similar problems with ATLISTBOX and sometimes other AT GUI programs. Everything will work fine, then sometimes, when the script is printed to the screen with the ESC sequence, something goes wrong and the whole mess is thrown up over the existing Pick screen.
It is intermittent, but unacceptable for the users. I'm thinking of maybe doing the guinit or something again, but I'm at a loss and need to get this to work. No debug code that I can see. Thanks |
|
|
Douglas Tatelman
|
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: August 01 2017 at 2:53pm |
|
Hi Douglas -
Are you able to reproduce this? Can you send me some sample code of how you are calling ATLISTBOX? The debugging code mentioned in previous posts was a simple PRINT statement that showed the text of the script that was being executed. Thanks, Pete |
|
![]() |
|
pickteam
Newbie
Joined: December 20 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: August 01 2017 at 3:10pm |
|
Thanks so much for your fast reply. I'm going crazy trying to replicate it. But QA seems to have no trouble. Most of the time we get a cool list box, and they select and everything is great. I'm running it over and over as I write this.
In the screen print they sent me, I can see the addresses on the screen with code from ATLISTBOX like "Listarray(38) = ". Maybe I should check if they are on the latest version of Accuterm. As I said, I had a previous project where we fire off Outlook and Word and stuff, and every few weeks I would get a report of garbage on the screen. I'll send you the code privately. Douglas |
|
|
Douglas Tatelman
|
|
![]() |
|
pickteam
Newbie
Joined: December 20 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: August 01 2017 at 4:29pm |
|
I was able to capture some. It seems to not see the ESC STK P
Here is a portion of the screen mess. MANITOWOC, WI 54220"Listarray(311) = "WI DC- 7 OGIO VISUAL IMPRESSIONS, 6600 W CALUMET RD, MILWAUKEE, WI 53223"Begin Di log UserDialog 1068,540,"Restricted Address Selection Window",.DialogFuncText 10,10,1048,12,"Choose an Approved Decorator SHIP TO", HeadingListBox 10,27,1048,480,Listarray(),.ListboxOKButton 316,515,60,20CancelButton 692,515,60,20End DialogDim Dlg As UserDialogDl .Listbox = -1Dialog DlgInitSession.ActivateIf Err = 0 Then n% = Dlg.Listbox + 1 Else n% = 0InitSession.Output CStr(n%) & vbCrEnd Su Private Declare Function GetStockObject& Lib "gdi32" (ByVal nid&)Private Declare Function SendDlgItemMessageA& Lib "user32" (ByVal Wnd&, ByVal ID&, ByVal uMsg&, ByVal wp&, ByVal lp&)Private Const WM_SETFONT=&H30Private Const SYSTEM_FIXED_FONT=16Private Function ialogFunc(DlgItm$, Action%, SuppVal&) As BooleanSelect Case Action%Case 1SendDlgItemMessageA SuppVal&,DlgControlID("Listbox"),WM_SE FONT,GetStockObject(SYSTEM_FIXED_FONT),1Case 5DlgFocus "Listbox"End SelectEnd FunctionSub Dummy
|
|
|
Douglas Tatelman
|
|
![]() |
|
pickteam
Newbie
Joined: December 20 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: August 02 2017 at 8:02am |
|
I'm thinking now that maybe there are some special characters in the strings I'm trying to display. But that doesn't explain why the problem is intermittent.
|
|
|
Douglas Tatelman
|
|
![]() |
|
pickteam
Newbie
Joined: December 20 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: August 02 2017 at 9:51am |
|
BINGO! The data stream had some errors. Evidently ATLISTBOX is sensitive to more that just " (double quotes). I think the errors had some sort of screen commands from cURL.
I want to thank Pete for jumping right in to help. Douglas
|
|
|
Douglas Tatelman
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |