🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #585

Re: Pascal -> Visual Basic 4

#585
From: Stephen Posey
Date: Sun, 09 Nov 1997 00:00
28 lines
1920 bytes
On 5 Nov 1997 23:03:09 GMT, "jdm"
<jdm1intxDIE_SPAMBOT_DIE@airmail.net> wrote:

>John Rickard <saskan@worldnet.att.net.DONTSPAMME> wrote in article
><63qonl$r0p@bgtnsc03.worldnet.att.net>...
>> i am coverting a pascal source i did a while back to vb4 so i can use
>> it in my program.
>> i have totally coverted everything except 1 thing.
>> below is the pascal part i am having trouble comvertin to vb4.
>> 
>>  inc(l, Ord(s[i]) + (i * i))
>
>Visual Basic has neither an Inc() function or an Ord() function.  Ergo,
>you will have to write your own.  
>
>jdm

VB has no Inc() function true, but it does have Asc() which is the
equivalent of Pascal's Ord() function when applied to characters; the
following should produce the intended result:

 l = l + Asc( s(i) ) + ( i * i )

HTH

Stephen Posey
slposey@concentric.net
Technical Details
Message-ID: <3464fda6.16273435@news.concentric.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <63qonl$r0p@bgtnsc03.worldnet.att.net> <CDEE44D8B50A9A09.E53701FC15417D78.AC45F1A94053FDAB@library-proxy.airnews.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111659,d4e4032bb8f921fa
X-Google-Attributes: gid111659,public
X-Google-Thread: 10c950,d4e4032bb8f921fa
X-Google-Attributes: gid10c950,public
X-Google-Thread: 10261c,d4e4032bb8f921fa
X-Google-Attributes: gid10261c,public
X-Google-Thread: 108ebd,d4e4032bb8f921fa
X-Google-Attributes: gid108ebd,public
X-Google-Thread: 10ab99,d4e4032bb8f921fa
X-Google-Attributes: gid10ab99,public
X-Google-Thread: 110e3b,d4e4032bb8f921fa
X-Google-Attributes: gid110e3b,public
From: slposey@concentric.net (Stephen Posey)
Subject: Re: Pascal -> Visual Basic 4
Date: 1997/11/09
Message-ID: <3464fda6.16273435@news.concentric.net>
X-Deja-AN: 287991348
References: <63qonl$r0p@bgtnsc03.worldnet.att.net> <CDEE44D8B50A9A09.E53701FC15417D78.AC45F1A94053FDAB@library-proxy.airnews.net>
Reply-To: slposey@concentric.net
Organization: Concentric Internet Services
Newsgroups: alt.lang.basic,borland.public.turbopascal,comp.lang.basic.visual.misc,comp.lang.pascal.ansi-iso,comp.lang.pascal.borland,comp.lang.pascal.misc