Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > General > Chit Chat
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.

C# Question....

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2010, 03:00 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default C# Question....

I am trying to build a wrapper for a DLL I found... AN now I have an issue...
I have a (?)method(?) that can only be called once...
But I need to callet it several times...

The c# code line is something like this:

WorksheetRow Linha = Sheet.Table.Rows.Add();

The RED color parts are part of the DLL namespace for wich I am wrapping....
But this method only accepts being called more than once if I change the method's name, ex :Linha1, Linha2,etc...
This is something that is just not viable...
So, is there a way to Dynamically change this "Linha" to something Like "Linha"& n, being n an integer incremented upon the call of this public sub??

My current public call looks like this:

public void InsertTextToCell( int Col, int Row, string Text)

I am willing to add a string Name param, to name the method, but do I acomplish that?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!

Last edited by Cableguy : 07-02-2010 at 03:26 PM.
Reply With Quote
  #2 (permalink)  
Old 07-02-2010, 03:33 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I need to see a bit more code/information to see why you need multiple WorksheetRows and what you want to do with them. My best guess is that you need to add them to a Collection of some sort as the set of rows represents the contents of the worksheet.

EDIT :- If you don't actually need the return don't do the assignment or if you do do it to a pre-declared WorksheetRow instance.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 07-02-2010 at 04:10 PM.
Reply With Quote
  #3 (permalink)  
Old 07-02-2010, 04:08 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I'm sending my SharpDev proj to you by email!

SENT!
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!

Last edited by Cableguy : 07-02-2010 at 04:12 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 09:15 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0