IT SOLUTIONS
Your full service technology partner! 
ForceOnce Technologies, William Pantoja -Collapse +Expand
-Collapse +Expand
wpantoja
-Collapse +Expand Profile
Member Info
Member Narration

POSTS:
MB Posts (163)◄╣
KB Posts (1)

KBPOSTSBYTYPE:
Tech Articles

Search wpantoja:

Advanced
   ► MB Lobby   Print This     

William Pantoja Message Board Activity

  


25 Message Board Posts:


Thread 25 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
RE: problem with the code- dont know where
{Too Long!}
Posted to MB Topic: Delphi VCL « Delphi Board
12 years ago
Nothing New Since Your Last Visit
Pascal and Delphi Coding

Thread 24 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Windows Development Tip
{Too Long!}
Posted to MB Topic: Delphi News / Other « Delphi Board
19 years ago

mprestwood
Good recommendation. I prefer the online search version myself but good recommendation. By the way, we've enhanced our online system so in addition to posting tips, short articles, etc. here in the message boards, you can post them directly to our knowledge base. The neat thing is that your contributions show up on YOUR Prestwood home page organized by type of info (FAQ, downloads, tips, definitions, etc.)
13 years ago
Nothing New Since Your Last Visit
2603
Hits

Pascal and Delphi Coding

Thread 23 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: Bizarre date/time logics
{Too Long!}
Posted to MB Topic: Delphi Object PASCAL « Delphi Board
15 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 22 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
RE: How do I access menu commands in one program f
The best way to safely close an application is send a WM_CLOSE message to its main window.  If you have the process id (which you can get if you use CreateProcess), you can enumerate all the top level windows and call GetWindowThreadProcessId on each one until you find the window whose process id matches the process id returned by CreateProcess.  Once that is found, you can post a WM_CLOSE message to that window using SendMessage and it will close the window as if you clicked "Exit".   For other commands, you can iterate child windows and post message to the appropriate window.  Using the WM_MENUCOMMAND message you can simulate a menu selection.   It can get quite complicated depending on what you want to do but the APIs involved are pretty basic.
Posted to MB Topic: Delphi COM / ActiveX / DCOM « Delphi Board
13 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 21 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: How to fully support all locale settings?
Delphi supports localization and internationalization. WideString, WideChar, and PWideChar types support unicode. In addition, mode controls support localization and internationalization as well., , Keep in mind, things like your example above would not be practical as the character you are looking for may change from language to language., , Consult the documentation for further information as to the extent of support.
Posted to MB Topic: Delphi Object PASCAL « Delphi Board
15 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 19 of 25
Thread Starter or a Reply (but not last)  Group

ronando
Resize form & all contained objects
Hi, I'm tring to convert some forms from PARADOX to DELPHI., i need to maximize from adn consequently all objects. In paradox i use bestfit instruction., , So can anyone give me a suggestion? I am rookie in Delphi., , Thanks, Fernando
Posted to MB Topic: Delphi Object PASCAL « Delphi Board
16 years ago

wpantoja
{Too Long!}
16 years ago
Nothing New Since Your Last Visit
4097
Hits

Pascal and Delphi Coding

Thread 18 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: Resize form & all contained objects
{Too Long!}
Posted to MB Topic: Delphi Object PASCAL « Delphi Board
16 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 17 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: eConvertError on StrtoDate won't recover
The StrToDate function actually works well. However, the way you are using it presents some problems., , In your situation, you should use it as below:, , function IsValidMDYDate(DateText: String): Boolean;, , var, FormatStrings : TFormatStrings;, , begin, FormatStrings.DateSeparator := '/';, FormatStrings.ShortDateFormat := 'd/m/yyyy';, FormatStrings.TwoDigitYearCenturyWindow := 50;, try, DateToStr(DateText,FormatStrings);, Result := True;, except, Result := False;, end;, end;There are two advantages: 1. by explicitly specifying the format strings, we are using a thread-safe version of the function and 2. by not explicitly looking for EConvertError we will only succeed if the conversion succeeds., , I use a simular version of this function in Delphi 6 and 7 and have had no issues.
Posted to MB Topic: Delphi Object PASCAL « Delphi Board
16 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 16 of 25
Thread Starter or a Reply (but not last)  Group

Alex Diogo Moreira
OleDb or ODBC? Why to use one or another one?
Why to use one or another one?, , Since already I am thankful, consideration
16 years ago

wpantoja
{Too Long!}
16 years ago
Nothing New Since Your Last Visit
3656
Hits

Visual Basic Classic

Thread 15 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: OleDb or ODBC? Why to use one or another one?
From a Visual Basic point of view, you will find that using OLEDB is a much easier implementation task then talking directly to ODBC. OLEDB, and more specifically, ADO is a COM-based data access control that is very easy to use in Visual Basic, Visual Basic for Applications, and VBScript., , If you are concerned with performance, then interfacing directly with database connection libraries (such as DB-lib for MSSQL) would be the best choice. However, most applications do not need that level of performace and the ROI for writing direct connections to databases tends to be very low.
16 years ago
Nothing New Since Your Last Visit
2
Hits

Visual Basic Classic

