Topic Options
#26730 - 03/28/11 12:27 PM Grid View Return Codes
GeorgeandLaura Offline
Adagio Scholar

Registered: 08/09/10
Posts: 92
Loc: LaSalle Ontario
Can anyone provide a list of return codes from Grid View? We are currently developing an app which calls GridView from VBA, it appears to be working but is returning some codes and we need to know what they mean. Oddly, they seem to be returning before the process is done so it must be some sort of processing feedback. Thanks.

Top
#26732 - 03/28/11 12:36 PM Re: Grid View Return Codes [Re: GeorgeandLaura]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11532
Loc: Vancouver, BC Canada
If you mean codes such as values for document type (IN, CN DN, or possibly just 1, 2, 3, etc), then there is a tool called the DataDictionaryExporter.EXE that can do this. This utility can be found in the \softrak\system directory, and can create a spreadsheet for a specific Adagio program and one tab for every data file. If there are any 'translated values' coded in the dictionary, they will be listed here, at the bottom of each sheet.

If you don't find the 'return codes' you are looking for, or if this does not answer your question, please re-post here an example of specific information you require and perhaps what you mean by 'return code'.
_________________________
Regards,
Softrak Tech Support

Top
#26733 - 03/28/11 12:47 PM Re: Grid View Return Codes [Re: Softrak Support]
GeorgeandLaura Offline
Adagio Scholar

Registered: 08/09/10
Posts: 92
Loc: LaSalle Ontario
No, the field are not what I am referring to. I mean that the program is returning a number. It is usually a different number, but is 3 or 4 digits. In VBA, when Grid View is invoked through the shell command, it returns a number that is returned back to the program. I hopes this is a bit clearer.

Top
#26736 - 03/28/11 01:51 PM Re: Grid View Return Codes [Re: GeorgeandLaura]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
I don't believe there is any significance to the return code from GridView. Might not be a bad idea though.
_________________________
Andrew Bates

Top
#26742 - 03/28/11 03:58 PM Re: Grid View Return Codes [Re: Retired_Guy]
Michael Mulrooney Offline
Adagio Virtuoso

Registered: 02/07/02
Posts: 839
Loc: Vancouver, BC
The code below in LauncgGV.vbs

' Launch GridView
' Wait for GridView to be shut down by the user,
' and display error code returned from GridView when it exits:

Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("GVWin.exe", 1, true)
MsgBox "Return Code: " & Return

seems to always return 0 as the return code.

Perhaps you could paste your code snippet here so we can have a look.

Top
#26784 - 04/01/11 06:03 AM Re: Grid View Return Codes [Re: Michael Mulrooney]
GeorgeandLaura Offline
Adagio Scholar

Registered: 08/09/10
Posts: 92
Loc: LaSalle Ontario
Thanks all - I agree - there doesn't appear to be any significance of the code. The programmer doesn't need them anymore. It looks like it's going to be smooth. Thanks!

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 47 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14458 Topics
70633 Posts

Max Online: 432 @ 01/20/25 10:17 PM
April
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30