Where, in my code, is string$ already declared as a global?

Code: Select all
onErrorGoto(?Fred)
Code: Select all
onErrorGoto(?Fred)
Code: Select all
onErrorGoto(?Fred)
Code: Select all
Debug StringField("Pure Basic", 1, ' ')
Debug StringField("PureStringBasic", 2, @"String")
output:
Pure
Basic
You can't detect the sizeDr. Dri wrote:maybe something like this :
StringField(String$, Index, Separator.l)
if you don't send a value within the character range (depending on ascii or unicode) then it will be interpreted as a string address.
That's how windows resource functions work, if you want the resource #12 you can send 12 or "12"Code: Select all
Debug StringField("Pure Basic", 1, ' ') Debug StringField("PureStringBasic", 2, @"String") output: Pure Basic
Dri
Code: Select all
12 bitmap your_image.bmp
Code: Select all
If OpenWindow(0, 0, 0, 245, 105, "ImageGadget")
CreateGadgetList(WindowID(0))
ImageGadget(0, 10, 10, 100, 83, LoadBitmap_(GetModuleHandle_(#Null), 12))
ImageGadget(1, 130, 10, 100, 83, LoadBitmap_(GetModuleHandle_(#Null), "#12"))
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf