HP3000-L Archives

September 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Robert Mills <[log in to unmask]>
Reply To:
Robert Mills <[log in to unmask]>
Date:
Thu, 20 Sep 2001 14:24:45 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (52 lines)
Seamus,

As thanks for thanking me, here is something you should be aware of.

The PC user name can contain characters that the HP will not except. Used to
work at a place where the user name was in the format <forename>_<surname>,
i.e. your network name would have been seamus_browne. As you see, this is
longer than the eight character max that the HP will accept, and it also has
an HP invalid character in position 7. If your site allows this then you
will have to modify your code to take this into consideration.

regards,
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Robert W.Mills (Systems Development Manager) |
|Windsong Services, St. Mary Cray, ENGLAND    |
|Tel  : +44 (0)1689 870622 x3005              |
|Fax  : +44 (0)1689 899026                    |
|Email: [log in to unmask]  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

-----Original Message-----
From: Seamus Browne [mailto:[log in to unmask]]
Sent: 20 September 2001 14:46
To: [log in to unmask]
Subject: No more Reflection script logon problem


Thanks to Robert, I did this to grab the significant chunk of MyUserName by
checking for the position of the first chr$(0).


 GetUserName myUserName, numCharsInUserName
    'MsgBox len(Mid$(myUserName,1,Instr(myUserName,chr$(0))-1) )

    ShortUserName = Mid$(myUserName,1,Instr(myUserName,chr$(0))-1)
    'MsgBox ShortUserName


and


 .Transmit "hello " & ShortUserName & ",MGR.XXX,YYY" & cr

Works fine.
Seamus

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2