lazarus

Can the characterset in TSynedit in Lazarus be set?

hi, I use TSynedit component in a program. I noticed when I use SynEdit1.Lines.SaveToFile(loadedfile);, then it is saved in utf8 encoding. Is there a way to change that?. I changed font.charset property of Synedit1 object but it made no difference. Any ideas? ...

Errors when using Lazarus IDE on OS X

I'm trying to use Lazarus for OS X to complete a PASCAL programming assignment, and for some reason, I keep getting the following debugger error. Debugger Error Ooops, the debugger entered the error state. Save your work now! Hit Stop, and hope the best, we're pulling the plug. Even though it tells me "Project successfu...

lazarus gui main menu using forms?

i need to make a form where when a button is clicked then another form/page opens and from that for you can return to the original form in a similar fashion a main menu/sub menu works. sorry im new to object pascal ...

How can I compile a Lazarus Apache module to Apache 1.3, 2.0 and 2.2 selectively?

I've had a look at /etc/fpc.cfg and there is mention to some defines: FPCAPACHE_1_3 FPCAPACHE_2_0 Then in the fcl-web examples there is mention to: Apache1_3 The only one I've found is on the apr.pas on both these files: /usr/share/fpcsrc/2.4.0/packages/httpd20/src/apr/apr.pas /usr/share/fpcsrc/2.4.0/packages/httpd22/src/apr/ap...

Problem compiling a WebLaz project under Lazarus.

My specs: OS: Ubuntu 10.04 LTS amd64 fpc: 2.4.0 lazarus: 0.9.28 I'm trying to compile a WebLaz project just by creating one and then compiling. Somehow the compiler gets all lost when determinig witch httpd and fpapache Units to use. I've found similar problems in the forums: mod_helloworld.lpr Can't find fpapache Unit ... I NEED ...

Building mod_helloworld.lpr

Im trying to build the apache example of the mod_helloworld.lpr, C:\lazarus\components\fpweb\demo\helloworld\apache Lazarus 0.9.29 FPC Verion 2.4.3 SVN 27129 i386-win32 After Adding $(LazarusDir)\fpc\2.4.3\source\packages\fcl-web\src\ to the Other Unit Files (-Fu) it will compile, but when i build/link i get the errors mod...

searching a text file the writing result to memo, lazarus

this segment in my program first ads a customer to a textfile (declared in public variables) and saves it to a texfile. onbutton1click is the procudere to search the string thats in the editbox and return the relevant customer details to memo. the add customer works fine and adds to textfile, however when i search it returns nothing onto...

runerror(102) file not assigned?

begin reset(f); assignfile(f, 'data.txt'); Reset(f); found:= false; search := edit1.text ; repeat read(f, phone) ; read(f, cusfname); read(f, adress); found:= search = phone until eof(f) or found; if found then memo1.append(phone); memo1.append(cusfname); memo1.append(adress); closefile(f) ; if not found ...

How to avoid WSRegister* on a Free Pascal .dll/.so

I finally had success compiling a "blank" Apache module, but now I've hit a rather annoying snag. I want to communicate with a MongoDB server and I opted for the only lib around for FreePascal/Lazarus, pebongo. Dependency for pebongo is synapse. Somehow I'm getting "/usr/lib/apache2/modules/mod_visius.so: undefined symbol: WSRegisterC...