Precisely Speaking
February 08, 2012, 02:16:38 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Unusual DATA problem  (Read 775 times)
Tom Pellitieri
Rock Star
*****
Posts: 166


Tom Pellitieri - Toledo, Ohio


« on: August 03, 2010, 06:20:25 AM »

I ran into a problem with a fairly standard process that I thought I should share.

We have a screen that lists new user names for update in a MV field.  When you highlight the name and press F5, it calls a process to DATA the name as the key for the maintenance screen.  Effectively, the /PD.P has this code:

LOCAL NEW.USER
NEW.USER = @RECORD<1,@CNT>
DATA NEW.USER
EXEC "I*USERS*MAINT"

Today, one new name just wouldn't go in.  It turns out that the problem was with the data.  The name was formatted as "myname@1400"

I determined that the problem was the "@14" - it appears that SB+ translated this to an Edit key.  Since @14 is the code for Escape, the maintenance screen just quit before any work could be done.  I was able to manually enter the item, but the DATA statement really didn't work well at all.


--Tom
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1524



WWW
« Reply #1 on: August 03, 2010, 06:23:23 AM »

Wow.  I've never seen that before but you're right, the @ probably got interpreted by SB+.  Did you try generating code for the screen to see how the @ signs are handled in data stacks?
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!