English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 02 April 2017, 23:28   #1
volvo_0ne
Registered User

 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 315
Why doesn't this work?

Code:
A$="abcde"

For I=1 To Len(A$)

N=Asc(Mid$,I,1)

Inc N

Mid$(A$,I,1)=Str$(N)

Next I

Print A$
Surely the output should be
"bcdef"

but I get either Type Mismatch (at line 3)

or

Syntax error if I space the lines out with blank lines.

Is it my logic which is wrong, or is this a bug?

TIA

V1
volvo_0ne is offline  
Old 03 April 2017, 00:50   #2
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,637
Your syntax is wrong. I'll leave it to you to compare line 3 with line 5.
idrougge is offline  
Old 03 April 2017, 15:18   #3
volvo_0ne
Registered User

 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 315
Cheers, for the life of me I couldn't see it lastnight, as soon as I read your reply it seemed so obvious.

Thanks again
volvo_0ne is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
FS-UAE doesn't work EUX support.FS-UAE 3 09 February 2017 17:56
0-9 filter doesn't work well Another World HOL data problems 14 01 December 2008 15:48
Entity doesn't work Another World support.Games 10 14 May 2007 11:49
Flashback doesn't work ???!!!! Another World support.Games 8 27 April 2007 21:32
Mouse doesn't work MainVoid support.WinFellow 10 22 April 2005 19:26

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:11.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.05673 seconds with 13 queries