Home » Community » Newbie corner » Parameter Array reference.
Parameter Array reference. [message #38299] |
Sun, 09 December 2012 16:45  |
nejnadusho
Messages: 60 Registered: October 2012
|
Member |
|
|
Hi,
I cant figure that out.
I want to have a parameter of array reference and I am doing the following.
.h File
class DataTransfer{
public:
typedef DataTransfer CLASSNAME;
DataTransfer();
void FetchData(const String& className, const String & value, Array<String>& getData);
void InitiateTables( Array<String&> getData);
private:
};
.cpp File
DataTransfer::DataTransfer(){}
void DataTransfer::FetchData(const String& className, const String & value, Array<String>& getData){
if (className == "Tables"){
if (value == "Initiate"){
InitiateWorkplace(getData);
}
}
}
void DataTransfer::InitiateTables(Array<String>& getData){
String start = "Tables";
String start = "Tables End";
getData.
}
When I get to the getData. and I want to add something to the array it does not work.
and I am calling this class from somewhere like this.
Array<String> arrrr;
String x = "Hi";
String y = "Why";
DataTransfer trans;
trans.FetchData(x,y,arrrr);
What am I doing wrong?
Thank you very much.
Best,
Georgi
[Updated on: Sun, 09 December 2012 18:30] Report message to a moderator
|
|
|
|
|
|
Re: Parameter Array reference. [message #38324 is a reply to message #38307] |
Mon, 10 December 2012 06:53  |
|
nejnadusho wrote on Sun, 09 December 2012 19:11 | DO NOT COPY THE PARAMETERS FROM THE POP UP ABOVE THE DEFINITION WHENEVER DEFINING THE FUNCTION IN THE .cpp FILE.
There are special INVISIBLE characters like the one that it is giving error 0xa0 .
|
That sounds like a bug, but the weird part is where would the 0xa0 come from... I used to have similar problems in past, but I always thought it is a system thing, because it happens from time to time in other (non-U++) applications as well. I was never able to get a reproducible testcase, if you could, it would be great if you could describe it here, step by step so someone can a have a look at it.
Honza
|
|
|
Goto Forum:
Current Time: Tue Apr 29 05:38:28 CEST 2025
Total time taken to generate the page: 0.04469 seconds
|