3 Replies Latest reply: Apr 27, 2012 11:25 AM by TopSteve
TopSteve Level 1 Level 1 (65 points)

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)

match$="FAUSE"

 

open data-file

index = min-index

repate

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?