Jump to content


Click the link below to see the new game I'm developing!


Paul Blew

Member Since 30 Jun 2000
Offline Last Active Oct 17 2013 07:26 AM
-----

Posts I've Made

In Topic: PROIV 6.2 Production Release

27 April 2009 - 07:13 AM

Not when it's written in javascript

Correct me if I'm wrong, but isn't a tree control an activex control?


In Topic: SQL_DBNAME

12 July 2007 - 07:43 AM

Hi Vol

I don't know whether it's possible to retrieve SQL_DBNAME using &$@~SQL_DBNAME, but if it isn't the following Oracle SQL may help.

SELECT sys_context('USERENV','DB_NAME') FROM DUAL;


Other parameters for sys_context are listed at: http://www.techonthe...sys_context.php

Hope this helps.

Paul

In Topic: 2 Issues with Time

11 January 2007 - 08:37 AM

Kelvin,

If you're in the GUI world, how about writing an ActiveX control to show the clock? It could either display the client clock using Windows APIs or possibly show the server's clock by firing an event every second which could be answered by a PRO-IV logic which sets the time shown by the control according to the current value of @TIME.

Hope this helps.

Paul

In Topic: Incremental data

05 January 2007 - 08:45 AM

Hi Ajaym,

Here's a template for a SQL Server trigger. The SET NOCOUNT lines are essential - without them the PRO-IV session will lock up the second time the trigger fires due to a bug in ODBC.

[codebox]
IF EXISTS (SELECT name FROM sysobjects WHERE name = '<TRIGGER_NAME>' AND type = 'TR')
DROP TRIGGER [<TRIGGER_NAME>]
GO

CREATE TRIGGER [<TRIGGER_NAME>] ON [dbo].[<TABLE_NAME>]
FOR INSERT, UPDATE, DELETE AS
DECLARE
@NEW_VAR1 VARCHAR(10),
@OLD_VAR2 VARCHAR(10)
BEGIN
SET NOCOUNT ON

SELECT @NEW_VAR1 = [<COLUMN_NAME>]
FROM [inserted]

SELECT @OLD_VAR1 = [<COLUMN_NAME>]
FROM [deleted]

-- your trigger processing goes here

SET NOCOUNT OFF
END
GO
[/codebox]


Hope this helps

Paul

In Topic: Calling JAVA from PROIV

05 October 2004 - 07:57 AM

Siddharth,

From the first line of the first page of the Java JNI Docs:

Java Native Interface (JNI) is a standard programming interface for writing Java native methods and embedding the Java virtual machine into native applications.


I'm sure you could build an interface that you could access from PRO-IVs LINK command. B)

I think you're going to need a C guru though. :(

Regards,
Paul

Click the link below to see the new game I'm developing!