How to send TEXT to a sub procedure ?

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
arvinfx
Posts: 115
Joined: 22 Feb 2010 18:44

How to send TEXT to a sub procedure ?

#1 Post by arvinfx » 19 Jul 2023 21:26

I need to have code to send a text to sub procedure like this:

Send_out("Hello World")

How to do it in correct way?

Firewire12
Posts: 1
Joined: 06 Oct 2011 16:08

Re: How to send TEXT to a sub procedure ?

#2 Post by Firewire12 » 20 Jul 2023 13:44

DIM text as string [7]
Sub Procedure aa (DIM ByRef wert as string [7])
...
...
end sub

text = "hello"
aa (text)

That´s all.
You find the text hello in the string wert.

Post Reply

Return to “mikroBasic PRO for PIC General”