Many thanks for taking the time to look into this. Reassuring to know.
Time for a new iPad, perhaps?
Anyone want to get me an early birthday present? ;-)
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by Wumfa150
-
RE: Three letter word before "is" crashes the app?
-
Three letter word before "is" crashes the app?
Can anyone confirm if I have found a bug, please?
Enter this simple text:
print "third and is"
Now place cursor immediately before the word "is" and attempt to type the word "for" followed by a space
Does it crash? -
RE: Three letter word before "is" crashes the app?
...still the same problem. Maybe ios5 or ipad1 related?
If I do it the otherway round and put the space in first then the text before the space it's ok. Weird. -
RE: Three letter word before "is" crashes the app?
No jailbreak. Just ipad1 iOS 5.1.1 16gb
I'll try a hard reset and see if that fixes it -
RE: Three letter word before "is" crashes the app?
Follow up-
Seems any word of 3 or more characters followed by a space will crash the app:print "abc is"
Cursor before "is" then any 3 or more letters followed by a space does it too.
-
RE: Substitute for slice function
Think I've just found my fix.
Having been learning lua simultaneously as python I have been referencing as string[start:length] where I should be using string[start:end] not realising that if start and end are the same it is null.
Apologies for my dumbness -
Substitute for slice function
I'm new to python and the iOS app but I have an application requirement.
I want I extract a single character from a string and have been led to understand I need to use the slice function, ie string[a:b] but after a quick search I find it can not be done in the iOS app.
Apologies if this has been covered but I wasn't sure how to search the forum for this.
Thanks in advance -
RE: Substitute for slice function
Thanks for the help. Your code worked fine. I must be writing the script incorrectly-
print "start..."
testword = "abcdefghijklmnop"
partstring = testword[3:3]
print "testword is "+testword
print "partstring is "+testword[3:3]
print partstring
print ("got:"+partstring+ " from "+testword)
print "done"Gives me the following (including the blank 4th line)-
start...
testword is abcdefghijklmnop
partstring isgot: from abcdefghijklmnop
doneAs I said, total newbie, so thanks for your patience with me