Yan,
Where do you start!
Yes Clipper is very different to VB and C in the 'visual' sense - but has a lot of common heritage in that both VB and Clipper were actually written in C... dull sorry.
Right: on to 'Beginning Clipper'
Step one, overwiew:
Clipper programs are written with a simple text editor (I still use QEdit from many many years ago) all the code is held in files with a .prg extension.
Once written they are compiled into object modules (files ending .obj) using the compiler (Clipper.exe - which is usually in a folder called BIN).
These object files are then linked with libraries of prewritten code (files ending .lib) to create executable programs. This is done using a linker (Plink86 or Blinker normally).
If I telling you stuff you already know - let me know.
About the simplest program in most languages is 'hello world':
Create a folder for your project code - I usually have a DEV folder off the root of a drive and create a subfolder for each project. Within that folder create a new one called OBJ into which the compiled code can go.
Use your editor to create a file called MyProg.prg in your DEV folder:
Code:
? "Hello World from Clipper"
Compile it with clipper (in the examples below, replace 'c:\lang\cl50\' with the path to your compiler):
Code:
c:\lang\cl50\bin\clipper MyProg -oOBJ\MyProg.obj
Link it (this time with Blinker)
Code:
c:\lang\cl50\bin\Blinker FI obj\MyProg LI c:\lang\cl50\lib\clipper,c:\lang\cl50\lib\extend,c:\lang\cl50\lib\terminal,c:\lang\cl50\lib\dbfntx
and you should get an executable file called MyProg.exe.
If you run this, you should see:
Code:
Hello World from Clipper!
Regards
Griff
Keep [Smile]ing