Thread 14 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: TForm and TComponent
This will search through the components held by the Application object. Note--if the form is not yet created, it will not be in the list., , procedure ShowForm (Name : string);, , var, I : Integer;, AForm : TForm;, , begin, for I := 0 to Application.ComponentCount-1 do, begin, if Application.Components[I] is TForm then, begin, AForm := Application.Components[I] as TForm;, if CompareText(AForm.Name,Name) = 0 then, begin, AForm.Show;, end;, end;, end;, end;, , , If you are wanting to dynamically create and show forms based on their name--that's a different technique.
Posted to MB Topic: Delphi Object PASCAL « Delphi Board
16 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 13 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: css and macs, please help!
One last note: drop the dashed line at the end of the CSS, that may also cause your browser to flip out.
16 years ago
Nothing New Since Your Last Visit
2
Hits

Website Design & Hosting

Thread 12 of 25
Thread Starter or a Reply (but not last)  Group

kate
css and macs, please help!
I am the webmaster of Chesham Youth Theatre's website. [URL=http://cheshamyouththeatre.tripod.com]http://CheshamYouthTheatre.tripod.com[/URL] The site uses cascading stylesheets but they are not effective if you are viewing the site with a mac. The stylesheet is incorporated in the head of the document. If anyone knows why it won't work please let me know. , , Confused
18 years ago

wpantoja
One last note: drop the dashed line at the end of the CSS, that may also cause your browser to flip out.
16 years ago
Nothing New Since Your Last Visit
4488
Hits

Website Design & Hosting

Thread 10 of 25
Thread Starter or a Reply (but not last)  Group

Ritche M
ADO in DLL
hi, how can i initialize ADO in a dll. it will display "coinitialize has not been called" error when i compile it. there is no problem with my DLL if it does not use ADO, but i need to use ADO. thanks...
Posted to MB Topic: Delphi COM / ActiveX / DCOM « Delphi Board
19 years ago

wpantoja
Use the CoInitializeEx before and ADO calls and CoUninitialize after you are finished.
19 years ago
Nothing New Since Your Last Visit
2861
Hits

Pascal and Delphi Coding

Thread 9 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: ADO in DLL
Use the CoInitializeEx before and ADO calls and CoUninitialize after you are finished.
Posted to MB Topic: Delphi COM / ActiveX / DCOM « Delphi Board
19 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 8 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: Windows shutdown
Read up on the InitiateSystemShudown windows API. It describes the message sent to each application when a shutdown is requested.
Posted to MB Topic: Delphi News / Other « Delphi Board
19 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 7 of 25
Thread Starter or a Reply (but not last)  Group

Evil Robot
Bit-shifting...
I understand that the shr operator can bit-shift an integer (or a char) right x amount of bits. However, is it possible to bit-shift an entire string in one fell swoop, or do I have to write a procedure to do it for me?, , Thanks for the help. :)
Posted to MB Topic: Delphi News / Other « Delphi Board
19 years ago

wpantoja
You have to write a procedure to do it.
19 years ago
Nothing New Since Your Last Visit
2194
Hits

Pascal and Delphi Coding

Thread 6 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: Bit-shifting...
You have to write a procedure to do it.
Posted to MB Topic: Delphi News / Other « Delphi Board
19 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 5 of 25
Thread Starter or a Reply (but not last)  Group

Evil Robot
A few questions...
Hey,, , Thanks for the help on my other line of code. I'm just getting used to Delphi, and you guys are great helps in learning it Big Grin!., , However, I have a few more questions. I am attempting to create an application that will minimize to the taskbar, scan every minute or so for .doc files created within the last minute in the My Documents folder; and if there is one, upload it through FTP to my website., , Questions:, 1) Is there a simple way to access the FTP protocol in Delphi? If so, how?, 2) How does one slow down program execution so that it will only scan once a minute or so?, 3) How do you get the date that files have been created from Windows?, 4) How do you get the current time from Windows?, 5) If minimized in the taskbar, will the program continue executing? If not, how do I make it do that?, , Thanks for the help Big Grin!
Posted to MB Topic: Delphi News / Other « Delphi Board
19 years ago

wpantoja
Which version of Delphi do you have? What level (standard, professional, or enterprise)?
19 years ago
Nothing New Since Your Last Visit
2652
Hits

Pascal and Delphi Coding

Thread 4 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: A few questions...
Which version of Delphi do you have? What level (standard, professional, or enterprise)?
Posted to MB Topic: Delphi News / Other « Delphi Board
19 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 2 of 25
Thread Starter or a Reply (but not last)  Group

William Pantoja
Re: VB interaction with Hardware
VB interacts with hardware in the same way that Internet Explorer does--not at all. You need to use ActiveX components written by 3rd parties (or yourself in something like C++ or Delphi).
Posted to MB Topic: VB Classic Other « VB Classic Board
19 years ago
Nothing New Since Your Last Visit
2
Hits

Visual Basic Classic

Thread 1 of 25
Thread Starter or a Reply (but not last)  Group

sailendra
VB interaction with Hardware
Hello Guys,, , I am new to this site., , Right now, I have a problem with Visual Basic to be dealing with Hardware., , Can VB interact with Haredware and if yes, and if anybody knows it, can anyone please suggest me how to do it., , I would like to thank you all before hand., , Sailendra.
Posted to MB Topic: VB Classic Other « VB Classic Board
19 years ago

wpantoja
VB interacts with hardware in the same way that Internet Explorer does--not at all. You need to use ActiveX components written by 3rd parties (or yourself in something like C++ or Delphi).
19 years ago
Nothing New Since Your Last Visit
2634
Hits

Visual Basic Classic
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2020 Prestwood IT Solutions.   [Security & Privacy]