English 中文(简体)
删除Array的记录
原标题:delete a Record from an Array

我需要从阿雷拉的记录中删除。

Basically I am assigning a RecordSet(a department table) to my Array. I want to delete a department Record from this Array. How can I do this.

我是VB新写的,如果你能给我如何做的话,我将不胜感激。

最佳回答

VB确实支持阵列上的推力和波动。 你有三种选择:

  1. Iterate the array while building a new array, skipping the value you want to delete.
  2. Use the Scripting.Dictionary object rather than an array. It supports Add/Delete operations.
  3. Utilize a utility class to make working with arrays a little easier. This article has a good example. (https://web.archive.org/web/20210728074610/https://www.4guysfromrolla.com/webtech/032800-1.shtml)
问题回答

暂无回答




相关问题
How to import excel file in web page useing Classic ASP?

We are trying to open an existing excel file (2003) from server location in a web page and save it again in the same location using following syntax. Set ExcelReportApp = CreateObject("Excel....

What s the best method to do paging in my ASP page

What s the best method to do paging in my ASP page when displaying a list of items? I knew that there is no equivalent to MySQL s LIMIT clause present in SQL Server, either 2000 or 2005. How can I ...

Using Classes in a Dictionary in Classic ASP

I usually do C# but have inherited a classic ASP project. I have defined a class: Class clsPayment Public Name End Class Set objPayment = New clsPayment objPayment.Name = "...

Response.Redirect HTTP status code

Why is it that ASP/ASP.NET Response.Redirect uses a HTTP-302 status code ("Moved Temporarily") even though in most cases a HTTP-301 status code ("Moved Permanently") would be more appropriate?

form inside form serialize problem

I am trying to submit a form inside another form because I will need first form s outcome in the second form. I tried using form serialize as advised in some other threads. Problem here is, I dont ...

热门标签