I would say that the best way is to say "3,4,7,9" - the way you've just told
us.

Put it in the CommaText of a StringList and convert the items to integer -
then you get the index for columns:

 

With TStringList.Create do

  Try

      CommaText:=MyColumnIndexList; // "3,4,7,9"

      For i:=0 to Count do // something with Strings[i] converted to integer

.

 

Horia

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of logman0u812
Sent: Thursday, July 28, 2005 7:05 PM
To: [email protected]
Subject: [delphi-en] how to pass...

 

hey all,
dont know exactly how to describe this but Im gonna
try.
visualize a spreadsheet. Say 10 rows by 10 columns for
simplicity. And I only want to grab the columns
3,4,7,9 from each row, what would be the easiest way
to pass a var telling me which columns to grab?

When I coded in VB (long ago) I would pass 0101010101
etc.. which would tell me 0=no ( dont grab col ), if 1
then yes ( grab col ).

Is there a better way?
the rows and cols will always be different, never the
same amount of cols or rows. Could be 2x10 or
25x100... who knows...


thanks for your time...

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 




  _____  

YAHOO! GROUPS LINKS 

 

*        Visit your group "delphi-en
<http://groups.yahoo.com/group/delphi-en> " on the web.
  
*        To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
  
*        Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 

 

  _____  



[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to