English Amiga Board


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

 
 
Thread Tools
Old 03 April 2017, 00:28   #1
volvo_0ne
Registered User

 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 248
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  
AdSense AdSense  
Old 03 April 2017, 01:50   #2
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,076
Your syntax is wrong. I'll leave it to you to compare line 3 with line 5.
idrougge is offline  
Old 03 April 2017, 16:18   #3
volvo_0ne
Registered User

 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 248
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  
AdSense AdSense  
 


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 18:56
0-9 filter doesn't work well Another World HOL data problems 14 01 December 2008 16:48
Entity doesn't work Another World support.Games 10 14 May 2007 12:49
Flashback doesn't work ???!!!! Another World support.Games 8 27 April 2007 22:32
Mouse doesn't work MainVoid support.WinFellow 10 22 April 2005 20: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 08:12.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.14216 seconds with 14 queries