data type convertion (OpenInsight 32-bit Specific)
At 04 NOV 2005 08:14:20PM xavier kdna wrote:
Hi forum members, I have again a doubt , this time is very simple, Is there a function that converts string to integer and also integer to string, this is for getting the a number from a edittext and make some calculations and show it on static text, thanks in advance
At 04 NOV 2005 10:09PM dsig _at_ sigafoos.org wrote:
Xavier ..
OpenInsight is a 'string' based (not like C) based language. OI will go from string to numeric and back to string and you don't have to worry ..
so it is possible to do
A=THIS IS A TEST'
A=2
B=A+1
but if you do
A=THIS IS A TEST'
B=A+1
you will get a nasty error like
NON-NUMERIC WHERE NUMERIC IS REQUIRED
IF you need to connect to an external (to oi) process (calling one of the window dlls) then you can create (or add to the many) prototype definitions.
Hope this all makes sense to you .. i am definitly NOT a 'propeller head' but there are plenty around to help out if you have a problem.
DSig