473,320 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Getting around the percent sign.

This has been solved

I am passing a variable that needs to be evaluated with a print command. An example of my variable may look like this "variabl%e"

I understand that the best way to get around the percent problem would be to simply add another percent sign to the variable and then it would evaulate out to one percent.

Is there an option in the print command printf that will handle this without the need of adding the extra percent? Also, are there any other operators that will give similar trouble when using the printf command?

If not, what would be the quickest way in which I could add the extra percent sign into the variable on the fly, and return the variable with the newly added percent.
Jan 16 '12 #1

✓ answered by RonB

Your explanation of what you need doesn't make much sense.

Is "variabl%e" the name of your variable, or its value?

What type of variable are you referring to, a scalar, an array, or a hash?

Please post your code so we can see what you're doing and explain what you want it to do vs what it it doing.

1 2154
RonB
589 Expert Mod 512MB
Your explanation of what you need doesn't make much sense.

Is "variabl%e" the name of your variable, or its value?

What type of variable are you referring to, a scalar, an array, or a hash?

Please post your code so we can see what you're doing and explain what you want it to do vs what it it doing.
Jan 16 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Joey Martin | last post by:
I am passing a sql string thru my querystring for the next page to capture. example: www.xxxxxxxx.com/index.asp?str=select * from table where name like '%doe%' Passing a basic string works...
3
by: Bryan | last post by:
I've been messing around with a C++ application on Xbox, and have been encountering problems with my objects getting garbage collected when they go out of scope, but before I'm actually done using...
5
by: Mike Murray | last post by:
Hi I have the following issue. I have a character that is return by a SQL Server database "É" to be precise, the issue is that when I store character in a .net string variable my understanding...
1
by: Alan Lane | last post by:
Hello world: I'm having trouble finding how to escape the percent sign ("%") from a SQL query so that it will show up in an Access report. Here's my SQL string ... '--Build SQL String...
13
by: stephen | last post by:
Hi all. How do I escape the "%" sign in a print statement so that it prints? Thanks. Stephen
0
by: mseeger | last post by:
My concrete problem is this (it is a bit special, but there may be other instances of it): I'd like to create a class for vectors (say: Vector), exporting math. methods, say v.foo(...). I'd like...
1
by: Bostonrose | last post by:
I need to use the % per cent sign as the character not words in a title and I need to bold it but nothing I try seems to make it bold. What am I doing wrong? Thanks, bostonrose
2
by: Smartin | last post by:
Using A2003. I tried to query for records that contain a trailing '%' symbol in a certain field but was unable to get this to work. Knowing % is a wildcard character I tried substituting the...
1
by: asedt | last post by:
So i whant to write (E) in a cell, and it transform to the EUR-sign. Tryed changing the formating to Text, it syais it will show as etered but is don't, it still transform to EUR-sign. Plz help.
9
by: MZimmerman6 | last post by:
I am trying to write a program that reads through a word document, examines tables, copies their contents to the clipboard and saves them into lists of lists: List<List<String>> and also one...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.