Hi there
In this little program I declare a varible (ErrotType) as a local to the sub, but my data transfered to the sub when I call it, is not reaching my "s" varible....
Did I misunderstud something or ????
My intention is to pass "STS" to "s"
Public s = String * 5
Sub NewSub(ErrorType As String * 5)
s=ErrorType
EndSub
'Main Program
BeginProg
Scan (1,Sec,1,0)
Call NewSub("STS")
NextScan
EndProg
This is wrong: Public s = String * 5
Should be Public s as String * 5
That did fix the problem :-)
Thanx anyway
The code listet above was just a simple example of what I was doing.
In my "big" program it dosn't work. I tried using FP2 as type for my paramter. That make it work.
So my question is: Are there differentes or "hidden" rules in what type you are parsing ?
Hi,
as far as i understand the datatype FP2 is only a type for the output of a datatable.
For "processing" only the types Float,Long, Boolean and String can be used.
Try to define your parameter "as Float"
Hi Artmann
I thought that FP2 was default when not declaring a specific type. I was wrong. It is float that is default and therefor I tried what you mentioned allready :-)