Facing problem in using webutil functions
hi,
i have developer suite 10g(9.0.4),
i download web util 1.0.6, update all the required changes,
i also download the template, which shows the
but still i am facing problem in using any function,
when i am using get_system_property method then it return exception (06502) value or string error, and all the other functions return no_data_found exception
please help me!!!
with regards,
sidharth
Sidharth,
unfortunately your question doesn't provide enough details to help you out of this. Please provide the code that you use in the function call that causes the exception. If you have error messages to share, the better it is.
Frank
Similar Messages
-
Facing problem in using webutil
hello,
i have oracle developer suite 10g (9.0.4), which have not webutil capabilities,
i download the webutil 1.0.6, and manually made all the required chages,but facing problem in using all the fuctions, firstly it return value or string exception (ora-06502) and after that it always return NO_data_found(01403) exception,
Please! help on this
regards,
sidharthIn order for us to help you will need to provide a lot more information. However, I would start with this:
1. Have you compile the webutil.pll file in to a .plx?
2. Is the PLX included in the FORMSxx_PATH?
3. Have you attached the WebUtil objects (from the Object Library) to your form?
4. If you are developing your form on Windows and trying to run it on Unix, have you recompiled the PLL and FMB?
5. If you sub-classed the WebUtil objects in to your form, the webutil OLB will need to be in the FORMSxx_PATH
Try using the WebUtil Demo form:
http://www.oracle.com/technology/products/forms/htdocs/webutil/Webutil_demo.zip
Read the WebUtil doc. It may be necessary to detach and reattach the WebUtil Library. Then execute a COMPILE_ALL. Refer to the WebUtil doc Section 5.1 "Adding The Required Objects"
http://www.oracle.com/technology/products/forms/htdocs/webutil/web_util.pdf -
Facing problem while using aggregate functions.
I am trying to use aggregate functions such as sum, count in my CQL query.
It is not giving me an error but i am unable to get the correct output out of that.
Query is:
<?xml version="1.0" encoding="UTF-8"?>
<wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
<processor>
<name>APL_EFW_CostEvent_Processor</name>
<rules>
<view id="CostEventView"
schema="eventName eventType eventId opportunityStatusId opportunity_cost APL_Event_Inbound"><![CDATA[
SELECT X.eventName, X.eventType,
X.eventId, X.opportunityStatusId,
X.opportunity_cost,X.APL_Event_Inbound
from APL_EFW_Master_Inbound_Channel
XMLTable (
'/' PASSING BY VALUE APL_EFW_Master_Inbound_Channel.APL_Event_Inbound as "."
COLUMNS
eventId char(256) PATH 'fn:data(Event/EventHeader/eventId)',
eventName char(256) PATH 'fn:data(Event/EventHeader/eventName)',
eventType char(256) PATH 'fn:data(Event/EventHeader/eventType)',
opportunityStatusId char(256) PATH 'fn:data(Event/ApplicationDataArea/opportunity/opportunity_details/opportunity_status)',
opportunity_cost char(256) PATH 'fn:data(Event/ApplicationDataArea/opportunity/opportunity_details/opportunity_cost)',
APL_Event_Inbound xmltype path '/'
) AS X
]>
</view>
<query id="CostEventQuery">
<![CDATA[
SELECT
XMLELEMENT("opportunity",
XMLELEMENT("cost_opportunity",
XMLFOREST(X.opportunity_cost))) as APL_Event_Inbound
FROM CostEventView
MATCH_RECOGNIZE (
MEASURES
A.opportunity_cost as opportunity_cost
PATTERN (B A+) within 30000 milliseconds
DEFINE
A as sum(A.opportunity_cost)> 1000 )
as X
]]>
</query>
</rules>
</processor>
</wlevs:config>
The problem i am getting is when the value is getting compared with the opportunity cost rather than with the sum of oppCost
A as sum(A.opportunityCost)>1000
A as A.opportunityCost >1000
Both the cases are treated as same .It would help if you could provide sample input data and associated output that illustrates the problem
-
Problem in using aggregate functions inside case statement
Hi All,
I am facing problem while using aggregate functions inside case statement.
CASE WHEN PSTYPE='S' THEN MAX(DECODE(POS.PBS,1,ABS(POS.PPRTQ),0)) ELSE SUM(DECODE(POS.PBS,1,ABS(POS.PPRTQ),0)) END,
how can I achieve above requirement ? Con anyone help me.
Thanks and Regards
DGHi All,
Below is my query:
SELECT
CASE WHEN p_reportid IN ('POS_RV_SN','POS_PB') THEN POS.PACCT
ELSE POS.PACCT || '-' || DECODE(POS.SYSTEMCODE,'GMI1','1', 'GMI2','2', 'GMI3','4', 'GMI4','3', '0') ||POS.PFIRM|| NVL(POS.POFFIC,'000') END,
CASE WHEN p_reportid IN ('POS_RV_SN','POS_PB') THEN POS.PACCT||POS.PCUSIP||DECODE(POS.PBS,1,'+',2,'-')
ELSE POS.PFIRM||POS.POFFIC||POS.PACCT||POS.PCUSIP||DECODE(POS.PBS,1,'+',2,'-') END,POS.SYSTEMCODE,CASE WHEN POS.PSTYPE='S' THEN POS.PSYMBL ELSE POS.PFC END,POS.PEXCH||DECODE(POS.PSUBEX,'<NULL>',''),
POS.PCURSY,
CASE WHEN POS.PSBCUS IS NULL THEN SUBSTR(POS.PCTYM,5,2) || SUBSTR(POS.PCTYM,1,4) ELSE POS.PSBCUS || SUBSTR(POS.PCTYM,5,2) || SUBSTR(POS.PCTYM,1,4) END ,
NVL(POS.PSUBTY,'F') ,POS.PSTRIK,*SUM(DECODE(POS.PBS,1,ABS(POS.PPRTQ),0)) ,SUM(DECODE(POS.PBS,2,ABS(POS.PPRTQ),0))* ,
POS.PCLOSE,SUM(POS.PMKVAL) ,
TO_CHAR(CASE WHEN INSTR(POS.PUNDCP,'.') > 0 OR LENGTH(POS.PUNDCP) < 15 THEN POS.PUNDCP ELSE TO_CHAR(TO_NUMBER(POS.PUNDCP) / 100000000) END),
POS.UBS_ID,POS.BBG_EXCHANGE_CODE,POS.BBG_TICKER ,POS.BBG_YELLOW_KEY,POS.PPCNTY,POS.PMULTF,TO_CHAR(POS.BUSINESS_DATE,'YYYYMMDD'),
POS.SOURCE_GMI_LIB,
--DECODE(POS.SYSTEMCODE,'GMI1','euro','GMI2','namr','GMI3','aust','GMI4','asia','POWERBASE','aust','SINACOR','namr',POS.SYSTEMCODE),
DECODE(p_reportid,'RVPOS_SING','euro','RVPOS_AUSTDOM','aust','RVPOS_AUSTEOD','euro','RVPOS_GLBLAPAC','asia','POS_RV_SN','namr','POS_PB','aust',POS.SYSTEMCODE),
POS.RIC,
CASE WHEN PSUBTY = 'S' THEN POS.TYPE ELSE NULL END,
DECODE(POS.UBS_ID,NULL,POS.PCUSP2,POS.ISIN),POS.UNDERLYING_BBG_TICKER,POS.UNDERLYING_BBG_EXCHANGE,POS.PRODUCT_CLASSIFICATION,
CASE WHEN PSUBTY = 'S' THEN POS.PSDSC2 ELSE NULL END,
CASE WHEN PSUBTY = 'S' THEN C.SSDSC3 ELSE NULL END,
NVL(C.SSECID,POS.PCUSIP),
NULL,
POS.PYSTMV,
POS.PMINIT,
POS.PEXPDT,
CASE WHEN POS.PSUBTY='S' THEN SUBSTR(C.ZDATA2,77,1) ELSE NULL END,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
FROM POSITIONS_WRK POS LEFT OUTER JOIN
(SELECT * FROM CDS_PRODUCTS CP INNER JOIN FUTURE_MASTER FM ON
(CP.STRXCH=FM.ZEXCH AND CP.SFC=FM.ZFC AND CP.BUSINESS_DATE = FM.BUSINESS_DATE )) C ON POS.PCUSIP = C.SCUSIP
AND NVL(POS.PCUSP2,'X') = NVL(C.SCUSP2,'X')
WHERE
POS.PEXCH NOT IN ('A1','A2','A3','B1','B3','C2','D1','H1','K1','L1','M1','M3','P1','S1')
AND (POS.PSBCUS IS NOT NULL OR POS.PCTYM IS NOT NULL OR POS.PSTYPE ='S')
AND POS.BUSINESS_DATE = run_date_char
GROUP BY
POS.UBS_ID,POS.SYSTEMCODE,POS.RECIPIENTCODE,POS.BUSINESS_DATE,POS.PACCT,POS.PFIRM,POS.POFFIC,POS.PCUSIP,POS.PBS,CASE WHEN POS.PSTYPE='S' THEN POS.PSYMBL ELSE POS.PFC END,
POS.PEXCH,POS.PSUBEX,POS.PCURSY,
CASE WHEN POS.PSBCUS IS NULL THEN SUBSTR(POS.PCTYM,5,2) || SUBSTR(POS.PCTYM,1,4) ELSE POS.PSBCUS || SUBSTR(POS.PCTYM,5,2) || SUBSTR(POS.PCTYM,1,4) END,
NVL(POS.PSUBTY,'F') ,POS.PSTRIK,POS.PCLOSE,TO_CHAR(CASE WHEN INSTR(POS.PUNDCP,'.') > 0 OR LENGTH(POS.PUNDCP) < 15 THEN POS.PUNDCP ELSE TO_CHAR(TO_NUMBER(POS.PUNDCP) / 100000000) END),
POS.BBG_EXCHANGE_CODE,POS.BBG_TICKER,POS.BBG_YELLOW_KEY,POS.PPCNTY,POS.PMULTF,POS.PSUBTY,POS.SOURCE_GMI_LIB,RIC,
CASE WHEN PSUBTY = 'S' THEN POS.TYPE ELSE NULL END,
DECODE(POS.UBS_ID,NULL,POS.PCUSP2,POS.ISIN),POS.UNDERLYING_BBG_TICKER,POS.UNDERLYING_BBG_EXCHANGE,POS.PRODUCT_CLASSIFICATION,
CASE WHEN PSUBTY = 'S' THEN POS.PSDSC2 ELSE NULL END,
CASE WHEN PSUBTY = 'S' THEN C.SSDSC3 ELSE NULL END,
NVL(C.SSECID,POS.PCUSIP),
POS.PYSTMV,
POS.PMINIT,
POS.PEXPDT,
CASE WHEN PSUBTY = 'S' THEN SUBSTR(C.ZDATA2,77,1) ELSE NULL END;Now, could you plz help me in replacing the bold text in the query with the requirement.
Thanks and Rgds
DG
Edited by: BluShadow on 16-May-2011 09:39
added {noformat}{noformat} tags. Please read: {message:id=9360002} for details on how to post code/data -
Using WebUtil Function giving an error
I installed the WebUtil, i executed the demo(example which would have been in installation file which is running on my system) but now i want to open html file in my form using webutils function present in some remote system WEBUTIL_FILE_TRANSFER.URL_To_Client I have been created the form with one button & wrote an trigger when-button-pressed wrote the below means calling the below function which is giving an error
WebUtil_file_transfer.URL_To_Client('www.somesite_filename.com','C:\CR');
or
WebUtil_file_transfer.URL_To_Client('C:\CR','www.somesite_filename.com');
ERROR::'URL_TO_CLIENT' is not a procedure or is undefined
Could u please help me & if u have any documents related to webutil please send those to me.My mail id is: [email protected]You need 3 arguments...
FUNCTION URL_To_Client( sourceURL in VARCHAR2,
clientDestination in VARCHAR2,
fileSize in PLS_INTEGER default 0) return BOOLEAN;
webutil_file_transfer.url_to_client('some_url', 'c:\cf', null);------- snip from comments of webutil.pll --------------
* URL_To_Client - pulls a file from the specified URL on any server and
* sends it via http to the specified destination on the client
* If you specify file size we can do a comparison after download to ensure
* that the sizes match
* Additionally if you specify withProgress and size you will get a progress
* bar.
* If you don't specify any size or if you specify default size, then webutil
* will try to get the size of the url on its own for the purpose of showing
* the progress bar.
* Note that the Title, subtitle and message strings cannot contain the '|'
* character
FUNCTION URL_To_Client( sourceURL in VARCHAR2,
clientDestination in VARCHAR2,
fileSize in PLS_INTEGER default 0) return BOOLEAN;
FUNCTION URL_To_Client_With_Progress(
sourceURL in VARCHAR2,
clientDestination in VARCHAR2,
fileSize in PLS_INTEGER default 0,
progressTitle in VARCHAR2,
progressSubTitle in VARCHAR2,
progressMessage in VARCHAR2) return BOOLEAN;
----------------- End Snip ----------Message was edited by:
Mark Reichman -
I am facing problem in using viber...can not receive any call from Viber whn keypad is locked and whn i unlock phone thn on opening viber i can see the missed call notification... kindly guide me there is any setting so0 tht i can receive viber calls whn my phone is locked even as i can receive calls on HTC
Hi,
This is an official representative of Viber Media.
Unfortunately we cannot change this feature due to Apple's restrictions. :/
For more questions or technical support, please visit our official HelpDesk.
Thanks,
Viber -
When i try to use web in a form i don't work and i get the following in the java console.
I am trying to open a file server at send to the client !
please help i cant find anything on the subject and i have never had the problem before version 10.1.2.0
Loading http://localhost:8889/forms/java/frmall_jinit.jar from JAR cache
Loading http://localhost:8889/forms/webutil/webutil.jar from JAR cache
Loading http://localhost:8889/forms/webutil/jacob.jar from JAR cache
Loading http://localhost:8889/forms/tia/tia_icons.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet-version er: 10.1.2.0
2006-jan-24 12:25:08.206 ERROR>WUT-107 [DownloadAgent.setData()] Decode buffer is emptySo had this code been working before?
Does this only happen with a particular file?
Do other WebUtil functions Work OK? -
HELP : BAPI_BUS1077_CREATE ( facing problem in using this Bapi )
Hi
I am facing a problem in using this Bapi.
I already have a Data record for the Property Say FAT under a property tree say XXYYZZ. Suppose I want to create a new value for one of its Characteristic of the existing record, I am able to do that. For example. Suppose FAT has a Characteristic called Min = 1 , Max = ' ' , I am able to create a value for this say Max = 5.. at the same time i am able to change the value of Min = 2 if I use the Bapi_Bus1077_Change..
But my problem comes when I am trying to create a new records for the FAT. with Min = 6 and Max = 10.. ( I am creating a new instance ).
I see in the documentation that something has to be done with the Primarykey and Foreighkey. But when I look into my import parameter table, all have the 000000000000000 in my primary key and in foreignkey..
Can someone help me out?
Thanks.
David
Message was edited by:
Kirubakaran DavidAs you want to create a new instant, you need to pass PROP_VAL and PROP_DATA
First call GetDetails and then use it as follows.
prop_val-function = '009'. "NEW
prop_val-primarykey = '000000000000001'. "Temporary key that you need to assign
prop_val-flgprimkey = 'X'. "As the key does not exist
prop_val-foreignkey = prop_header-record_no. "From GetDetail
prop_val-flgfrgnkey = ' '. "As key exists
APPEND prop_val.
prop_data-function = '009'. "NEW
prop_data-primarykey = ''000000000000002'. "Temporary key that you need to assign
prop_data-flgprimkey = 'X'. "As the key does not exist
prop_data-foreignkey = prop_val-primarykey. "This is the value assigned above
prop_data-flgfrgnkey = 'X'. "As the key does not exist
prop_data-name_char = 'MIN_CHAR'.
prop_data-char_value = '6'.
APPEND prop_data.
prop_data-function = '009'. "NEW
prop_data-primarykey = ''000000000000003'. "Temporary key that you need to assign
prop_data-flgprimkey = 'X'. "As the key does not exist
prop_data-foreignkey = prop_val-primarykey. "This is the value assigned above
prop_data-flgfrgnkey = 'X'. "As the key does not exist
prop_data-name_char = 'MAX_CHAR'.
prop_data-char_value = '10'.
APPEND prop_data.
CALL FUNCTION 'BAPI_BUS1077_CREATE'
Note how primary key from PROP_VAL (000000000000001) is used as foreign key for PROP_DATA (000000000000002 and 000000000000003) -
Problem while using aggregate functions in EJB QL 2.1
Hai all,
I am using aggregate function as follows
select max(c.id) from customer as c
for this iam selected check box EJB QL 2.1 in persistent.xml
this is validated by nwds, but while deploying server raising error like ejb ql syntax error.
Actually according to EJB QL 2.1 this is a valid query, what i need to do for run this same query .
Anybody please help me in this regard
Regards
SomarajuBeevin
Both two are not even validated,
but with the first one as select max(c.id) from customer as c , in this case it is validated but while deploying it is error as , object must be return
But when i saw the ejb2.1 specification we can write this type of queries also ?
Is it problem with was any thing
Regards
Somaraju -
I have a problem in using the function 'WS_DELIVERY_UPDATE'
I want to update the delivery document at the batch field (CHARG = '0000000605') by using the function 'WS_DELIVERY_UPDATE'.
Before update, this batch field is initial.
After having completely updated this delivery, I try to update this batch field again. However, I found the error message showing that 'Confirmed batch 0000000621 is different from batch 0000000605 for main item'.
How can I solve this problem to update this batch again? This error occurs when I use function
'WS_DELIVERY_UPDATE', 'BAPI_OUTB_DELIVERY_CONFIRM_DEC', and 'BAPI_OUTB_DELIVERY_CHANGE'.Check OSS 674567.
-
ESB problem when use merge function in master/detail relationship
I have some problem with the merge function in database adapter.
details:
I have 2 tables in master/detail relationship, both have GUID column as a primary key (GUID generated by ESB).
'car_group' table
pk : guid
unique : group_no, datadate, datatime
===============================
guid, group_no, datadate, datatime, group_detail
===============================
1, 1, 01/01/2008, 09:00, groupdetail01
2, 1, 01/01/2008, 10:00, groupdetail02
'car_group_detail' table
pk : guid
fk : car_group_guid link to car_group.guid
==================
guid, car_group_guid, detail
==================
1, 1, detail01
2, 1, detail02
3, 2, detail03
4, 2, detail04
I used a file adapter as a input, here is an example text file
M, 1, 01/01/2008, 09:00, groupdetail01
D, detail01
D, detail02
M, 1, 01/01/2008, 10:00, groupdetail02
D, detail03
D, detail04
Because I used merge function so I need to specify the columns that will be a condition for the insert/update,
but I have generate GUID as a primary key in the tables, I can't used it, so in toplink I map my unique key as a primary key.
The insert operation work fine but when update is required (for example, try to change 'group_detail' column of the master table in text file),
an SQLException thrown, the log file shown the adapter try to update the GUID column of master table but the constraint not allowed.
And yes, cause of GUID generate everytime so ESB try to update this column also, but I don't want to do like that, I need something
like when update operation required, just ignored the GUID column.
I try to mark read-only to the GUID column in Toplink mapping file but still have the same problem, it still generate UPDATE statement
with the GUID column, and also I try to let the database trigger to generate GUID instead of ESB function, but it not works in master/detail
relationship (I think the Toplink manage the relationship, is it right ?)
Please advise, thanks for advance.somebody please help, thanks !!!
-
PROBLEM when use topN function - Essbase connection
Guys,
please help me. I'm trying to rank a number of clients using TopN function by revenue but when i order my Top 10 the Analysis log out. And always when i log in again continue logging out...
U guys can help?
Tnks,
LucasPlease go to http://zone.ni.com/reference/en-XX/help/371361B-01/lvtextmath/msfunc_classes/ and see if "saveas" is an available function in LabVIEW MathScript.
As a matter of fact,I do not see the need to complete the file I/O inside the MathScript node,Why do you want to do that? -
Facing problem while using Thread analyzer in Sunstudio 12
Hello all
I am new in Sunstudio 12. I am using Linux RedHat enterprise 5 (*Hardware configuration: Intel Pentium 4 , 2.40GHz, 1GB RAM*)
I am trying run a sample program for deadlock detection as described in [http://docs.sun.com/app/docs/doc/820-0619/6ncbk8g78?a=view|http://docs.sun.com/app/docs/doc/820-0619/6ncbk8g78?a=view]
I used the following commands:
*./cc din_Philo.c -mt -g*
*./collect -r deadlock a.out*
But I got the following message:
WARNING: Linux-32-bit, 1 CPUs, RH_Server_5 system localhost is not supported by the Performance tools.
WARNING: Data collection may fail: system is not properly configured or is unsupported.
Creating experiment database tha.1.er ...
execvp of a.out failed: No such file or directory
What is the problem?? Is it related to operating system?? or Is it related hardware??
Any idea??
Thanks in advance
NasifSun Studio 12 is supported on RedHat Enterprise 4, but you have version 5. So yes, it is related to the operating system.
Some (or even all) components on Sun Studio might work on an unsupported system, but they are not guaranteed to and besides, might fail in some situations. Collector and dbx are most OS-sensitive components on Sun Studio, so I'd expect you are likely to run into compatibility problems when using collector on RHat 5.
From the other hand, your immediate problem might not be related to OS compatibility. It looks like the system simply refuses to look for a.out in current directory.
Try changing the second command to
./collect -r deadlock ./a.out(BTW, do you really keep a.out inside Sun Studio's installation directory? It must be really inconvenient as you might accidentally delete some parts of Sun Studio instead of your build's scratch files). -
Problem with using SPrintf function in a cpp file
SPrintf can be used with .c extension, but when it's used in a .cpp then you get the following:
Error C2664: 'SPrintf' : cannot convert parameter 1 from 'char [10]' to 'unsigned char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
But it does compile with .c extension, however this time the rest of the code doesn't work.
Any ideas?
Thanks,
SacitKevin,
Here is a piece from the code:
CIN MgErr CINRun(LStrHandle ParameterFilePath, LStrHandle DataFilePath, LStrHandle OutputFilePath, int32 replace, int32 ver, int16 calrange, int16 istof, LStrHandle OutputString)
int i, StartCh, ChannelNum;
double Density, a, b, sigmachn, sigmawin, sigmascattp, EInit, angle, ns, es,
concentration, totalweight, conversion, Dsample, Count[2048], NetCnts;
char temp[15], Z1Name[2], Z2Name[10][2];
char parafilename;
//char *datafilename = "";
//char *outfilename = "";
//char *cMessageText;
// Make necessary conversions.
LStrLen (*OutputString) = LStrLen(*ParameterFilePath);
//MoveBlock(LStrBuf(*ParameterFilePath), LStrB
uf(*OutputString), LStrLen(*ParameterFilePath));
MoveBlock(LStrBuf(*ParameterFilePath), & parafilename, LStrLen(*ParameterFilePath));
MoveBlock(& parafilename, LStrBuf(*OutputString), LStrLen(*ParameterFilePath));
ifstream parafile, infile;
ofstream outfile;
Ion_Target mIon_Target;
mIon_Target.Z2 = new int(10);
mIon_Target.M2 = new double(10);
mIon_Target.F = new double(10);
// Open parameter file...
parafile.open((char *)parafilename, ios::in|ios::nocreate);
if(parafile == NULL)
//cMessageText = "Couldn't Open Parameter File. Maybe it doesn't exist";
// return -1;
return fIOErr;
parafile.close();
The problem is I have to use ifstream method, because the rest of the code depends on it, and I don't want to deal with the conversion. Otherwise, I would have used FMOpen/FMClose utilities.
So the problem is obvious as you see, all I need is to convert LStrHandle to a char.
When I run the code from LabVIEW, "The instruction at "0x77f83e91" referenced at "0x555c3a44". The memory could not be "read"." error message appears.
I'd appreciate your help.
Sacit
Attachments:
sc.cpp 15 KB -
Problem in using Split function
Hello,
I have a problem using the Split function and I can't find any solution in internet.
I'm trying to make a list of int but it seems that the Split function doesn't work.
Can you help me please ?
Here is my code :
public class Dessin
List<Forme> dessin = new List<Forme>();
public void Ajouter(Forme forme)
dessin.Add(forme);
public void Lecture()
StreamReader monStreamReader = new StreamReader("ExempleTout.csv");
int ligne = int.Parse(monStreamReader.ReadLine());
while (ligne != null)
int[] temp = ligne.Split(';'); // Error : 'int' doesn't contain a definition for 'Split'
if (temp[0].Equals("Cercle"))
Cercle cercle1 = new Cercle(temp[1], temp[2], temp[3], temp[4], temp[5], temp[6], temp[7], temp[8]);
ligne = int.Parse(monStreamReader.ReadLine());
foreach (Cercle c in dessin)
Console.WriteLine(c.ToString());
Console.ReadKey();
Console.ReadKey();
monStreamReader.Close();
Best regards,Split is a method of string, not int. You are looking for strings anyway, I don't know why you'd parse to an int to begin with. Try this:
string ligne = monStreamReader.ReadLine();
while (ligne != null)
string[] temp = ligne.Split(';');
if (temp[0].Equals("Cercle"))
Cercle cercle1 = new Cercle(int.Parse(temp[1]), int.Parse(temp[2]), int.Parse(temp[3]), int.Parse(temp[4]), int.Parse(temp[5]), int.Parse(temp[6]), int.Parse(temp[7]), int.Parse(temp[8]));
ligne = monStreamReader.ReadLine();
~~Bonnie DeWitt [C# MVP]
http://geek-goddess-bonnie.blogspot.com
Maybe you are looking for
-
How can i re-download the iMessage beta in my mac?
I Would Really Like To Send Messages From my Mac Again.
-
Desktop app displaying white screen, OOBE fix not working
I've only just purchased the creative cloud today and for the past few hours I haven't had any joy in getting the desktop app to work. All that is displayed is a white box and no other options. I have searched the forums for solutions and came across
-
No Commercial Invoice pop-up in MIGO for depot
Hi, I am doing a MIGO for Imports in depot,but there is no commercial invoice pop-up appearing. I did the following: Checked the tax procedure ,created the required condition types for Ecess and SHEcess which were missing. Created condition records w
-
Hi, Our organization recently also encounter Oracle DB performance issue, whereby I am searching for information for us to going into diagnostic the problem and finding the root cause of this performance problem. I had read through this old article w
-
WebServices and Actionscript3.. a few questions
Hi all, I've set up a small example where I can connect to an .NET Web Service in Flash using the Flex library mx.rpc.soap.WebService. So it works fine... I was just wondering if anyone could give me some advice, information, urls, suggestions or