posts - 59, comments - 21, trackbacks - 2, articles - 21
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

公告

12 2008 档案

摘要: create table t_news( newsid number not null primary key, //自增字段title varchar2(50))create sequence seq_newsminvalue = 1maxvalue = 99999999increment by 1;create or replace trigger t_tri_newsbefore inser...阅读全文

posted @ 2008-12-29 11:07 james.dong 阅读(40) | 评论 (0) 编辑 |

摘要: 要存储一个类型,序列化是最简单的一种实现方式,TreeView本省并不支持序列化,但是TreeNode支持,因此需要从TreeNode下手, 所有序列化TreeView其实就是序列化TreeNode.1. 自定义一个类SerialzeTreeNode继承TreeNode继承并实现ISerializable接口,其实TreeNode已经实现了ISerializable接口,在实现这个接口时要调用基类...阅读全文

posted @ 2008-12-23 08:25 james.dong 阅读(559) | 评论 (3) 编辑 |

摘要: 选择和循环语句1.if语句if condition1 then   statement1elseif condition2 then  statement2else  statement3end if2.select case语句select case  selectexprCase conditionList  StatementsC...阅读全文

posted @ 2008-12-05 13:20 james.dong 阅读(544) | 评论 (1) 编辑 |

摘要: 一.注释 注释在程序运行中并不执行,只是让程序员在编写程序的时候添加的一些标记性的文字,但他的作用可不容忽视,在编写一个程序模块时说明这个模块的功能、作用、创建时间、作者等,这对以后的维护大有好处。一般在用户的脚本中插入头信息是一个不错的想法,如下事例:‘Script name: Connect internet‘Author: jamesdong‘L...阅读全文

posted @ 2008-12-05 13:05 james.dong 阅读(1131) | 评论 (2) 编辑 |

摘要:  Option Public· 声明在当前模块中,未指定继承属性声明的变量皆为Public 类型   2.Option Declare禁止隐含声明   3.Option Compare NoCase [Case, Pitch, NoPitch]声明使得:“=”, Like, InStr(), StrCompare(...阅读全文

posted @ 2008-12-05 12:36 james.dong 阅读(231) | 评论 (0) 编辑 |

摘要: 返回 Variant (Long),指定一字符串在另一字符串中最先出现的位置 InStr([start, ]string1, string2[, compare])部分 说明 start 可选参数。为数值表达式,设置每次搜索的起点。如果省略,将从第一个字符的位置开始。如果 start 包含 Null,将发生错误。如果指定了 compare 参数,则一定要有 start 参数。 ...阅读全文

posted @ 2008-12-05 12:14 james.dong 阅读(668) | 评论 (0) 编辑 |