How about
Sgn(CDbl(TextBox1.Text))
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"TJF" wrote in message
...
What a shame
My problem is I have numx as Textbox and then this:
If Sgn(num1) = -1 Or Sgn(num2) = -1 then
dosnt work so only way for me is:
num1_new = CLng(num1)
num2_new = CLng(num2)
If Sgn(num1_new) = -1 Or Sgn(num2_new) = -1 then
is that?
"Frank Kabel" píse v diskusním príspevku
...
Hi
AFAIK it is not possible to change the variable's data type during
runtime
Frank
TJF wrote:
Looks like I have problem with data declarations.
Do you know how can I change data declaration?
I know this
new = CDbl(old)
but I need something like this:
old = CDbl(old)
...but this of course dosnt work
is there something like this
old = set as double