thanks. What also worked is by passing an array instead of a string. ars_SetEntry($ctrl, $schema, $record, 0, @updRemString)
Ravi jeff murphy wrote: > > On Apr 26, 2008, at 8:13 AM, Ravi wrote: >> ars_SetEntry($ctrl, $schema, $record, 0, 536871244, 3) || die >> "ars_SetEntry(User): $ars_errstr"; >> >> But if I set a variable $updRemString and run the ars_SetEntry, it gives >> me an error as shown below >> $updRemString = "536871244, 3" >> ars_SetEntry($ctrl, $schema, $record, 0, $updRemString) || die >> "ars_SetEntry(User): $ars_errstr"; >> > > > The first (working) line is: > > ars_SetEntry($ctrl, $schema, $record, 0, 536871244, 3) > > The second (nonworking) lis: > > ars_SetEntry($ctrl, $schema, $record, 0, $updRemString) > > which is equivalent to: > > ars_SetEntry($ctrl, $schema, $record, 0, "536871244, 3"); > > In other words, you are only passing five, instead of six, parameters. > The final parameter is > a single string parameter, instead of being two numeric parameters. > You could try this: > > ars_SetEntry($ctrl, $schema, $record, 0, split(",", $updRemString) ); > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ------------------------------------------------------------------------ > > _______________________________________________ > Arsperl-users mailing list > Arsperl-users@arsperl.org > https://lists.sourceforge.net/lists/listinfo/arsperl-users > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users