Alternade words: Difference between revisions
Content added Content deleted
m (→{{header|FutureBasic}}: fix output tabs) |
m (→{{header|FutureBasic}}: search on background thread) |
||
Line 1,411: | Line 1,411: | ||
void local fn DoIt |
void local fn DoIt |
||
CFArrayRef words = fn Words |
|||
⚫ | |||
⚫ | |||
text,,,,, 80 |
text,,,,, 80 |
||
dispatchglobal |
|||
CFArrayRef words = fn Words |
|||
CFStringRef wd, wd1, wd2 |
|||
long length, i |
|||
for wd in words |
|||
length = len(wd) |
|||
if ( length >= 6 ) |
|||
wd1 = @"" : wd2 = @"" |
|||
for i = 0 to length-1 |
|||
if ( i mod 2 == 0 ) |
|||
wd1 = fn StringByAppendingString( wd1, mid(wd,i,1) ) |
|||
else |
|||
wd2 = fn StringByAppendingString( wd2, mid(wd,i,1) ) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
dispatchmain |
|||
⚫ | |||
dispatchend |
|||
end if |
end if |
||
⚫ | |||
⚫ | |||
print wd,wd1,wd2 |
|||
end if |
end if |
||
next |
|||
dispatchend |
|||
next |
|||
end fn |
end fn |
||