Search found 6 matches

by zer0c0de
Tue Feb 09, 2016 4:05 pm
Forum: Coding Questions
Topic: What the matter? The program is always repair the file. HELP
Replies: 4
Views: 767

Re: What the matter? The program is always repair the file.

This is a date checker program, but i would like to check the date, and if the date on the file is greater like the current date, just then repair the date of the file. Some reason the program is repair the date on the file but the date is the current date.
by zer0c0de
Tue Feb 09, 2016 3:34 pm
Forum: Coding Questions
Topic: What the matter? The program is always repair the file. HELP
Replies: 4
Views: 767

What the matter? The program is always repair the file. HELP

Procedure.s CalculateTime(Time$)
If Mid(Time$,1,2) = "00"
Time$ = ReplaceString(Time$,"00","01")
ProcedureReturn Time$
EndIf

If Mid(Time$,1,2) = "01"
Time$ = ReplaceString(Time$,"01","02")
ProcedureReturn Time$
EndIf
If Mid(Time$,1,2) = "02"
Time$ = ReplaceString(Time$,"02","03 ...
by zer0c0de
Sun Dec 27, 2015 4:14 pm
Forum: Coding Questions
Topic: How to print the FindString result? (Sytax error)
Replies: 2
Views: 1399

How to print the FindString result? (Sytax error)

Code: Select all

If OpenFile(0,dir$+"/1.html")
  Repeat 
    r$ = ReadString(0)
    res = FindString(r$,"Tel: ")
    Print(res) ; This is the syntax error, how to fix it?
  Until Eof(0)
__________________________________________________
Code tags added
28.12.2015
RSBasic
by zer0c0de
Sun Oct 04, 2015 11:05 am
Forum: Linux
Topic: What is the problem? Console arguments.
Replies: 5
Views: 3113

Re: What is the problem? Console arguments.

Thank you, Vera. :)
by zer0c0de
Sun Oct 04, 2015 10:57 am
Forum: Linux
Topic: What is the problem? Console arguments.
Replies: 5
Views: 3113

Re: What is the problem? Console arguments.

It's a part of my code.
For example.

command> cd directory

When i type cd and after the cd the directory's name, the program can't change the working directory, cause the arg$ variable is empty. Why stay empty the argument?
Sorry for my bad english.
by zer0c0de
Sun Oct 04, 2015 9:04 am
Forum: Linux
Topic: What is the problem? Console arguments.
Replies: 5
Views: 3113

What is the problem? Console arguments.

Code: Select all

If Left(cmd$, 3) = "cd "
    arg$ = Mid(cmd$, 3)
    arg$ = Trim(cmd$)
    arg$ = Trim(cmd$,Chr(9))
SetCurrentDirectory(arg$)
;The arg$ is empty, why?