ASK command problem [delete this post]

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

ASK command problem [delete this post]

Post by townsend » Mon Oct 26, 2015 5:29 pm

Using the ASK command, it looks like I'm getting an extra character more than what was entered.
Last edited by townsend on Sun Nov 01, 2015 11:53 pm, edited 2 times in total.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: ASK command oddity: numtochar(9)

Post by dunbarx » Mon Oct 26, 2015 5:40 pm

Hi.

Not sure what you mean.

Code: Select all

on mouseUp
   ask "How many chars" with "XYZ"
   put the length of it
end mouseUp
I get "3". It makes no difference if you fill out the field by hand.

So when you get this invisible character, what is its charToNum?

Craig Newman

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: ASK command oddity: numtochar(9)

Post by townsend » Mon Oct 26, 2015 5:45 pm

Thanks Craig!

Just ran some isolated test. ASK command is fine.
My mistake. Other code was adding the extra character.

Post Reply