Page 1 of 2
xBase Command Interpreter
Posted: Sun Mar 09, 2014 9:32 pm
by meneale
Hello,
In the last 4 months i was working in a project that is an 'HMG' version of Command Prompt but executing HMG functions using Macro (&)
Now it seems finished, and then i decided to post it in HMGForum.
The Form looks pretty good using the DwmExtendFrameIntoClientArea function contributed by Dr. Claudio Soto
Basic Tips:
Creating text files and drag 'n' drop into the window, the program will run like CMD opens '.bat' files, reading line per line and executing them
Var(cIdVar,xValue) // for define public variables
XCOM=T or F (XCOM=F program will decline HMGFunctions and will execute custom commands)
lEcho := .t. (all function that give return will be printed on screen)
What does not work // yet:
Commands like: IF ENDIF ELSE FOR CALL RUN DO WHILE CASE...
Maybe it can be part of official HMG Samples
Re: xBase Command Interpreter
Posted: Sun Mar 09, 2014 10:00 pm
by Javier Tovar
Hello Meneale,
I do not understand what your program, any ideas?
regards
Re: xBase Command Interpreter
Posted: Sun Mar 09, 2014 10:15 pm
by danielmaximiliano
Javier Tovar wrote:Hello Meneale,
I do not understand what your program, any ideas?
regards
..
Javier :
Visual Fox , foxpro desde epocas antiguas venia con una linea de comando donde ejecutas comandos basicos como abrir tablas, indezr bases etc.etc.
imaginate que podes tener abierto un proyecto y necesitas ver el contenido de una tabla que no pertenece al proyecto.
no salis del IDE y desde la linea de comando haces
USE MITABLA
BROW.
simple no ?
Re: xBase Command Interpreter
Posted: Sun Mar 09, 2014 10:16 pm
by danielmaximiliano
Gracias por compatir Meneale !!!!
descargando y probando !!!!!!
Re: xBase Command Interpreter
Posted: Sun Mar 09, 2014 10:27 pm
by meneale
Yes Daniel,
I create this program to run test scripts without needed to compile it.
Make it very useful
Re: xBase Command Interpreter
Posted: Sun Mar 09, 2014 11:37 pm
by danielmaximiliano
Error :
Falta Win.ico
windres: can't open icon file `win.ico': No such file or directory
Necesitarios una lista de los comandos soportados por "xBase Command Interpreter"
Re: xBase Command Interpreter
Posted: Mon Mar 10, 2014 12:29 am
by Javier Tovar
Ahhh
,
OK DanielMaximiliano eso seria estupendo
Saludos
Re: xBase Command Interpreter
Posted: Mon Mar 10, 2014 1:44 am
by meneale
xBase CMD Support all defined Functions, including user defined, hmg default functions, c functions...
xBaseCMD doesn't support commands / structures, like:
LOCAL, PRIVATE, STATIC, PUBLIC // substitute var(idVar,xContent) // define public variables
IF, ELSE, ENDIF // substitute If(conditional,iftrue,iffalse)
DEFINE <control definition>, END // substitute(s) _DefineWindow(), _DefineModalWindow, _DefineSplitChildWindow(), _DefineEditBox(),... (look at hmg3.2\include)
DO WHILE, END DO, LOOP // nothing yet
FOR, NEXT // substitute fstep(starn,end,step,bAction)
CASE, OTHERWISE, END // nothing yet
@...BOX, @...SAY, @....<control definition>
SET *
.facp files are scripts to the xBase (like .bat for the cmd)
chrome.facp // Turns Google Chrome or Opera into half transparent
cmdmenu.facp // Define a Main Menu in the form, but look bad because of DWM
yourip.facp // Get you ip address
To open it, drag and drop in EXE or in the form
Re: xBase Command Interpreter
Posted: Mon Mar 10, 2014 2:25 am
by Rathinagiri
Wow. It is a very nice work. Great achievement. Thanks a lot for sharing MeneAle.
Re: xBase Command Interpreter
Posted: Mon Mar 10, 2014 9:20 am
by bpd2000
+1
Excellent work, Thank's for sharing