David,
UniData has a FOR or WAITING clause on the INPUT statement which lets you do
exactly this. I'm not sure what the UniVerse equivalent would be.
Certainly you wouldn't normally want to be in a tight loop looking for input
with INPUT,-1 or INPUTIF, or blocked by a SLEEP when input was
Does UV support the WAITING clause on the INPUT statement?
In UD you can do:
INPUT VAR WAITING 30 ELSE
...
END
Larry Hiscock
Western Computer Services
-Original Message-
From: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Norman, David
Hi, the simple answer is no..but there is a way...on UNIX.
You can open the device using OPENSEQ and read the input using READBLK,
this allows you to use the TIMEOUT command.
We have a very clever man that did this and it works without killing the
machine.
Les Sherlock Hewkin
Project
David
try the following:
FUNCTION TimedInput(Period, Value)
$OPTIONS PICK
Now = Time()
Loop
Input n,-1
Until n Or ((Time() - Now) Period) Do
Nap 50
Repeat
If Not(n) Then
Result = @False
End Else
Input Value
Result = @True
End
RETURN(Result)
as in:
PROGRAM TestInput
$OPTIONS PICK
We use the waiting or...
Sample code:
147:WAIT.TIME = 0
148:LOOP
149: IF SYSTEM(10) OR SYSTEM(14) THEN
150: INPUT RTN.VAL,31999 _ ELSE RTN.VAL=; TIMEOUT=1
151: WAIT.TIME=REFRESH+1
152: END ELSE
153: RTN.VAL=
154: SLEEP 1
155:
I Tried to write something similar, but kept getting random program lockups or
universe
bombouts. What I was trying to do was as letters were being typed, fine tune
a listing
to the right. Also, I tried to make a full screen editor, allowing the
arrows to allow
the user to move from
Hi all,
UV10.2.7
HPUX 11.23
Does anyone know if it is possible to use IBM WebSphere Development Studio
Client Tool to develop web services for Universe?B I've been trying to use
the Web Services Developer but cannot seem to create all of the necessary
nesting levels required by the client
It is very easy to write an asp.net web service that connects to unidata
using uniobjects.net - hey i have even included some code below for you to
look at
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports IBMU2.UODOTNET
' Example web service by
Hey, thanks a lot for taking the time to offer this.
Now for some follow up questions.
In Universe, a basic example of my subroutine would look likeb
B
subroutine pricing(cust,items,qtys,prices)
B7 B B B B B B B B pass in cust,items, and qtys
B7 B B B B B B B B return prices
To answer your question about creating WSDL, etc, have a look at
the video I put on our site for how to create and consume web
services:
nospamNebula-RnD.com/products/gallery.htm
The example uses mv.NET for connectivity but you can easily
substitute UO.NET or any other connectivity pipe. Just
Thanks to all for the responses; yes the UniData INPUT ... WAITING looks
like it would be great but it doesn't exist on UniVerse.
I'm still battling with the basic problem of trying to intercept a
partially entered string after a certain time. If typing has started but
Enter hasn't been pressed to
George,
I've run into that before - it's probably network latency. If there's
nothing in your keyboard buffer, your routine will bail. If a
multi-character keystroke gets broken between packets, that can happen.
Experiment with a delay before the INPUT TEST,-1 to allow the
There was a discussion way back in 2004 about this. Keith Johnston wrote
and published his UV/BASIC solution on PickWiki...
http://www.pickwiki.com/cgi-bin/wiki.pl?InputWait
Posting/Thread:
http://www.mail-archive.com/u2-users@listserver.u2ug.org/msg00891.html
Regards,
David
-Original
George,
Email me tomorrow at charlien at inlandtruck.com and remind me and I'll
share some code with you that worked extremely well on Universe, and now on
Jbase - it's almost identical. I almost never get those straggling
characters anymore.
Charlie
Charlie Noah wrote:
Great Stuff!B Thanks Tony!
I didn't see anything about the wsdl in the video though.B However, I am
cross-eyed from working until 1am this morning followed up by a long day at
work and 3 hours of commute timeB so it's real possible that I just plain
missed it.
I'll have another look with
Here's my hastily hacked together solution, it allows 5 seconds for the
user to enter a string. It grabs a single character at a time and builds
up a string - you need to cater for special characters manually, I've
coded for enter and backspace, you could just discard any others that
are below
From: iggchamp
I didn't see anything about the wsdl in the video though.
Glad the stuff on our site helps!
You saw in the video how easy it is to create a web service from
Visual Studio. The beauty of it is that you never need to see
the WSDL. Many of our colleagues spend time manually
17 matches
Mail list logo