Use 'Scan From String' function from the 'STRING' functions menu:
[Image]
-Franz
hotoo@my-deja.com schrieb:
> I had get date string: "1/14/2000" , > Now I want to get the integer numbers: Year=2000, Month=1 and Day=14 > Help me! > > ---A newbie > > Sent via Deja.com http://www.deja.com/ > Before you buy.
On Fri, 14 Jan 2000 10:59:51 GMT, hotoo@my-deja.com wrote: >I had get date string: "1/14/2000" , >Now I want to get the integer numbers: Year=2000, Month=1 and Day=14 >Help me!
have a look at the string function "Scan From String". Set the format string to "%d/%d%d" Make the function to have three outputs terminals. I would also advise to connect a dummy integer to the three default terminals. To get some error checking on the conversion check the error out terminal.
Here's a VI what will do the job. Scan from string is very powerfull for this kind of jobs.
Happy wirering, Roger
hotoo@my-deja.com heeft geschreven in bericht <85mvj3$kr1$1@nnrp1.deja.com>... >I had get date string: "1/14/2000" , >Now I want to get the integer numbers: Year=2000, Month=1 and Day=14 >Help me! > >---A newbie > > >Sent via Deja.com http://www.deja.com/ >Before you buy.