Previous Thread
Next Thread
Print Thread
#26730 03/28/11 05:27 PM
Joined: Aug 2010
Posts: 92
G
Adagio Scholar
Adagio Scholar
G Offline
Joined: Aug 2010
Posts: 92
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.

Joined: Mar 1999
Posts: 11,746
Adagio Action Team
Adagio Action Team
Joined: Mar 1999
Posts: 11,746
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
Joined: Aug 2010
Posts: 92
G
Adagio Scholar
Adagio Scholar
G Offline
Joined: Aug 2010
Posts: 92
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.

Joined: Mar 1999
Posts: 10,504
Adagio Master
Adagio Master
Joined: Mar 1999
Posts: 10,504
I don't believe there is any significance to the return code from GridView. Might not be a bad idea though.


Andrew Bates
Joined: Feb 2002
Posts: 839
M
Adagio Virtuoso
Adagio Virtuoso
M Offline
Joined: Feb 2002
Posts: 839
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.

Joined: Aug 2010
Posts: 92
G
Adagio Scholar
Adagio Scholar
G Offline
Joined: Aug 2010
Posts: 92
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!


Moderated by  Softrak Support 

Link Copied to Clipboard
Who's Online Now
0 members (), 77 guests, and 3 robots.
Key: Admin, Global Mod, Mod
Forum Statistics
Forums5
Topics14,679
Posts71,625
Members1,874
Most Online1,408
Dec 9th, 2025
November
S M T W T F S
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
Powered by UBB.threads™ PHP Forum Software 8.0.0