xBase Command Interpreter

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

User avatar
meneale
Posts: 51
Joined: Sat Jan 12, 2013 2:05 am
Location: Campinas -SP, Brasil

xBase Command Interpreter

Post 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 :P
Attachments
xBaseCMDsource.zip
xBaseCMD exe&source
(1.33 MiB) Downloaded 484 times
Capture.PNG
Capture.PNG (184.82 KiB) Viewed 6352 times
AMD Phenom II X6 1090T 3.2GHz (OverClock 3.9GHz) | Windows 8.1 Pro 64-bit
4GB DDR3 | GTX 550 Ti 1GB | MSI 880GMA-E35
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: xBase Command Interpreter

Post by Javier Tovar »

Hello Meneale,

I do not understand what your program, any ideas?

regards
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: xBase Command Interpreter

Post 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 ?
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: xBase Command Interpreter

Post by danielmaximiliano »

Gracias por compatir Meneale !!!!

descargando y probando !!!!!!
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
meneale
Posts: 51
Joined: Sat Jan 12, 2013 2:05 am
Location: Campinas -SP, Brasil

Re: xBase Command Interpreter

Post by meneale »

Yes Daniel,
I create this program to run test scripts without needed to compile it.
Make it very useful
AMD Phenom II X6 1090T 3.2GHz (OverClock 3.9GHz) | Windows 8.1 Pro 64-bit
4GB DDR3 | GTX 550 Ti 1GB | MSI 880GMA-E35
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: xBase Command Interpreter

Post 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"
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: xBase Command Interpreter

Post by Javier Tovar »

Ahhh :o ,

OK DanielMaximiliano eso seria estupendo :D

Saludos
User avatar
meneale
Posts: 51
Joined: Sat Jan 12, 2013 2:05 am
Location: Campinas -SP, Brasil

Re: xBase Command Interpreter

Post 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
Attachments
win.zip
Win.ico (i zipped because ico isn't allowed)
(76.98 KiB) Downloaded 338 times
AMD Phenom II X6 1090T 3.2GHz (OverClock 3.9GHz) | Windows 8.1 Pro 64-bit
4GB DDR3 | GTX 550 Ti 1GB | MSI 880GMA-E35
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: xBase Command Interpreter

Post by Rathinagiri »

Wow. It is a very nice work. Great achievement. Thanks a lot for sharing MeneAle.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: xBase Command Interpreter

Post by bpd2000 »

+1
Excellent work, Thank's for sharing
BPD
Convert Dream into Reality through HMG
Post Reply