Executing VB Script
- T24
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
17 years 9 months ago #1958
by T24
Executing VB Script was created by T24
Hi Everybody,
Can anybody say how to execute the VB Script through the JBase program?
Can anybody say how to execute the VB Script through the JBase program?
Please Log in or Create an account to join the conversation.
- jedi
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
17 years 9 months ago #1959
by jedi
Replied by jedi on topic Re: Call VB Script
hi
call the subroutine CALL.VB.SCRIPT with one argument ie. the script name.
ex CALL CALL.VB.SCRIPT('CLOSEWINDOWS')
call the subroutine CALL.VB.SCRIPT with one argument ie. the script name.
ex CALL CALL.VB.SCRIPT('CLOSEWINDOWS')
Please Log in or Create an account to join the conversation.
- malai
-
- Offline
- Platinum Member
-
Less
More
- Posts: 509
- Thank you received: 11
17 years 9 months ago #1960
by malai
Replied by malai on topic Example please
Can you give us a small example on how it works?
Gain Knowledge From Helping Others|Thanks
Gain Knowledge From Helping Others|Thanks
Please Log in or Create an account to join the conversation.
- jedi
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
17 years 9 months ago #1961
by jedi
Replied by jedi on topic re
lets say we want to close all the windows after authorisation, we can write a small script in T24 Desktop (Tools, Script Designer)
New Script CLOSEWINDOWS
Desktop.ClearAll
commit it to the database.
then we can call this script from any Version auth routine as follows
SUBROUTINE CLEANUP
*
$INSERT I_COMMON
$INSERT I_EQUATE
*
CALL CALL.VB.SCRIPT('CLOSEWINDOWS')
*
RETURN
*
END
New Script CLOSEWINDOWS
Desktop.ClearAll
commit it to the database.
then we can call this script from any Version auth routine as follows
SUBROUTINE CLEANUP
*
$INSERT I_COMMON
$INSERT I_EQUATE
*
CALL CALL.VB.SCRIPT('CLOSEWINDOWS')
*
RETURN
*
END
Please Log in or Create an account to join the conversation.
- T24
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
17 years 9 months ago #1962
by T24
Replied by T24 on topic Re
Can we use this core routine for classic? Coz i tried it with my script it gives error as SUBROUTINE_CALL_FAIL
Please Log in or Create an account to join the conversation.
- jcosta
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 0
17 years 9 months ago #1963
by jcosta
Replied by jcosta on topic VBSCRIPT
No, it uses DESKTOP object, CALL.VB.SCRIPT is just for GUI.
Please Log in or Create an account to join the conversation.
- T24
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
17 years 9 months ago #1964
by T24
Replied by T24 on topic Re
First of all u for ur replies. But i m getting error like 'Cannot Run this application in GUI mode'. My VB script is to send a mail to others.
Please Log in or Create an account to join the conversation.
Time to create page: 0.042 seconds