ID: 24465 User updated by: artpego at hotmail dot com Reported By: artpego at hotmail dot com Status: Suspended Bug Type: Feature/Change Request Operating System: Windows XP SP1 PHP Version: 4.3.2 New Comment:
Thank You All for your replies. I have written an Excel-to-tsv program and the cell method syntax is similar; however, the method works nothing like this. Yes, I thought it would be something like [], but, I have tried using [] && {}; however, it treats it simply as an array and of course complains when you add a comma [1,1]. I just mainly wanted to make sure I had not lost my mind! Atleast knowing that this *May* be supported in the future is a big relief. Again, Thank you. Previous Comments: ------------------------------------------------------------------------ [2003-07-03 03:58:16] [EMAIL PROTECTED] PHP does not currently support this kind of thing. PHP 5 *should* allow it using [] array access, but it does not yet. Suspending this until the required hooks are present in the engine. ------------------------------------------------------------------------ [2003-07-03 03:56:22] [EMAIL PROTECTED] Right ------------------------------------------------------------------------ [2003-07-03 03:51:45] postings-php-bug at hans-spath dot de Maybe this helps you: http://www.phpbuilder.net/columns/alain20001003.php3?page=3 Look for "$cell". However, I think this is not a bug, but a support question. So this is not the appropriate place to ask. ------------------------------------------------------------------------ [2003-07-03 00:45:49] artpego at hotmail dot com Do not dismiss this so quickly as not understanding PHP syntax. I am a very compentant PHP coder for a large company (a company which I am trying to show that PHP can replace their horrible asp/VB systems for accessing SAP). I understand PHP syntax very well and that using: $optionAdd(1,"TEXT")="FCURR = 'NTD'"; Will cause a parse error ##using an equal '=' sign after what php would see as a funtion call is impossible## None the less, I have not found a way to assign this value. The whole point is that I have to assign a value to a co-ordinate: TABLE COL1 ROW1 #VALUE# this co-oridinate/value is represented by (1,1) I can retrieve the default value assigned to this co-ordinate by using: $myValue=$optionAdd->value(1,1); ## LEGAL, I get my value back I am unable to ASSIGN a value since every time I try it would be hurting the parser's feelings or breaking the metods rules. $optionAdd->value(1,1)="Some Text"; Unexpected '=' Error $optionAdd->value="Some Text"; propput failed invalid index $optionAdd->appendRow(1,1); $optionAdd="Some Text"; Invalid number of arguments appendRow The list goes on and on. I have spent more time than I can imagine hunting for ways to modify my script. I have researched the SAP COM methods for alternate solutions, I have studied examples in every other language, I tried everything I know how to do. I cannot do this. If you it is as simple as not understanding PHP syntax, then show me how it is done, otherwise, tell me why it can't be done. ------------------------------------------------------------------------ [2003-07-02 21:38:38] [EMAIL PROTECTED] Learn PHP syntax first. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/24465 -- Edit this bug report at http://bugs.php.net/?id=24465&edit=1