>> I think it would be nice to have the zhbgetvar procedure have the
ability to convert an html variable to numeric

That can't really happen until IBM upgrades RPG to allow overloading on
return values and/or parameters.  Right now the compiler validates that the
return type of the function matches the variable it is being assigned to so
assigning a character function to a numeric can't be done.

If you are on V5R3 you should be able to do this though:

numVal = %Dec( zhbgetvar('name'): length: decPos);

Error handling won't be pretty though.

Jon Paris
Partner400

www.Partner400.com
www.RPGWorld.com




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/wbFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Easy400Group/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to