Search found 29 matches

by Javi
Fri Aug 05, 2022 3:00 pm
Forum: VRSCRIPT
Topic: Effective way to load an XML File
Replies: 0
Views: 141

Effective way to load an XML File

Example persons.xml <?xml version="1.0" encoding="UTF-8"?> <persons> <person name="John" > <properties> <property name="age" value="30"/> <property name="gender" value="man"/> <property name="profession" value="den...
by Javi
Sat Jul 30, 2022 10:30 am
Forum: VRSCRIPT
Topic: Accessing FILE from VRSCRIPT
Replies: 0
Views: 128

Accessing FILE from VRSCRIPT

class HelloWorld implements GL_Program { virtual Start() { _path = "message.txt"; _filecontent = "Hello World!"; _filename = GetEngine().GetPath(_path); _file = File_Open (_filename, FILE_MODE_WRITETEXT); File_WriteText (_file, _filecontent); File_Close (_file); End(0); } }
by Javi
Wed Jul 27, 2022 2:35 pm
Forum: VRSCRIPT
Topic: JSON not working. Error BAD POINTER
Replies: 0
Views: 139

JSON not working. Error BAD POINTER

test.json { "name": "JOHN" } test1.pi class Test1 implements DOS_Program { virtual Start() { _console = GetDOS().GetConsole(); json = JSON_Open ("test.json"); json_name= JSON_FindObjectItem(json, "name"); name = JSON_ToString(json_name); _console.PrintLn(&quo...
by Javi
Mon Jul 25, 2022 2:01 pm
Forum: VRSCRIPT
Topic: Form VR-VIEW, troubles found.
Replies: 1
Views: 60

Re: Form VR-VIEW, troubles found.

Code: Select all

_lb = GetTopWindow().CreateComboBox(10, 10, 100);
_lb.AddItem("Item1");
_lb.AddItem("Item2");

Lo mismo, ¿como saber que item esta seleccionado en _lb?

The same, ¿How to know which item is selected on _lb?
by Javi
Mon Jul 25, 2022 9:30 am
Forum: VRSCRIPT
Topic: Form VR-VIEW, troubles found.
Replies: 1
Views: 60

Form VR-VIEW, troubles found.

Quiero construir un formulario con VR-VIEW http://msxvr.es/doc/wiki/mdwiki.html#!a635824c6017f333023c8976c059e4fa4bd74c8d.md Checkbox una vez creada una casilla de verificación, _cb = GetTopWindow().CreateCheckBox(10, 10, 100, -1, "CheckBox"); - ¿Cómo puedo leer si "_cb" es verda...
by Javi
Fri Jul 15, 2022 2:45 pm
Forum: VRSCRIPT
Topic: Getting started with VR-VIEW and VR-GL data communication
Replies: 0
Views: 134

Getting started with VR-VIEW and VR-GL data communication

joc.pi class Joc implements GL_Program { properties: vista = null; configuracio = null; interficie = null; function Start() { AddScriptPackage("./scripts/"); configuracio = new Configuracio(this); vista = new Vista(this); interficie = new Interficie(this); ::Start(); } function Initialize...
by Javi
Fri Jul 15, 2022 2:40 pm
Forum: VRSCRIPT
Topic: VIEW_Program call GL_Program ?
Replies: 7
Views: 165

Re: VIEW_Program call GL_Program ?

Gracias Droman, pero esto no es exacto. No es posible acceder a las funciones del motor API desde VR-BASIC. Solo el subconjunto de funciones VR_GL es accesible desde VR-BASIC. Solo inténtalo y verás. Thank you Droman, but this is not accurate. It is not possible to access to the API engine functions...
by Javi
Fri Jul 08, 2022 6:46 am
Forum: VRBASIC
Topic: VR-BASIC --> API NATIVE
Replies: 0
Views: 125

VR-BASIC --> API NATIVE

¿Hay alguna manera en VR_BASIC de tener acceso a las funciones y objetos NATIVOS de la API? para tener acceso a * String Conjunto de funciones que permiten manipular cadenas de caracteres. * XML Funciones para operar con archivos de formato XML (Lenguaje de marcado extensible). * JSON Funciones para...
by Javi
Fri Jul 08, 2022 6:45 am
Forum: VRBASIC
Topic: BLOAD "mytext.txt" --> TTSTALK
Replies: 0
Views: 127

BLOAD "mytext.txt" --> TTSTALK

¿Hay alguna forma en VR_BASIC de cargar un archivo de texto y luego pasar el contenido de la cadena a TTS TALK? Aquí está la rutina de pseudocódigo de lo que se necesita. M$ = BLOAD "mytext.txt" CALL TTSTALK(M$) Is there a way in VR_BASIC to load a text file and then pass the string conten...
by Javi
Fri Jul 08, 2022 6:44 am
Forum: VRBASIC
Topic: AddScriptPackage("./data/scripts/") equivalent on VR_BASIC
Replies: 3
Views: 75

Re: AddScriptPackage("./data/scripts/") equivalent on VR_BASIC

No quiero tener un código monolítico de un solo archivo. Me gustaría dividir el programa básico en diferentes archivos .bas. Por ejemplo, en un archivo tiene las subrutinas, el otro archivo relacionado con gráficos, etc. ¿Hay alguna manera en VR-BASIC de hacer eso? I don't want to have a single file...