vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, I want to replace in a table every driveletter "c:\" to "\\server\c\" But I do not now, why it doesn't work with the REPLACE funtion. Thanks Daniel -- Nachrichten an nospam [at] dseichter.de werden sofort gelöscht!!! Für E-Mail Kontakt bitte daniel [at] dseichter.de benutzen. Messages to nospam [at] dseichter.de will deleted immediately!!! To contact me please use daniel [at] dseichter.de. |
| |||
| "Daniel Seichter" <nospam@dseichter.de> wrote in news:c8v0uo$gok$1 @news.dtag.de: > Hello, > > I want to replace in a table every driveletter "c:\" to "\\server\c\" > > But I do not now, why it doesn't work with the REPLACE funtion. > > Thanks > > Daniel Potentially the '\' is a problem. Try 'c:~\' and '~\~\server~\c' in the replace function. This works for me: DEFINE VARIABLE cString AS CHARACTER INITIAL "C:\" NO-UNDO. cString = REPLACE(cString, "c:~\", "~\~\server~\c"). MESSAGE cString VIEW-AS ALERT-BOX INFO BUTTONS OK. HTH Kevin |
| ||||
| Hello Kevin, > Potentially the '\' is a problem. Try 'c:~\' and '~\~\server~\c' in the > replace function. This works for me: > > DEFINE VARIABLE cString AS CHARACTER INITIAL "C:\" NO-UNDO. > > cString = REPLACE(cString, "c:~\", "~\~\server~\c"). > > MESSAGE cString > VIEW-AS ALERT-BOX INFO BUTTONS OK. Thank you, it works fine now! Wish you a nice day Daniel Seichter -- Nachrichten an nospam [at] dseichter.de werden sofort gelöscht!!! Für E-Mail Kontakt bitte daniel [at] dseichter.de benutzen. Messages to nospam [at] dseichter.de will deleted immediately!!! To contact me please use daniel [at] dseichter.de. |
| Thread Tools | |
| Display Modes | |
|
|