First of all try the normal c syntax for casts. The documentation has a list
of these but there are actually some undocumented possibilities.
$anInt = (int)$aString;
Second: Lite supports both the c if/else construct and the while construct.
Any case statement has an equivalent if/else construction. A for loop has an
equivalent while loop construction. These conditional statements seem
require a comparison operator. In other words if($boolean) may not work.
Regards Richard
Rajat Tiwary wrote:
> Hi Friends .. and Hello u there at Hughes if u read
> this !!!!!
>
> Now how in the world can i TYPE CAST char values to
> integer ...
> we all know that over CGI .. using GET and POST method
> only char values are sent .. now suppose am processing
> a form ( form.html ) and the value is numeric which is
> to be processed .. when the submit button is pressed
> .. it calls an html file which is nothing but a file
> with embedded lite script .. ( proccess.html )
>
> now with this numeric value which is passed over CGI
> to process.html .... i want to increment it 10 times
> and display ... but now this value is char in nature
> .. i do'nt have a typecasting function from char to
> int in LITE .... so how do i do it ?????????
>
> Moreover LITE lacks a feature which usually every
> language has ... a decision making loop like a case
> structure in C.
>
> How should one go about overcomming this problem!!!!
>
> am desperate ... PLEASE .. if someone can help please
> answer back ....
> my whole project stands on this .. ?????
>
> Thanx
> Rajat
> New Delhi, India
>
> __________________________________________________
> Do You Yahoo!?
> Thousands of Stores. Millions of Products. All in one place.
> Yahoo! Shopping: http://shopping.yahoo.com
> -------------------------------------------------------------------------
> To unsubscribe, go to http://www.Hughes.com.au/extras/email/
-------------------------------------------------------------------------
To unsubscribe, go to http://www.Hughes.com.au/extras/email/
This archive was generated by hypermail 2b30 : Mon Mar 04 2002 - 09:04:03 EST