我在DECLARE id integer;
r record;
BEGIN<BR>
INSERT INTO tabla1(campo1, campo2) VALUES(UPPER(d1),UPPER(d2));<BR>
id = (SELECT LASTVAL());<BR>
FOR r IN SELECT mi_campo FROM tabla2 LOOP<BR>
INSERT INTO tabla3(campo1, campo2, campo3)<BR>
VALUES(0, id, r.mi_campo);<BR>
END LOOP;<BR>
END;
这是第一个视图控制器
private void axWindowsMediaPlayer1_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
{
if ((WMPLib.WMPPlayState)e.newState == WMPLib.WMPPlayState.wmppsMediaEnded)
{
timer1.Interval = 100;
timer1.Start();
timer1.Enabled = true;
timer1.Tick += timer1_Tick;
}
}
private void timer1_Tick(object sender, EventArgs e)
{
/// method to play video list items
myFuntiontoPlayVideo();
timer1.Enabled = false;
}
这是第二个视图控制器
NSMutableArray
答案 0 :(得分:0)
<?php
require('checker.php');
$result = checker::isExpired($_COOKIE["hash"]);
$_COOKIE["usr"] = $result;
if ($result != false) {
echo '<span style"color:red;">szeretlek java</span>';
echo '<script src="js/jquery.js">';
echo 'var result = $.cookie("usr");';
echo 'var added = "Hello, " + result;';
echo '$(function {
$("#brand_div").html("alma");
});';
echo '</script>';
}
else {
echo "";
}
?>
和save
函数中几乎没有问题。您需要检查用户默认值中是否存在已保存的数组。您可以尝试以下代码:
第一个视图控制器:
viewWillAppear
第二个视图控制器:
@IBAction func save(sender: AnyObject) {
let alert = UIAlertController(title: nil, message: "Please enter message.", preferredStyle: UIAlertControllerStyle.Alert)
if NewSmu.text?.isEmpty == false {
var templates = NSMutableArray()
let uDefault = NSUserDefaults.standardUserDefaults()
if let savedArray = uDefault.arrayForKey("TEMPLATES") {
templates = NSMutableArray(array: savedArray)
}
if !templates.containsObject(NewSmu.text) {
templates.addObject(NewSmu.text)
uDefault.setObject(templates, forKey: "TEMPLATES")
}
alert.title = "Success"
alert.message = "Template saved."
}
alert.addAction(UIAlertAction(title: "OK", style: .Default, handler: nil))
presentViewController(alert, animated: true, completion: nil)
}