Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stripping slashes out of parameters
Message
From
05/08/2005 07:35:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01038840
Message ID:
01038844
Views:
19
Use ChrTran()
x = "BLUETONE/23/NN"
? ChrTran(x, "/", "")
>I have created a routine to create a PDF report for when our users decide to produce one for a particular fabric. Basically the fabric name is passed as a parameter and used to create the name of the file. The problem is a lot of fabric names have slashes in the name. i.e.
>
>ROGOFF/5466
>BLUETONE/23/NN
>
>The problem I have is I can't save the file as this. Is there anyway I can strip the slashes out of the file. I dont know whether there are 2, 3 or 4 slahes and as to where the position will be In this instance:
>
>ROGOFF5466
>BLUETONE23NN
>
>Many Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform