Skip navigation

How to program BASIC arrays in Xcode/Objective-C

383 Views 3 Replies Latest reply: Apr 27, 2012 11:25 AM by TopSteve RSS
TopSteve Level 1 Level 1 (60 points)
Currently Being Moderated
Apr 27, 2012 3:07 AM

First sorry for the spelling I am dislex....


I am just starting out from a background of BASIC and C and are finding some of (LOTS) of the Objective-C strange. 

One problem that might help me on my way would be if someone could tell me how to implement the pseudo program included below in Objective-C.


let min-index=0

let max-index=200

dim a$(max-index)



open data-file

index = min-index


a$(index)=line-input from file

index = index + 1

until EOF

max-index = index


input b$


for index = min-index to max-index

if a$(index) = b$ then

     match$ = "Match found"

next index


print match$



I would like this so that there is a window with a text entry box (input a$)  and a text display box (print match$)



Can any one show me how to do this?


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.