home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!think.com!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!ericom!etlxd10h!etljmme
- From: etljmme@etlxd30.ericsson.se (Jim)
- Newsgroups: comp.lang.pascal
- Subject: Re: Describe that Turbo Pascal function...
- Message-ID: <1992Dec23.121622.3975@ericsson.se>
- Date: 23 Dec 92 12:16:22 GMT
- References: <HEMSTREE.92Dec22085210@mddchh.mddchh.fc.hp.com>
- Sender: news@ericsson.se
- Reply-To: etljmme@etlxd30.ericsson.se
- Organization: Ericsson Telecom AB
- Lines: 43
- Nntp-Posting-Host: etlxd10h.ericsson.se
-
- In article 92Dec22085210@mddchh.mddchh.fc.hp.com, hemstree@mddchh.fc.hp.com (Charles H. Hemstreet IV) writes:
- >
- >I am in the process of porting a turbo pascal (PC) program to HP-UX
- >Pascal. What does the function ... do in Turbo pascal?
- >
- >str
-
- Convert a value to a string, eg: STR(a,b) where a="123" and b is an integer var.
-
- >pos
-
- Returns the position of a substring in a string, eg: POS("A","ABC")=1
-
- >upshift
-
- You mean UPCASE? If so, it shifts a character to uppercase, eg: upcase("a")="A"
-
- >copy
-
- copy a substring from a string, eg: copy("ABCD",2,2) = "BC"
-
- >val
-
- opposite of str, converts string containing digits into value in a variable.
-
- >length
-
- returns the length of a string, eg: length("ABCD") = 4
-
- >
- >Thank you for any help,
- >--
- >Charles
- >
- >-------------------------------------------------------------------------------
- >Charles H. Hemstreet IV ******** h *******
- >Hewlett Packard /\ /\ ******* h *****
- >3404 East Harmony Rd., MS110 /\/ \ /\ / \ ***** hhhh pppp ****
- >Ft. Collins, CO 80525 /\/ \ \/ \/\/ \ **** h h p p ****
- >(303) 229-4471 / \ \ / / \ \ **** h h pppp *****
- >(303) 229-3168 (fax) / \ \ / \ \ ***** p *******
- >hemstree@mddchh.fc.hp.com Mech. Design Division ******* p ********
- >-------------------------------------------------------------------------------
-