Click here to Skip to main content
15,914,895 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: why it didn't find the control with its name? Pin
Dave Kreskowiak8-Dec-10 2:10
mveDave Kreskowiak8-Dec-10 2:10 
GeneralRe: why it didn't find the control with its name? Pin
sanyexian8-Dec-10 5:02
sanyexian8-Dec-10 5:02 
GeneralRe: why it didn't find the control with its name? Pin
Simon_Whale8-Dec-10 5:13
Simon_Whale8-Dec-10 5:13 
GeneralRe: why it didn't find the control with its name? Pin
sanyexian8-Dec-10 5:17
sanyexian8-Dec-10 5:17 
GeneralRe: why it didn't find the control with its name? Pin
sanyexian8-Dec-10 15:04
sanyexian8-Dec-10 15:04 
GeneralRe: why it didn't find the control with its name? Pin
Henry Minute8-Dec-10 15:46
Henry Minute8-Dec-10 15:46 
GeneralRe: why it didn't find the control with its name? Pin
sanyexian8-Dec-10 19:36
sanyexian8-Dec-10 19:36 
Questionhello i have a question about incompatible pointer type [modified] Pin
lxlenovostar6-Dec-10 18:22
lxlenovostar6-Dec-10 18:22 
i have this code:

type
        Symbol = string[8];
        SymTab = array[1..1000] of Symbol;
        TabPtr = ^SymTab;

var
        ST: array[1..MaxEntry] of Symbol;
        SType: array[1..MaxEntry] of char;


132 function Lookup(T: TabPtr; s: string; n: integer): integer;
133 var
134         i: integer;
135         found: Boolean;
136 begin
137         found := false;
138         i := n;
139         while (i > n) and not found do
140                 if s = T^[i] then
141                         found := true
142                 else
143                         dec(i);
144         Lookup := i;
145 end;


152 function InTable(n: Symbol): Boolean;
153 begin
154         InTable := Lookup(@ST, n, MaxEntry) <> 0;
155 end;






when i complier with gpc , it will print this:Tiny10.pas: In function `InTable':
&lt;b&gt;Tiny10.pas:154: error: passing arg 1 of `Lookup' from incompatible pointer type
Tiny10.pas:132: error:  routine declaration&lt;/b&gt;

can you tell me why? actually,i just know C++, i learn pascal for i read a book which use it.
thank you
<div class="signature"><div class="modified">modified on Tuesday, December 7, 2010 3:53 AM</div></div>

AnswerRe: hello i have a question about incompatible pointer type Pin
Luc Pattyn6-Dec-10 20:24
sitebuilderLuc Pattyn6-Dec-10 20:24 
AnswerRe: hello i have a question about incompatible pointer type Pin
_Erik_7-Dec-10 1:08
_Erik_7-Dec-10 1:08 
GeneralRe: hello i have a question about incompatible pointer type Pin
lxlenovostar7-Dec-10 4:37
lxlenovostar7-Dec-10 4:37 
QuestionFinding Field Length from DataGridView - SOLVED Pin
chrispowell123456-Dec-10 0:20
chrispowell123456-Dec-10 0:20 
AnswerRe: Finding Field Length from DataGridView Pin
Andy_L_J6-Dec-10 21:08
Andy_L_J6-Dec-10 21:08 
GeneralRe: Finding Field Length from DataGridView Pin
chrispowell123457-Dec-10 1:22
chrispowell123457-Dec-10 1:22 
QuestionProblem solved...see code Pin
pbsjr5-Dec-10 5:09
pbsjr5-Dec-10 5:09 
AnswerRe: System.Drawing.Bitmap.save does not save image Pin
Dave Kreskowiak5-Dec-10 7:44
mveDave Kreskowiak5-Dec-10 7:44 
GeneralRe: System.Drawing.Bitmap.save does not save image Pin
pbsjr5-Dec-10 9:43
pbsjr5-Dec-10 9:43 
GeneralRe: System.Drawing.Bitmap.save does not save image Pin
DaveAuld5-Dec-10 9:48
professionalDaveAuld5-Dec-10 9:48 
GeneralRe: System.Drawing.Bitmap.save does not save image Pin
pbsjr5-Dec-10 9:51
pbsjr5-Dec-10 9:51 
AnswerRe: System.Drawing.Bitmap.save does not save image Pin
Luc Pattyn5-Dec-10 7:56
sitebuilderLuc Pattyn5-Dec-10 7:56 
GeneralRe: System.Drawing.Bitmap.save does not save image Pin
pbsjr5-Dec-10 9:44
pbsjr5-Dec-10 9:44 
AnswerRe: System.Drawing.Bitmap.save does not save image Pin
Luc Pattyn5-Dec-10 10:08
sitebuilderLuc Pattyn5-Dec-10 10:08 
GeneralRe: System.Drawing.Bitmap.save does not save image Pin
pbsjr5-Dec-10 10:59
pbsjr5-Dec-10 10:59 
GeneralRe: System.Drawing.Bitmap.save does not save image Pin
Luc Pattyn5-Dec-10 11:08
sitebuilderLuc Pattyn5-Dec-10 11:08 
Question"Cannot open any more tables" happens when I optimize my code [modified] Pin
i_kant_spel4-Dec-10 19:04
i_kant_spel4-Dec-10 19:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.