473,324 Members | 2,370 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,324 software developers and data experts.

string concatenation

Hi,

I am using the command Form to create a string following a specific format, but g++ complier returns a error message saying that Form is not declared in the scope. Here is what I did:

fn1 = Form("%.6d_%.4d_F%.4d.gz",part1,part2,evnt1);

part1, etc has been defined in the previous part of the code. So what should I do?

Joseph
Jul 31 '08 #1
6 1328
Brosert
57
is "Form" a function that you have created yourself, or does it come from an external library.
Jul 31 '08 #2
gpraghuram
1,275 Expert 1GB
Is Form a variable argumnt function.....?

Raghu
Jul 31 '08 #3
Hi,

I am not sure about what exactly is "Form", a function that somebody has created or function that come together with the standard library. But one thing that I am sure is the fact that Form works quitte well just with the declaration of the standard input output in one of my separate code. But when I am putting different pieces of my codes together, the problem of declaring Form shows up. I don't get it. Any ideas?

Jos
Jul 31 '08 #4
Hi,

I am using the command Form to create a string following a specific format, but g++ complier returns a error message saying that Form is not declared in the scope. Here is what I did:

fn1 = Form("%.6d_%.4d_F%.4d.gz",part1,part2,evnt1);

part1, etc has been defined in the previous part of the code. So what should I do?

Joseph
Hi,

I am not sure about what exactly is "Form", a function that somebody has created or function that come together with the standard library. But one thing that I am sure is the fact that Form works quitte well just with the declaration of the standard input output in one of my separate code. But when I am putting different pieces of my codes together, the problem of declaring Form shows up. I don't get it. Any ideas?

Jos
Jul 31 '08 #5
Banfa
9,065 Expert Mod 8TB
Assuming that Form is a function somewhere then it needs to be declared before it is used. The declaration is (presumably) in a header file somewhere so if you are getting a "Form undeclared" error you have then not included the correct header in your code.
Jul 31 '08 #6
gpraghuram
1,275 Expert 1GB
Look for the declaration of Forms in header files and post it here....
Then we will be able to comment on it.


Raghu
Aug 1 '08 #7

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

Similar topics

5
by: Jonas Galvez | last post by:
Is it true that joining the string elements of a list is faster than concatenating them via the '+' operator? "".join() vs 'a'+'b'+'c' If so, can anyone explain why?
20
by: hagai26 | last post by:
I am looking for the best and efficient way to replace the first word in a str, like this: "aa to become" -> "/aa/ to become" I know I can use spilt and than join them but I can also use regular...
3
by: John Ford | last post by:
For simple string concatenation, is there a difference between... Dim s As String s += "add this to string" ....and... Dim s As String s = String.Concat(s, "add this to string")
9
by: Justin M. Keyes | last post by:
Hi, Please read carefully before assuming that this is the same old question about string concatenation in C#! It is well-known that the following concatenation produces multiple immutable...
16
by: Mark A. Sam | last post by:
Hello, I am having a problem with imputting into a string variable: Dim strSQL As String = "INSERT INTO tblContactForm1 (txtName, txtCompany, txtPhone, txtEmail, txtComment, chkGrower,...
33
by: genc_ymeri | last post by:
Hi over there, Propably this subject is discussed over and over several times. I did google it too but I was a little bit surprised what I read on internet when it comes 'when to use what'. Most...
12
by: Richard Lewis Haggard | last post by:
I thought that the whole point of StringBuilder was that it was supposed to be a faster way of building strings than string. However, I just put together a simple little application to do a...
34
by: Larry Hastings | last post by:
This is such a long posting that I've broken it out into sections. Note that while developing this patch I discovered a Subtle Bug in CPython, which I have discussed in its own section below. ...
10
by: =?Utf-8?B?RWxlbmE=?= | last post by:
I am surprised to discover that c# automatically converts an integer to a string when concatenating with the "+" operator. I thought c# was supposed to be very strict about types. Doesn't it seem...
34
by: raylopez99 | last post by:
StringBuilder better and faster than string for adding many strings. Look at the below. It's amazing how much faster StringBuilder is than string. The last loop below is telling: for adding...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.