Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
Android / Re: jListView.GetCheckedItemPosition always returns -1
« Last post by jmpessoa on Today at 04:12:00 am »

Can you do some diff in  "jListView.java"   for  "GetCheckedItemPosition"?

[LAMW folder "...\android_wizard\smartdesigner\java" ]
2
Android / Re: LAMW: how to work with BLE device?
« Last post by jmpessoa on Today at 03:13:46 am »
Quote
can LAMW work with BLE devices?

I haven't been able to implement it yet ... BLE is a difficult task for me .... (I don't really understand the subject ...)

Edited:  Can you do some test? (I dont have a BLE device...)
3
FPSpreadsheet / Question about editors
« Last post by fmolina on Today at 02:30:12 am »
Hi,
Is there support for TCheckboxes and TComboBoxes as cell editors in FPSpreadsheet? If no, is it planned?
Thanks
4
Databases / Re: Has anyone used UniDAC from DevArt?
« Last post by dsiders on Today at 02:06:41 am »
Quote
IBX for Lazarus.
Have you tried this? If yes, what is your overall evaluation?

Yes, that is the reason I recommended it.

I have several Firebird 3 applications that depend on it. I have no complaints about the library. In fact, I think it is excellent. The developer participates in these forums, and is very responsive to bug reports. And, it has good documentation.

5
General / Re: Back in cycle level
« Last post by Warfley on Today at 01:41:25 am »
Sadly pascal does not have named loops like Ada, but in your case break should work, because it breaks the most inner loop (so your b loop):
Code: Pascal  [Select][+][-]
  1. procedure MyProcedure;
  2.  var a,b,c:integer;
  3. begin
  4.   for a:=0 to 10 do
  5.     for b:=0 to 10 do begin
  6.      c:=StrToInt(inputbox());
  7.      if c=3 then Break;
  8.    end;
  9. end;
Other possibility: merge loops, there is no need for 2 for loops here:
Code: Pascal  [Select][+][-]
  1. a := 0;
  2. b := 0;
  3. while a <= 10 do
  4. begin
  5.   Inc(b);
  6.   if b > 10 then Inc(a)
  7.   else
  8.   begin
  9.     c := StrToInt(inputbox())
  10.     if c = 3 then b := 0;
  11.   end;
  12. end;

If you want to use goto:
Code: Pascal  [Select][+][-]
  1. var a,b,c: Integer;
  2. label bLoop;
  3. begin
  4.   for a := 0 to 10 do
  5.   begin
  6. bLoop:
  7.     for b := 0 to 10 do
  8.     begin
  9.       c := StrToInt(inputbox());
  10.       if c = 3 then goto bLoop;
  11.     end;
  12.   end;
  13. end;
6
Databases / Re: Has anyone used UniDAC from DevArt?
« Last post by egsuh on Today at 01:38:48 am »
Quote
IBX for Lazarus.

Have you tried this? If yes, what is your overall evaluation?
7
Databases / DB accessing application staying in memory
« Last post by egsuh on Today at 01:38:03 am »
Can I write such a program (or library)?

What I want is keeping logged to a database, and doing DB-jobs (inserting, updating, viewing, deleting records, etc.) when requests come in. This could be a DB server in server-client relationship.

I need this function for web server.  My web-server program has run welll without any problem in CGI mode. But CGI is supposed to re-connect at every request. Up to now, the requests are not so many, and my (very low grade PC machine  :D) server had no problem in handling them.

FastCGI approach (or ISAPI/NSAPI of Delphi) is supposed to be a solution, as the application remains in the memory and responds to requests. But currently Free Pascal's fCGI is not perfect (which Michael Van Canneyt adimitted --- I have no intention to blame him for any reason. I always appreciate his contributions.)

I'm looking for various approaches. I think one possibility is to separate a database server from web-server on the same machine (and maybe later have to separate). 

Sometimes I wonder that CGI modules remain in memory (i.e. not disposed after responding to a request) for a while. IIS of Windows itself may be doing something --- I have to check this further by leaving log information to the database, etc.   If this is true, CGI approach is good enough.

How can I achieve this with Lazarus?   (on Windows 10).

8
LCL / Re: Safe to use tvirtualgrid?
« Last post by jamie on Today at 12:43:55 am »
Ok, I looked at Delphi and notice I couldn't find that in the listing of possible classes already defined and I don't like recreating the wheel when there is code already in the pile that can be implemented.

 The TVirtualGrid just happens to have the layout I need although the names of the fields are not exactly what I pictured but it will do..

 The other alternative was using a collection which to me looks like it could turn into a fragmented heap nightmare .

 Thanks.
9
General / Re: Back in cycle level
« Last post by winni on Today at 12:42:26 am »
Hi!

Use the whole syntax that Pascal offers:

Code: Pascal  [Select][+][-]
  1. procedure MyProcedure;
  2.  var a,b,c:integer;
  3. begin
  4.   for a:=0 to 10 do
  5.   begin    
  6.    b := 0; c := 0;
  7.   while (b  <=10) and (c<>3) do begin
  8.      c:=StrToInt(inputbox());
  9.      inc(b);
  10.    end; // while
  11.  end; // for
  12. end;
  13.  

Winni
10
General / Re: Back in cycle level
« Last post by jamie on Today at 12:33:30 am »
Look at BREAK and CONTINUE..

Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018