請問從資料庫的Table取出欄位與索引架構的程式碼.. |
|
littlefactor
一般會員 發表:24 回覆:25 積分:9 註冊:2002-07-11 發送簡訊給我 |
請問一下站長,我有下載那個範例,很神奇的是,我簡單拉一個form,答案是對ㄉ,
但是使用MDI的做法,就會發生以下的錯誤訊息,想跟你請教一下,是什麼原因會發生以下問題...麻煩您了~ [Error] Structure_Info.pas(61):Undeclared identifier: 'FieldtypeNames'
[Error] Structure_Info.pas(73): Undeclared identifier: 'ixPrimary'
[Error] Structure_Info.pas(74): Undeclared identifier: 'ixUnique'
[Error] Structure_Info.pas(75): Undeclared identifier: 'ixDescending'
[Error] Structure_Info.pas(76): Undeclared identifier: 'ixExpression'
[Error] Structure_Info.pas(77): Undeclared identifier: 'ixCaseInSensitive'
|
領航天使
站長 發表:12216 回覆:4186 積分:4084 註冊:2001-07-25 發送簡訊給我 |
引言: 請問一下站長,我有下載那個範例,很神奇的是,我簡單拉一個form,答案是對ㄉ, 但是使用MDI的做法,就會發生以下的錯誤訊息,想跟你請教一下,是什麼原因會發生以下問題...麻煩您了~ [Error] Structure_Info.pas(61):Undeclared identifier: 'FieldtypeNames' [Error] Structure_Info.pas(73): Undeclared identifier: 'ixPrimary' [Error] Structure_Info.pas(74): Undeclared identifier: 'ixUnique' [Error] Structure_Info.pas(75): Undeclared identifier: 'ixDescending' [Error] Structure_Info.pas(76): Undeclared identifier: 'ixExpression' [Error] Structure_Info.pas(77): Undeclared identifier: 'ixCaseInSensitive'有uses db;嗎? ~~~Delphi K.Top討論區站長~~~
------
~~~Delphi K.Top討論區站長~~~ |
littlefactor
一般會員 發表:24 回覆:25 積分:9 註冊:2002-07-11 發送簡訊給我 |
|
Jasonwong
版主 發表:49 回覆:931 積分:581 註冊:2006-10-27 發送簡訊給我 |
引言: 請問站長您的意思:有uses db是指,我有沒有uses到有ADOconnection,ADOtable.ADOquery元件的from 嗎? (我是把ADOconnection,ADOtable等元件放在同一個form讓其他form引用,沒有使用data module) 結果就是以下六個錯誤訊息產生,但其他都可以跑過...不是啦...站長的意思是你有沒有另外USES進來...如下最後一行... interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, DBTables, Db;
------
聰明的人,喜歡猜心;雖然每次都猜對了,卻失去了自己的心 傻氣的人,喜歡給心;雖然每次都被笑了,卻得到了別人的心 |
littlefactor
一般會員 發表:24 回覆:25 積分:9 註冊:2002-07-11 發送簡訊給我 |
3Q~3Q~
還有些問題想再請教一下~
1.我查DB,help它說
The built-in assembler supports three assembler define directives: DB (define byte), DW (define word), and DD (define double word),意思就是說它是定義變數所要使用到的指令嗎??
(如果我說了很白痴的話請原諒,我今天看了回答,才知道有dd,db,dw,dbtables) 2.範例中,NOT NULL 那一欄是指必須要填值是吧..
我以access為例來說,在設計檢視資料表,必須有資料那一欄為"是"囉??
可是我測試時,if Required = True then
StringGrid1.Cells[4, i 1] := 'Y'; //是否Not Null
沒有作用...
想請問一下,是否是我哪裡搞錯..
謝謝您
|
領航天使
站長 發表:12216 回覆:4186 積分:4084 註冊:2001-07-25 發送簡訊給我 |
1.我查DB,help它說
The built-in assembler supports three assembler define directives: DB (define byte), DW (define word), and DD (define double word),意思就是說它是定義變數所要使用到的指令嗎??
(如果我說了很白痴的話請原諒,我今天看了回答,才知道有dd,db,dw,dbtables)
這句話應是翻譯為:
Delphi中內建的組合語言指令支援三種資料定義格式:
有DB(定義一個byte) DW(定義雙字元組) DD(定義雙Word)
這好像與Table無關吧?
2.範例中,NOT NULL 那一欄是指必須要填值是吧..
我以access為例來說,在設計檢視資料表,必須有資料那一欄為"是"囉??
可是我測試時,if Required = True then
StringGrid1.Cells[4, i 1] := 'Y'; //是否Not Null
沒有作用...
我測試的結果也是如此,好像用Access讀出會文法測到這屬性
若用MS-SQL server資料庫來試就可以測出not Null屬性
~~~Delphi K.Top討論區站長~~~
------
~~~Delphi K.Top討論區站長~~~ |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |