473,473 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Rewrite time.

Hello,

I'm learnig VB.NET and I want to rewrite some of my old Commodore Pet
programs in VB. I know it's not likely but I'm wondering if there are any old
timers, like myself, who know the Pet, but who are further down the road with
this VB.NET lark.

I'm trying to translate some of the cursor and display control strings,
such as CHR$(245) + CHR$(13) + CHR$(245) + CHR$(15). Of course thae actual
strings aren't like that, they contain embedded characters, but I can't paste
them here.

I also want to know what the VB.NET equivalent of the folloing

POKE 125, 17
POKE 23, N
N=N+1
POKE 24, N
POKE 125, 0

Any help would be greatly appreciated.
Brian
Nov 20 '05 #1
2 2573
Hi,
for CHR$() you can use Chr():

Dim X As Char
X = Chr(13)

But poke is very system dependent, and will not serve the intended
purpose i think.

Cheers
Benny

Old Git wrote:
Hello,

I'm learnig VB.NET and I want to rewrite some of my old Commodore Pet
programs in VB. I know it's not likely but I'm wondering if there are any old
timers, like myself, who know the Pet, but who are further down the road with
this VB.NET lark.

I'm trying to translate some of the cursor and display control strings,
such as CHR$(245) + CHR$(13) + CHR$(245) + CHR$(15). Of course thae actual
strings aren't like that, they contain embedded characters, but I can't paste
them here.

I also want to know what the VB.NET equivalent of the folloing

POKE 125, 17
POKE 23, N
N=N+1
POKE 24, N
POKE 125, 0

Any help would be greatly appreciated.
Brian


Nov 20 '05 #2
Hi, there are no equivalent instructions for POKE (and PEEK?)

May I ask what the instructions do (not POKE, but what you are doing with
POKE)? Then we can offer alternatives.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
"Old Git" <am***@commodore.pet> wrote in message
news:Od**************@TK2MSFTNGP11.phx.gbl...
Hello,

I'm learnig VB.NET and I want to rewrite some of my old Commodore Pet
programs in VB. I know it's not likely but I'm wondering if there are any old timers, like myself, who know the Pet, but who are further down the road with this VB.NET lark.

I'm trying to translate some of the cursor and display control strings, such as CHR$(245) + CHR$(13) + CHR$(245) + CHR$(15). Of course thae actual
strings aren't like that, they contain embedded characters, but I can't paste them here.

I also want to know what the VB.NET equivalent of the folloing

POKE 125, 17
POKE 23, N
N=N+1
POKE 24, N
POKE 125, 0

Any help would be greatly appreciated.
Brian

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: VM | last post by:
I'm about to work on a 'buggy' WIndows C GUI application that was entirely made in C. All the user controls were all hard-coded and the code is pretty hard to understand. The application was made...
1
by: baroque Chou | last post by:
Thanks for the help available on msdn, I have succesful done the rewrite job. But there are 2 problems arise: 1.when I try to rewrite the url from say: www.yoursite.com/beverages.aspx to...
7
by: Stan Canepa | last post by:
I am looking for good documentation to help support rewriting a VB 6 app in Dot Net. I looking for things like VB 6 being unsupported in March 2008, general performance improvements, at what point...
14
by: Stan Canepa | last post by:
This post is mostly for discussion. Why rewrite in .NET? Just a general discussion not related to any specific details. I was just looking to see what reasons developers are looking to, to help...
2
by: Max2006 | last post by:
Hi, I am using a asp.net hosting service and I don't have access to IIS MMC. I would like to implement a URL rewriting service so all urls with shape: http://domainname.com/nnnn.jpeg get...
10
by: not_a_commie | last post by:
I've seen studies before showing that it is better to rewrite code when more than 25% (or whatever) of the code needs to be changed. I can't seem to locate any references for that at the moment. Do...
1
by: Cristisor | last post by:
Hi. I have this problem and I don't know how to solve it. This code that you see bellow is included in 3 web pages and I go through all 3 one after the other. In every situation the status is 0....
1
by: mazdotnet | last post by:
Hi all, I've installed the new Microsoft URL Rewrite Module for IIS 7.0 http://www.iis.net/downloads/default.aspx?tabid=34&i=1691&g=6 on both my laptop (Vista Home Premium) and my desktop...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.