Re: [U2] Selecting a List

2011-06-08 Thread Greg Coelho
Hi All, Again, I need a little help. The following PROCEDURE LINE works just fine. In this case I'm just inserting the variable V.CALENDAR.YEAR to complete my file suite and I am going after 2 alphanumeric records ('P2021422' 'P2083158'). PROCEDURE LINE SELECT GLA.:V.CALENDAR.YEAR: WITH

Re: [U2] Selecting a List

2011-06-08 Thread George Gallen
VL.JS.LIST.VAR1 = ':CONVERT (@VM,' ',VL.JS.LIST.VAR1):' Will the following work to get rid of all the @VM's (Not just the first) VL.JS.LIST.VAR1 = ':CONVERT(@VM,REUSE( ),VL.JS.LIST.VAR1):' George -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-

Re: [U2] Selecting a List

2011-06-08 Thread Wols Lists
On 08/06/11 16:47, Greg Coelho wrote: Hi All, Again, I need a little help. The following PROCEDURE LINE works just fine. In this case I'm just inserting the variable V.CALENDAR.YEAR to complete my file suite and I am going after 2 alphanumeric records ('P2021422' 'P2083158').

Re: [U2] Selecting a List

2011-06-08 Thread Glorfield, Gordon
What about SWAP? SWAP str.expr1 WITH str.expr2 IN var The UniBasic SWAP command replaces all occurrences of one substring with a second substring. The search string does not have to be the same length as the replacement string. SWAP supports mulitbyte languages. -Original Message-

Re: [U2] Selecting a List

2011-06-08 Thread Bob Woodward
I'm assuming this is in a basic program and you want to use CHANGE instead of CONVERT. In Unidata, anyway. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wols Lists Sent: Wednesday, June 08, 2011 9:00 AM To: U2

Re: [U2] Selecting a List

2011-06-08 Thread Jeff Schasny
EREPLACE function? SYNTAX

Re: [U2] Selecting a List

2011-06-08 Thread Greg Coelho
Guys, As always a number of great options! I was able to throw in SWAP with the least effort and it's working great! Thanks again, Greg From: Bob Woodward bob_woodw...@k2sports.com To: U2 Users List u2-users@listserver.u2ug.org Date: 06/08/2011 12:06 PM Subject:Re: [U2]

Re: [U2] Selecting a List

2011-06-08 Thread Mike Randall
CHANGE works in UV too. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bob Woodward Sent: Wednesday, June 08, 2011 12:07 PM To: U2 Users List Subject: Re: [U2] Selecting a List I'm assuming this is in a basic

Re: [U2] Selecting a List

2011-06-08 Thread u2ug
What system ? this works fine in UV. 001 x=@VM:@VM:@VM 002 crt x 003 crt convert(@VM,x,x) 004 end RUN DEV.BP X ²²² xxx -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Greg Coelho Sent: Wednesday, June 08,

Re: [U2] Selecting a List

2011-06-08 Thread Greg Coelho
Jeff, Thanks for the info on EREPLACE! It looks like this would allow me to replace a specified number of the substrings - something I've been wrestling with on another assignment... Thanks again, Greg From: Jeff Schasny jscha...@gmail.com To: U2 Users List

Re: [U2] [UniData] UniRPCD

2011-06-08 Thread Shin.Tanaka
Nice. Thanks for the info. I'll find the one you mentioned and try it. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Doug Averch Sent: Tuesday, June 07, 2011 7:19 PM To: U2 Users List Subject: Re: [U2] [UniData]

[U2] Logical error

2011-06-08 Thread sathish
Hi, I am having problem in using escape sequence in UniBasic coding.I cant use the following command in UniBasic code. Command: echo -e \033[44m. If i use this command in UniBasic code it shows error for using \.So can you suggest any solution for using this command in UniBasic coding.

Re: [U2] Logical error

2011-06-08 Thread Dan McGrath
In UniBasic, you could just do: CRT CHAR(27):[44m -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of sathish Sent: Wednesday, 8 June 2011 11:24 PM To: u2-users@listserver.u2ug.org Subject: [U2] Logical error Hi,

Re: [U2] Logical error {Unclassified}

2011-06-08 Thread HENDERSON MIKE, MR
Sathish, Or, if you want to make life a little easier for the next poor guy who gets to maintain the code: ESC = CHAR(27) MeaningfulNameForString = [44m ScreenCommand = ESC:MeaningfulNameForString CRT ScreenCommand