CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 help need in folffowinf code

Print topic Send  topic

Author Message
itzumar

Posts: 88
Posted: 05/13/2013, 9:12 AM

global $receipt;

//Update the hidden 'NIC" field with the current nic
$NIC = CCGetFromGet("s_NIC",0);
if($NIC > 0) {
$receipt->ds->NIC->SetValue($NIC);
}


where NIC and CNIC is integer value. what if i use var char data type for NIC. what will be the code? any help
_________________
Umar
View profile  Send private message
Lucius

Posts: 220
Posted: 05/13/2013, 9:50 AM

To check if the NIC is empty:

//Update the hidden 'NIC" field with the current nic   
$NIC = CCGetFromGet("s_NIC",0);   
if($NIC != "") //here check for empty string  
{ $receipt->ds->NIC->SetValue($NIC);   
}

You can also check for string length, or null vale, all depends of what NIC value can become.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.