PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Accept only digits from 0 to 20 in Excel's cells

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR
View previous topic :: View next topic  
Author Message
beegees



Joined: 08 Feb 2009
Posts: 1

PostPosted: Sun Feb 08, 2009 8:14 pm    Post subject: Accept only digits from 0 to 20 in Excel's cells Reply with quote

Hi everybody,

I would like to accept only digit from 0 to 20 and also "ABS" and "J" in the Excel cells.

I tried this :

Code:
   $protection = $worksheet->data_validation(array(validate => 'integer', criteria => 'between',minimum => 0,maximum => 20,input_title=>'Input an integer:',input_message   =>'Between 0 and 20',error_message   => 'Veuillez recommencer s.v.p.'));


and to call it like that :

Code:
$worksheet->write($i, 4, $data['NOTE'],$lock,$protection);


of course, it doesn't work.

Please, could you tell me what I can do ?

Thanks in advance.

beegees
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Feb 09, 2009 12:57 am    Post subject: Reply with quote

There is no such feature in this package.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement