Replacing characters

For questions about using Classic.

Post » Sat Feb 28, 2009 3:55 pm

Their is something weird happening with this code. If you remove some of the Conditions under the comment "Replace characters" and "End convertion" the application will change the Variable "Convertion" to "Done", as it should do. But when i keep them all it doesn't work. I'm sure it's just something Ive done, but please have a look.
Ive only been using MMF2-DEV before, so I'm pretty new to Construct.

Also, why can you only use three parameters with "find"? It would be better if you could use as many as you wanted too.

The Code:

Source
http://www.2shared.com/file/4974349/da1cc242/MyApp.html

[code:1e6jpfvb]//Start convertion

ButtonStartConvertion: 14 On ButtonStartConvertion clicked
System: 0 global('Convertion') Different to "On"
> SystemSet global variable 'Convertion' to "On"

//Replace characters
System: 0 global('Convertion') Equal to "On"
> EditBoxSet text to replace(EditBox 0 , "a", "@")

System: 0 global('Convertion') Equal to "On"
> EditBoxSet text to replace(EditBox 0 , "b", "#")

System: 0 global('Convertion') Equal to "On"
> EditBoxSet text to replace(EditBox 0 , "c", "")

System: 0 global('Convertion') Equal to "On"
> EditBoxSet text to replace(EditBox 0 , "d", "%")

System: 0 global('Convertion') Equal to "On"
> EditBoxSet text to replace(EditBox 0 , "e", "&")

System: 0 global('Convertion') Equal to "On"
> EditBoxSet text to replace(EditBox 0 , "f", "/")

System: 0 global('Convertion') Equal to "On"
> EditBoxSet text to replace(EditBox 0 , "g", "!")

System: 0 global('Convertion') Equal to "On"
> EditBoxSet text to replace(EditBox 0 , "h", "?")


//End convertion
System: 0 EditBox 0 .Text Different to find(EditBox 1 , "a","b")
System: 0 EditBox 0 .Text Different to find(EditBox 1 , "c","d")
System: 0 EditBox 0 .Text Different to find(EditBox 1 , "e","f")
System: 0 find(EditBox 0 , "e","f") Different to find(EditBox 1 , "g","h")
> SystemSet global variable 'Convertion' to "Done"[/code:1e6jpfvb]
B
1
G
4
Posts: 1
Reputation: 1,027

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests