09-08-2005 03:47 PM - edited 09-08-2005 03:47 PM
Message Edité par Jean-Pierre Drolet le 09-08-2005 04:49 PM
LabVIEW, C'est LabVIEW
09-08-2005 04:28 PM
09-09-2005 07:11 AM
09-09-2005 11:56 AM - edited 09-09-2005 11:56 AM
Yes, the user should not be burdened with the task of proper formatting, the program should do its best to extract the data from the dirty string.
(I am always annoyed by e.g. web fields for the credit card # that state "no spaces" or similar. Any code should be able to strip spaces from a CC #!)
Anyway, I prefer "scan strings for tokens". Here you can give a list of all possible separators and consecutive seperators are contracted by default. I this case, you would use separators " " and ",", but nothing prevents you from listing every ASCII value except "-" and 0..9. Expand as needed. A simple example is attached (LAbVIEW 7.1).

Message Edited by altenbach on 09-09-2005 11:14 AM
09-09-2005 01:57 PM - edited 09-09-2005 01:57 PM


Message Edited by altenbach on 09-09-2005 12:00 PM
09-09-2005 06:50 PM