Hi,
There are several solutions...
If you're using LabVIEW 7.x, you can create an event structure and check
"key down", "key repeat" and "value change" to do the filtering.
In LabVIEW <7, you can do this in a while loop, but it's ugly.
Perhaps the easiest way it not to use a string control, but a path control.
In LabVIEW >6, you can have a browse button as a bonus. The user can now
browse to different paths, so if you don't want this, you still have to
check the result.
Regards,
Wiebe.
"Yves" wrote in message
news:50650000000800000056EC0000-1079395200000@exchange.ni.com...
> Hi,
> I built an user interface to allow free filenames to save data.
> unfortunately some user enters "/" and ":". those characters are
> illegal in windows environment.
when the program tries to save the
> file either nothing happens and all datas are gone or an error message
> occurs.
> how can I prevent this. do I really have to check the filename to
> detect any possible illegal characters on it? or is there an easier
> way.
>
> thanks for the help
> yves