before posting my problem i looked for a solution in the forum but I didn't find it, so here I am to ask you an hand..
Code: Select all
title$ = "Requester!"
body$ = "Inserisci un numero"
def$ = "ciao"
a$, ok = StringRequest(title$, body$, def$, #ALL,0,FALSE)
If a$ > "5"
DebugPrint("Il numero che hai inserito non é maggiore di 5")
Elseif a$ < "5"
DebugPrint("Il numero inserito é maggiore di 5")
Else
DebugPrint("Il numero inserito é uguale a 5")
EndIf
That's the code.. I would like to understand why the program, once compiled, always told me that the number that I inserted is always bigger than five (>), that's the first question.
The second question is:
Why, if I put #NUMERICAL, instead of #ALL, the compiler reports me an error to this line, telling me to read the documentation?.. the line is:
Code: Select all
a$, ok = StringRequest(title$, body$, def$, #ALL,0,FALSE)
a$ = StringRequested(title$, body$,def$)
and the compiler tells me that I am trying to compare number with string..
Shouldn't be Hollywood able to convert string to number and viceversa and so be able to compare them?
Thanks Davide,