problem to write

sitajony

Active Member
Licensed User
Your screenshot is very small... So apparently your image is well strange...
Can you upload your "camel" picture? Did you try to change the picture format? It do it for any images?

Edit:
Yes you must to become a registred member for compile your program, download any file on "Additional library" (Full great and usefull additional library), post any message etc...
You'll can find more information here: http://www.b4x.com/Purchase.html
 
Last edited:

roki

Member
hi
i cant uplod it i can send max image 15kb
the format is jpg:BangHead:
can send example about "Dim "?
i cant buy it!
 

sitajony

Active Member
Licensed User
Can you zip your Image with your code source (SBP file), it'll help us a lot...
Why do you want an example with "Dim"? Dim is for declare an array or a variable in private (not available from an other module, for do it use Public but not Dim):
Dim example(0) As String
Dim example(4096) As Byte
Dim num As Integer
...
You can read this page: Dim, instruction (Visual Basic) but it's not really the same Syntax...

Edit:
"Public" syntax is available only on version 6.90 and newer...

Edit:
Declares regular, array and structure variables.
Syntax: Dim [Type (Fields)] Variable Name [(Array length)] [As Data Type]
Array dimension can be up to three.
You can declare many variables on one row.
Example: Dim Counter(20), I, a As String, x(10,10,10), Matrix(10,10) as Number
Note that the type definition affects all variables preceding the type (and without a type of their own).
In the above example, the variable Counter, I and a are declared as Strings and x and Matrix are Numbers.

Available in Basic4PPC Help file...
 
Last edited:

sitajony

Active Member
Licensed User
Thanks for the capture but it'll be better if you can upload in a zip file your Image who is in background on your program and your code source b4p for see where is the problem...
 

roki

Member
hi and tanks
after i fund how to set a picture for forme every picture i choice for form it does not show me and shows like this!
 

sitajony

Active Member
Licensed User
How do you set your image as background?
You set it with .Image propriete or .DrawImage() function?
Maybe the problem come from B4P Device IDE but I never saw this problem...
What is your PPC model?
 

roki

Member
hi
after i choes an imaje i write name and format (camel.jpg) and cut it to basice folder . :BangHead:
ppc: htc touch3g wn6.1
can you make example about timer?
 
Last edited:

sitajony

Active Member
Licensed User
It's weird that your image doesn't show correctly on your device... And when you open your image directly on your Image browser it's normal?
About timer, there's a lot of example on help menu... Click on "Main help" and search for "Timer" you'll see some example and information...
B4X:
Sub App_Start
    AddTimer("compteur")
    Control("compteur",Timer).Interval=1000 'Every 1 second your timer will run the "compteur_Tick" sub function...
    Control("compteur",Timer).Enabled=True
End Sub
 
Sub compteur_Tick
    MsgBox("Compteur ticked! Now it's " & TimerH & "." & TimeM & "." & TimerS & "!")
End Sub

Note: On 6.90 or newer you can directly type this: Timer("compteur").... It's better if your don't know the Timer proprietes...
You can also add a timer control directly in Form designer...
You can assign your tick function on an other function name with AddEvent() function:
B4X:
[COLOR=navy]AddEvent[/COLOR]("compteur",Tick,"Ticked")
Sub Ticked
    MsgBox("Compteur ticked! Now it's " & TimerH & "." & TimeM & "." & TimerS & "!")
End Sub
But you'll find a lot of more example more explain on Main Help from Basic4PPC

Otherwise, about your image:
Did you try with DrawImage() function?
Type this:
B4X:
[U]Form1[/U].DrawImage(AppPath & "\camel.jpg",0,0,[U]Form1[/U].Width,[U]Form1[/U].Height)
Replace Form1 with your Form name...
 

roki

Member
hi and tanks for ansewer me
no i dont with DrawImage function choese imaje i go to forme an write a image name i send image to the location that i write program to run
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…